Получение статуса блокировок
Метод позволяет Партнёру получить статус блокировок магазинов из системы Яндекс Еды.
Request
POST
/v2/status
Headers
|
Name |
Description |
|
Authorization |
Type: string Токен, сформированный на стороне Яндекс Еды. Example: `` |
|
Partner-Name |
Type: string Имя Партнёра. Example: `` |
Body
application/json
{
"vendorInfo": [
{
"vendorId": "819711",
"deliveryType": "ddc"
}
]
}
|
Name |
Description |
|
vendorInfo |
Type: VendorInfo Example
|
VendorInfoItems
|
Name |
Description |
|
vendorId |
Type: string Id магазина в системе Партнёра. Example: |
|
deliveryType |
Type: string Тип доставки. 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": "Технические причины"
}
]
}
|
Name |
Description |
|
items |
Type: ItemBlockStatusResponse[] Example
|
ItemBlockStatusResponse
|
Name |
Description |
|
blockId |
Type: string Идентификатор блокировки в сервисе Example: |
|
deliveryType |
Type: string Тип доставки Enum: |
|
from |
Type: string Дата и время начала блокировки Example: |
|
source |
Type: string Источник блокировки (имя Партнёра или delivery club для собственных блокировок Яндекс Еды). Example: |
|
vendorId |
Type: string Id магазина в системе Партнёра Example: |
|
availableToCancel |
Type: boolean Возможность разблокировки |
|
message |
Type: string Комментарий к блокировке, передается только для внутренних блокировок Яндекс Еды. Example: |
|
to |
Type: string Дата и время окончания блокировки 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": "Технические причины"
}
400 Bad Request
Ошибка в запросе.
Body
application/json
{
"message": "example",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
message |
Type: string Сообщение об ошибке. Example: |
|
details |
Type: objectExample
|
404 Not Found
Магазин не найден.
Body
application/json
{
"message": "example",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
message |
Type: string Сообщение об ошибке. Example: |
|
details |
Type: objectExample
|
500 Internal Server Error
Ошибка сервиса.
Body
application/json
{
"message": "example",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code |
Type: integer Код ошибки. |
|
message |
Type: string Сообщение об ошибке. Example: |
|
details |
Type: objectExample
|
No longer supported, please use an alternative and newer version.