Getting block statuses.

Request

POST

/v2/status

Headers

Name

Description

Authorization

Type: string

Token generated by Yango Deli.

Example: ``

Partner-Name

Type: string

Partner’s name.

Example: ``

Body

application/json
{
  "vendorInfo": [
    {
      "vendorId": "819711",
      "deliveryType": "ddc"
    }
  ]
}

Name

Description

vendorInfo

Type: VendorInfo

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

VendorInfoItems

Name

Description

vendorId

Type: string

ID of the store in the Partner’s system.

Example: 819711

deliveryType

Type: string

Delivery type.

Enum: ddc, marketplace

Example
{
  "vendorId": "819711",
  "deliveryType": "ddc"
}

VendorInfo

Type: VendorInfoItems[]

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

Responses

200 OK

OK

Body

application/json
{
  "items": [
    {
      "vendorId": "17205",
      "blockId": "example",
      "deliveryType": "ddc",
      "availableToCancel": true,
      "from": "2016-05-12T23:54:32+0100",
      "to": "2016-05-12T23:54:32+0100",
      "source": "delivery club",
      "message": "Technical reasons"
    }
  ]
}

Name

Description

items

Type: ItemBlockStatusResponse[]

Example
[
  {
    "vendorId": "17205",
    "blockId": "example",
    "deliveryType": "ddc",
    "availableToCancel": true,
    "from": "2016-05-12T23:54:32+0100",
    "to": "2016-05-12T23:54:32+0100",
    "source": "delivery club",
    "message": "Technical reasons"
  }
]

ItemBlockStatusResponse

Name

Description

blockId

Type: string

Block identifier in the service

Example: example

deliveryType

Type: string

Delivery type

Enum: ddc, marketplace

from

Type: string

Date and time when blocking starts

Example: 2016-05-12T23:54:32+0100

source

Type: string

Block source (Partner name or delivery club for Yandex Eats’ own blocks).

Example: delivery club

vendorId

Type: string

ID of the store in the Partner’s system.

Example: 17205

availableToCancel

Type: boolean

Unblocking possible

message

Type: string

Block comment, provided only for Yango Deli’ internal blocks.

Example: Technical reasons

to

Type: string

Date and time when blocking ends

Example: 2016-05-12T23:54:32+0100

Example
{
  "vendorId": "17205",
  "blockId": "example",
  "deliveryType": "ddc",
  "availableToCancel": true,
  "from": "2016-05-12T23:54:32+0100",
  "to": "2016-05-12T23:54:32+0100",
  "source": "delivery club",
  "message": "Technical reasons"
}

400 Bad Request

Request error.

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

404 Not Found

Store’s not found.

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

500 Internal Server Error

Service error.

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Error code.

message

Type: string

Error message.

Example: example

details

Type: object
Example
{}

No longer supported, please use an alternative and newer version.