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
|
VendorInfoItems
|
Name |
Description |
|
vendorId |
Type: string ID of the store in the Partner’s system. Example: |
|
deliveryType |
Type: string Delivery type. Enum: |
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
|
ItemBlockStatusResponse
|
Name |
Description |
|
blockId |
Type: string Block identifier in the service Example: |
|
deliveryType |
Type: string Delivery type Enum: |
|
from |
Type: string Date and time when blocking starts Example: |
|
source |
Type: string Block source (Partner name or delivery club for Yandex Eats’ own blocks). Example: |
|
vendorId |
Type: string ID of the store in the Partner’s system. Example: |
|
availableToCancel |
Type: boolean Unblocking possible |
|
message |
Type: string Block comment, provided only for Yango Deli’ internal blocks. Example: |
|
to |
Type: string Date and time when blocking ends Example: |
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: |
|
details |
Type: objectExample
|
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: |
|
details |
Type: objectExample
|
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: |
|
details |
Type: objectExample
|
No longer supported, please use an alternative and newer version.