---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/eda-vendor/doc/ru/ref/Restorany/partner.restaurants.get.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/eda-vendor/doc/ru/llms.txt

<div class="openapi">

# Получить список заведений партнера

<!-- markdownlint-disable-file -->

Получает список заведений партнера.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
/restaurants
```

</div>

</div>

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

Возвращает список ресторанов партнера

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "places": [
    {
      "id": "123",
      "title": "Test place",
      "address": "City, str. Street, 1"
    }
  ]
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_places_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [Places](#entity-Places)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": "123",
    "title": "Test place",
    "address": "City, str. Street, 1"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### Places {#entity-Places}

#|
|| **Name** | **Description** ||
||

_address_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Адрес заведения

_Example:_{.json-schema-reset .json-schema-example} `City, str. Street, 1`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

ID заведения в системе партнера

_Example:_{.json-schema-reset .json-schema-example} `123`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название заведения

_Example:_{.json-schema-reset .json-schema-example} `Test place`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": "123",
  "title": "Test place",
  "address": "City, str. Street, 1"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Не пройдена авторизация - истек токен, либо не был передан в запросе. Будет сделан ретрай

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "reason": "Access token has been expired. You should request a new one"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_reason_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Причина, по которой не прошла авторизация

_Example:_{.json-schema-reset .json-schema-example} `Access token has been expired. You should request a new one`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

Внутренние ошибки сервера. **_В теле ответа ожидается массив с объектом из списка ошибок_**

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
[
  {
    "code": 100,
    "description": "Description of error"
  }
]
```

{% endcut %}

**Type**: [ErrorItem](#entity-ErrorItem)[]

</div>

<div class="openapi-entity">

### ErrorItem {#entity-ErrorItem}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Согласованный с Яндекс.Еда числовой код ошибки
{.table-cell}
||
||

_description_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Сообщение об ошибке

_Example:_{.json-schema-reset .json-schema-example} `Description of error`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "code": 100,
  "description": "Description of error"
}
```

{% endcut %}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.