Restaurant blocking

Request

POST

/block

Headers

Name

Description

Authorization

Type: string

A token generated on the side of the Yandex

Example: ``

Partner-Name

Type: string

Partner name

Example: ``

Body

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

Name

Description

from

Type: string

Date and time of the start of the block

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

tag

Type: string

blocking tag

Enum: technical_problem, too_busy

vendorInfo

Type: VendorInfo

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

message

Type: string | null

The reason of blocking

Max length: 4096

Example: example

to

Type: string | null

The date and time of the end of the lock (if not specified, then it is blocked forever)

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

Vendor

Name

Description

deliveryType

Type: string

Delivery type

Enum: ddc, marketplace

vendorId

Type: string

Restaurant ID in the partner's system

Example: 819711

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

VendorInfo

Type: Vendor[]

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

Responses

200 OK

OK

Body

application/json
{}

Name

Description

400 Bad Request

Request error

Body

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

Name

Description

code

Type: integer

Error code

message

Type: string

Erroe message

Example: example

404 Not Found

The place was not found

Body

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

Name

Description

code

Type: integer

Error code

message

Type: string

Erroe message

Example: example

500 Internal Server Error

Internal server error

Body

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

Name

Description

code

Type: integer

Error code

message

Type: string

Erroe message

Example: example

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