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: |
|
tag |
Type: string blocking tag Enum: |
|
vendorInfo |
Type: VendorInfo Example
|
|
message |
Type: string | null The reason of blocking Max length: Example: |
|
to |
Type: string | null 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 Enum: |
|
vendorId |
Type: string Restaurant ID in the partner's system Example: |
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: |
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: |
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: |
No longer supported, please use an alternative and newer version.