Получение статуса блокировок
Request
POST
/v2/status
Headers
|
Name |
Description |
|
Authorization |
Type: string Токен сформированный на стороне ЯЕды Example: `` |
|
Partner-Name |
Type: string Имя партнера Example: `` |
Body
application/json
{
"vendorInfo": [
{
"vendorId": "819711",
"deliveryType": "ddc"
}
],
"statuses": [
"enabled"
],
"limit": 100,
"offset": 0
}
|
Name |
Description |
|
vendorInfo |
Type: VendorInfo Example
|
|
limit |
Type: integer Лимит выдачи Default: |
|
offset |
Type: integer Смещение выдачи Default: |
|
statuses |
Type: EffectStatuses Example
|
Vendor
|
Name |
Description |
|
deliveryType |
Type: string Тип доставки Enum: |
|
vendorId |
Type: string Id ресторана в системе партнера Example: |
Example
{
"vendorId": "819711",
"deliveryType": "ddc"
}
EffectStatuses
Type: string[]
Example
[
"example"
]
Responses
200 OK
OK
Body
application/json
{
"items": [
{
"vendorId": "17205",
"blockId": "example",
"externalBlockId": "example",
"deliveryType": "ddc",
"availableToCancel": true,
"status": "enabled",
"from": "2016-05-12T23:54:32+0100",
"to": "2016-05-12T23:54:32+0100",
"source": "delivery club",
"message": "example"
}
]
}
|
Name |
Description |
|
items |
Type: VendorObject[] Массив вендоров Example
|
VendorObject
Объект вендора
|
Name |
Description |
|
blockId |
Type: string Идентификатор блокировки в сервисе Example: |
|
deliveryType |
Type: string Идентификатор блокировки Enum: |
|
from |
Type: string Дата и время начала блокировки Example: |
|
vendorId |
Type: string Идентификатор вендора Example: |
|
availableToCancel |
Type: boolean Возможность разблокировки |
|
externalBlockId |
Type: string Идентификатор блокировки у партнера Example: |
|
message |
Type: string Комментарий к блокировке (полученный от партнера) или описание блокировки от сервиса Example: |
|
source |
Type: string Источник блокировки (имя партнера или delivery club) Example: |
|
status |
Type: string Статус блокировки Enum: |
|
to |
Type: string Дата и время окончания блокировки Example: |
Example
{
"vendorId": "17205",
"blockId": "example",
"externalBlockId": "example",
"deliveryType": "ddc",
"availableToCancel": true,
"status": "enabled",
"from": "2016-05-12T23:54:32+0100",
"to": "2016-05-12T23:54:32+0100",
"source": "delivery club",
"message": "example"
}
400 Bad Request
Ошибка запроса
Body
application/json
{
"message": "example",
"code": 0
}
|
Name |
Description |
|
code |
Type: integer Код ошибки |
|
message |
Type: string Сообщение об ошибке Example: |
404 Not Found
Плейс не найден
Body
application/json
{
"message": "example",
"code": 0
}
|
Name |
Description |
|
code |
Type: integer Код ошибки |
|
message |
Type: string Сообщение об ошибке Example: |
500 Internal Server Error
Ошибка сервиса
Body
application/json
{
"message": "example",
"code": 0
}
|
Name |
Description |
|
code |
Type: integer Код ошибки |
|
message |
Type: string Сообщение об ошибке Example: |
No longer supported, please use an alternative and newer version.