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

Request

POST

/v2/status

Headers

Name

Description

Authorization*

Type: string

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

Partner-Name*

Type: string

Имя Партнёра.

Body

application/json
{
    "vendorInfo": [
        {
            "vendorId": "819711",
            "deliveryType": "ddc"
        }
    ]
}

Name

Description

vendorInfo*

Type: VendorInfoItems[]

VendorInfoItems

Name

Description

vendorId*

Type: string

Id магазина в системе Партнёра.

Example: 819711

deliveryType

Type: string

Тип доставки.

Example: ddc

Enum: ddc, marketplace

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": "Технические причины"
        }
    ]
}

Name

Description

items*

Type: ItemBlockStatusResponse[]

ItemBlockStatusResponse

Name

Description

blockId*

Type: string

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

deliveryType*

Type: string

Тип доставки

Enum: ddc, marketplace

from*

Type: string

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

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

source*

Type: string

Источник блокировки (имя Партнёра или delivery club для собственных блокировок Яндекс Еды).

Example: delivery club

vendorId*

Type: string

Id магазина в системе Партнёра

Example: 17205

availableToCancel

Type: boolean

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

message

Type: string

Комментарий к блокировке, передается только для внутренних блокировок Яндекс Еды.

Example: Технические причины

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

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

details

Type: ItemBlockStatusResponse

404 Not Found

Магазин не найден.

Body

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

Name

Description

code*

Type: integer

Код ошибки.

message*

Type: string

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

details

Type: ItemBlockStatusResponse

500 Internal Server Error

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

Body

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

Name

Description

code*

Type: integer

Код ошибки.

message*

Type: string

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

details

Type: ItemBlockStatusResponse

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