Restaurant blocking
Request
POST
/block
Headers
|
Name |
Description |
|
Authorization |
Type: string A token generated on the side of the Yandex |
|
Partner-Name |
Type: string Partner name |
Body
application/json
{
"vendorInfo": [
{
"vendorId": "819711",
"deliveryType": "ddc"
}
],
"from": "2016-05-12T23:54:32+0100",
"to": "2016-05-12T23:54:32+0100",
"message": "string",
"tag": "technical_problem"
}
|
Name |
Description |
|
from* |
Type: string Date and time of the start of the block Example: |
|
tag* |
Type: string blocking tag Enum: |
|
vendorInfo* |
Type: Vendor[] |
|
message |
Type: string The reason of blocking Max length: |
|
to |
Type: string The date and time of the end of the lock (if not specified, then it is blocked forever) Example: |
Vendor
|
Name |
Description |
|
deliveryType |
Type: string Delivery type Example: Enum: |
|
vendorId |
Type: string Restaurant ID in the partner's system Example: |
Responses
200 OK
OK
Body
application/json
{}
400 Bad Request
Request error
Body
application/json
{
"message": "string",
"code": 0
}
|
Name |
Description |
|
code* |
Type: integer Error code |
|
message* |
Type: string Erroe message |
404 Not Found
The place was not found
Body
application/json
{
"message": "string",
"code": 0
}
|
Name |
Description |
|
code* |
Type: integer Error code |
|
message* |
Type: string Erroe message |
500 Internal Server Error
Internal server error
Body
application/json
{
"message": "string",
"code": 0
}
|
Name |
Description |
|
code* |
Type: integer Error code |
|
message* |
Type: string Erroe message |
No longer supported, please use an alternative and newer version.