Get a list of partner establishments

Retrieves a list of partner establishments.

Request

GET

/restaurants

Responses

200 OK

Returns a list of partner restaurants

Body

application/json
{
  "places": [
    {
      "id": "123",
      "title": "Test place",
      "address": "City, str. Street, 1"
    }
  ]
}

Name

Description

places

Type: Places[]

Example
[
  {
    "id": "123",
    "title": "Test place",
    "address": "City, str. Street, 1"
  }
]

Places

Name

Description

address

Type: string

restaurant adress

Example: City, str. Street, 1

id

Type: string

ID of the restaurant in the partner system

Example: 123

title

Type: string

restaurant name

Example: Test place

Example
{
  "id": "123",
  "title": "Test place",
  "address": "City, str. Street, 1"
}

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. An array with an object from the error list is expected in the response body

Body

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

Type: ErrorItem[]

ErrorItem

Name

Description

code

Type: integer

Error code agreed with Yandex

description

Type: string

Error message

Example: Description of error

Example
{
  "code": 100,
  "description": "Description of error"
}