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
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.

Min length: 0

Max length: 10

mon*

Type: Interval[]

Opening hours for Monday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

sat*

Type: Interval[]

Opening hours for Saturday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

sun*

Type: Interval[]

Opening hours for Sunday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

thu*

Type: Interval[]

Opening hours for Thursday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

tue*

Type: Interval[]

Opening hours for Tuesday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

wed*

Type: Interval[]

Opening hours for Wednesday, leave an empty array for non-working days
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.

Min length: 0

Max length: 10

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: 24:00

Min length: 5

Max length: 5

start*

Type: string

The start time of the period in the HH:MM format

Example: 00:00

Min length: 5

Max length: 5

400 Bad Request

Error in the parameters, the response contains a list of validation errors

Body

application/json
[
    {
        "code": 100,
        "description": "Description of error"
    }
]

OrderStatusPut[]

OrderStatusPut

Name

Description

status*

Type: string

Order ststus.
Status description:

  • TAKEN_BY_COURIER - courier picked up the order from the restaurant.
  • DELIVERED – order completed.
  • CANCELLED – order cancelled.

Enum: CANCELLED, TAKEN_BY_COURIER, DELIVERED

attributes

Type: string[]

Additional attributes when changing the order status, for example, a sign of payment upon cancellation

Example: paid

comment

Type: string

Description of cancellation reasons (can be empty)

Example: test

Max length: 500

reason

Type: string

The reason for the cancellation of the order. It is transmitted only with the CANCELLED status

Example: place.unable_to_call

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: 1937-01-01T12:00:27.870000+00:20

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: Access token has been expired. You should request a new one

500 Internal Server Error

Internal server errors

Body

application/json
[
    {
        "code": 100,
        "description": "Description of error"
    }
]

OrderStatusPut[]

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

Previous