Get the restaurant's opening hours
It works according to a schedule (it is possible to change/extend the request interval in agreement with Yandex)
Note
This method is only available by subscription.
Request
GET
/places/{restaurantId}/schedule
Path parameters
|
Name |
Description |
|
restaurantId* |
Type: string The ID of the restaurant in the partner's system |
Responses
200 OK
Sucsess
Body
application/json
{
"mon": [
{
"start": "00:00",
"end": "24:00"
}
],
"tue": [
{
"start": "00:00",
"end": "24:00"
}
],
"wed": [
{
"start": "00:00",
"end": "24:00"
}
],
"thu": [
{
"start": "00:00",
"end": "24:00"
}
],
"fri": [
{
"start": "00:00",
"end": "24:00"
}
],
"sat": [
{
"start": "00:00",
"end": "24:00"
}
],
"sun": [
{
"start": "00:00",
"end": "24:00"
}
]
}
|
Name |
Description |
|
fri* |
Type: Interval[] Opening hours for Friday, leave an empty array for non-working days Min length: Max length: |
|
mon* |
Type: Interval[] Opening hours for Monday, leave an empty array for non-working days Min length: Max length: |
|
sat* |
Type: Interval[] Opening hours for Saturday, leave an empty array for non-working days Min length: Max length: |
|
sun* |
Type: Interval[] Opening hours for Sunday, leave an empty array for non-working days Min length: Max length: |
|
thu* |
Type: Interval[] Opening hours for Thursday, leave an empty array for non-working days Min length: Max length: |
|
tue* |
Type: Interval[] Opening hours for Tuesday, leave an empty array for non-working days Min length: Max length: |
|
wed* |
Type: Interval[] Opening hours for Wednesday, leave an empty array for non-working days Min length: Max length: |
Interval
The interval of working hours. Specify 00:00-24:00 for round-the-clock zones. Opening hours are indicated according to the local timezone of the restaurant.
|
Name |
Description |
|
end* |
Type: string Period end time in HH:MM format Example: Min length: Max length: |
|
start* |
Type: string The start time of the period in the HH:MM format Example: Min length: Max length: |
400 Bad Request
Error in the parameters, the response contains a list of validation errors
OrderStatusPut
|
Name |
Description |
|
status* |
Type: string Order ststus.
Enum: |
|
attributes |
Type: string[] Additional attributes when changing the order status, for example, a sign of payment upon cancellation Example: |
|
comment |
Type: string Description of cancellation reasons (can be empty) Example: Max length: |
|
reason |
Type: string The reason for the cancellation of the order. It is transmitted only with the CANCELLED status Example: |
|
updatedAt |
Type: string The date when the order status changed, in RFC 3339 format with fractional part of seconds (Y-m-d\TH:i:s.uP) Example: |
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: |
500 Internal Server Error
Internal server errors
No longer supported, please use an alternative and newer version.