Getting block statuses.
Request
POST
/v2/status
Headers
|
Name |
Description |
|
Authorization* |
Type: string Token generated by Yango Deli. |
|
Partner-Name* |
Type: string Partner’s name. |
Body
application/json
{
"vendorInfo": [
{
"vendorId": "819711",
"deliveryType": "ddc"
}
]
}
|
Name |
Description |
|
vendorInfo* |
Type: VendorInfoItems[] |
VendorInfoItems
|
Name |
Description |
|
vendorId* |
Type: string ID of the store in the Partner’s system. Example: |
|
deliveryType |
Type: string Delivery type. Example: Enum: |
Responses
200 OK
OK
Body
application/json
{
"items": [
{
"vendorId": "17205",
"blockId": "string",
"deliveryType": "ddc",
"availableToCancel": false,
"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[] |
ItemBlockStatusResponse
|
Name |
Description |
|
blockId* |
Type: string Block identifier in the service |
|
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: |
400 Bad Request
Request error.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
404 Not Found
Store’s not found.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
500 Internal Server Error
Service error.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
No longer supported, please use an alternative and newer version.