Блокировка магазинов

Метод позволяет Партнёру отправлять Яндекс Еде запрос на блокировку магазина.

Примечание

Повторная отправка той же блокировки в течение минуты не будет обработана.

Request

POST

/block

Headers

Name

Description

Authorization

Type: string

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

Example: ``

Partner-Name

Type: string

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

Example: ``

Body

application/json
{
  "vendorInfo": [
    {
      "vendorId": "819711",
      "deliveryType": "ddc"
    }
  ],
  "from": "2016-05-12T23:54:32+0100",
  "to": "2016-05-12T23:54:32+0100",
  "tag": "technical_problem"
}

Name

Description

from

Type: string

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

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

tag

Type: string

Тег блокировки.

Enum: technical_problem, too_busy

vendorInfo

Type: VendorInfo

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

to

Type: string | null

Дата и время окончания блокировки (если не указано, то блокируется навсегда).

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

VendorInfoItems

Name

Description

vendorId

Type: string

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

Example: 819711

deliveryType

Type: string

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

Enum: ddc, marketplace

Example
{
  "vendorId": "819711",
  "deliveryType": "ddc"
}

VendorInfo

Type: VendorInfoItems[]

Example
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]

Responses

200 OK

OK

Body

application/json
{}

Name

Description

400 Bad Request

Ошибка в запросе.

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Код ошибки.

message

Type: string

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

Example: example

details

Type: object
Example
{}

404 Not Found

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

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Код ошибки.

message

Type: string

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

Example: example

details

Type: object
Example
{}

500 Internal Server Error

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

Body

application/json
{
  "message": "example",
  "code": 0,
  "details": {}
}

Name

Description

code

Type: integer

Код ошибки.

message

Type: string

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

Example: example

details

Type: object
Example
{}

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