---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/eda-vendor/doc/ru/ref/Menyu/partner.availability.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 -->

Позиции, содержащие схематические или логические несоответствия (слишком длинная строка, остаток равен -10.00) могут быть проигнорированы. Актуальная версия модели ответа - application/vnd.eats.menu.availability.v2+json

## 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
/menu/{restaurantId}/availability
```

</div>

</div>

</div>

### Path parameters

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

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

Идентификатор ресторана в системе партнёра

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

## Responses

<div class="openapi__response__code__200">

## 200 OK

Возвращает список позиций меню, недоступных на текущий момент в данном ресторане

<div class="openapi-entity">

### Body

{% cut "application/vnd.eats.menu.availability.v2+json" %}

```json translate=no
{
  "items": [
    {
      "itemId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
      "stock": 5
    }
  ],
  "modifiers": [
    {
      "modifierId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
      "stock": 5
    }
  ],
  "combos": [
    {
      "comboId": "example",
      "stock": 5.5
    }
  ]
}
```

{% endcut %}

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

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

Список пунктов меню, по которым требуется изменить доступность

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

```json translate=no
[
  {
    "itemId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
    "stock": 5
  }
]
```

{% endcut %}
{.table-cell}
||
||

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

Список модификаторов блюд, по которым требуется изменить доступность

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

```json translate=no
[
  {
    "modifierId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
    "stock": 5
  }
]
```

{% endcut %}
{.table-cell}
||
||

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

Список комбо, по которым требуется изменить доступность

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

```json translate=no
[
  {
    "comboId": "example",
    "stock": 5.5
  }
]
```

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

</div>

<div class="openapi-entity">

### MenuAvailabilityItems {#entity-MenuAvailabilityItems}

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

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

Внутренний идентификатор блюда в ресторане в системе партнера. Может быть любым значением, приводимым к строке. Рекомендация – UUID4

_Example:_{.json-schema-reset .json-schema-example} `eff0cec0-058c-4d53-b524-1c04ac24fb51`
{.table-cell}
||
||

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

Остаток в ресторане. При 0 блюдо пропадает из выдачи. Не обязательное поле. Если stock для itemId не передан, то остаток блюда считается за 0.

_Default:_{.json-schema-reset .json-schema-value} `0`
{.table-cell}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "itemId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
  "stock": 5
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### MenuAvailabilityModifiers {#entity-MenuAvailabilityModifiers}

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

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

Внутренний идентификатор модификатора в ресторане в системе партнера. Может быть любым значением, приводимым к строке. Рекомендация – UUID4

_Example:_{.json-schema-reset .json-schema-example} `eff0cec0-058c-4d53-b524-1c04ac24fb51`
{.table-cell}
||
||

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

Остаток в ресторане. При 0 модификатор пропадает из выдачи. Не обязательное поле. Если stock для modifierId не передан, то остаток блюда считается за 0.

_Default:_{.json-schema-reset .json-schema-value} `0`
{.table-cell}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "modifierId": "eff0cec0-058c-4d53-b524-1c04ac24fb51",
  "stock": 5
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### MenuAvailabilityCombos {#entity-MenuAvailabilityCombos}

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

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

Внутренний идентификатор комбо в ресторане в системе партнера. Может быть любым значением, приводимым к строке. Рекомендация - UUID4

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

_stock_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: number

Остаток в ресторане. При 0 комбо пропадает из выдачи. Не обязательное поле. Если не указан, считается за 0

_Default:_{.json-schema-reset .json-schema-value} `0`
{.table-cell}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "comboId": "example",
  "stock": 5.5
}
```

{% 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__404">

## 404 Not Found

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

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

</div>

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