Получение статуса блокировок

Request

POST

/v2/status

Headers

Name

Description

Authorization

Type: string

Токен сформированный на стороне ЯЕды

Partner-Name

Type: string

Имя партнера

Body

application/json
{
    "vendorInfo": [
        {
            "vendorId": "819711",
            "deliveryType": "ddc"
        }
    ],
    "statuses": [
        "enabled"
    ],
    "limit": 100,
    "offset": 0
}

Name

Description

vendorInfo*

Type: Vendor[]

limit

Type: integer

Лимит выдачи

Default: 100

Example: 100

offset

Type: integer

Смещение выдачи

Default: 0

Example: 0

statuses

Type: string[]

Enum: enabled

Vendor

Name

Description

deliveryType

Type: string

Тип доставки

Example: ddc

Enum: ddc, marketplace

vendorId

Type: string

Id ресторана в системе партнера

Example: 819711

Responses

200 OK

OK

Body

application/json
{
    "items": [
        {
            "vendorId": "17205",
            "blockId": "string",
            "externalBlockId": "string",
            "deliveryType": "ddc",
            "availableToCancel": false,
            "status": "enabled",
            "from": "2016-05-12T23:54:32+0100",
            "to": "2016-05-12T23:54:32+0100",
            "source": "delivery club",
            "message": "string"
        }
    ]
}

Name

Description

items*

Type: VendorObject[]

Массив вендоров
Объект вендора

VendorObject

Объект вендора

Name

Description

blockId*

Type: string

Идентификатор блокировки в сервисе

deliveryType*

Type: string

Идентификатор блокировки

Enum: ddc, marketplace

from*

Type: string

Дата и время начала блокировки

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

vendorId*

Type: string

Идентификатор вендора

Example: 17205

availableToCancel

Type: boolean

Возможность разблокировки

externalBlockId

Type: string

Идентификатор блокировки у партнера

message

Type: string

Комментарий к блокировке (полученный от партнера) или описание блокировки от сервиса

source

Type: string

Источник блокировки (имя партнера или delivery club)

Example: delivery club

status

Type: string

Статус блокировки

Enum: enabled, disabled

to

Type: string

Дата и время окончания блокировки

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

400 Bad Request

Ошибка запроса

Body

application/json
{
    "message": "string",
    "code": 0
}

Name

Description

code*

Type: integer

Код ошибки

message*

Type: string

Сообщение об ошибке

404 Not Found

Плейс не найден

Body

application/json
{
    "message": "string",
    "code": 0
}

Name

Description

code*

Type: integer

Код ошибки

message*

Type: string

Сообщение об ошибке

500 Internal Server Error

Ошибка сервиса

Body

application/json
{
    "message": "string",
    "code": 0
}

Name

Description

code*

Type: integer

Код ошибки

message*

Type: string

Сообщение об ошибке

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