Get promotional dishes associated with the menu
This method is used to transmit the substitute ID of a gift dish for the "dish as a gift" promotion.
Request
GET
/menu/{restaurantId}/promos
Path parameters
|
Name |
Description |
|
restaurantId |
Type: string The ID of the restaurant in the partner's system Example: `` |
Responses
200 OK
Returns a list of promotional dish items related to the main menu
Body
application/json
{
"promoItems": [
{
"id": "string",
"promoId": "string"
}
]
}
|
Name |
Description |
|
promoItems |
Type: PromoItems[] Example
|
PromoItems
|
Name |
Description |
|
id |
Type: string ID of the main menu item Example: |
|
promoId |
Type: string ID of the promotional item Example: |
Example
{
"id": "string",
"promoId": "string"
}
401 Unauthorized
Authorization failed - the token expired or was not passed in the request. A retry will be made
Body
application/json
{
"reason": "Access token has been expired. You should request a new one"
}
|
Name |
Description |
|
reason |
Type: string Reason for authorization failure Example: |
404 Not Found
No restaurant found. An array with an object from the error list is expected in the response body
ErrorItem
|
Name |
Description |
|
code |
Type: integer Error code agreed with Yandex |
|
description |
Type: string Error message Example: |
Example
{
"code": 100,
"description": "Description of error"
}
500 Internal Server Error
Internal server errors. An array with an object from the error list is expected in the response body