---
metadata:
  - name: generator
    content: Diplodoc Platform v5.48.2
alternate:
  - https://yandex.com/dev/eda-vendor/doc/en/ref/Vendor-Management-Integration-API/v2StatusBlocks.md
  - https://yandex.com/dev/eda-vendor/doc/ru/ref/Vendor-Management-Integration-API/v2StatusBlocks.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-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
/v2/status
```

</div>

</div>

</div>

### Headers

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

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

Токен сформированный на стороне ЯЕды

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

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

Имя партнера

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

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "vendorInfo": [
    {
      "vendorId": "819711",
      "deliveryType": "ddc"
    }
  ],
  "statuses": [
    "enabled"
  ],
  "limit": 100,
  "offset": 0
}
```

{% endcut %}

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

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

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

```json translate=no
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]
```

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

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

Лимит выдачи

_Default:_{.json-schema-reset .json-schema-value} `100`
{.table-cell}
||
||

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

Смещение выдачи

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

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

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

```json translate=no
[
  "example"
]
```

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

</div>

<div class="openapi-entity">

### Vendor {#entity-Vendor}

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

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

Тип доставки

_Enum:_{.json-schema-reset .json-schema-value} `ddc`, `marketplace`
{.table-cell}
||
||

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

Id ресторана в системе партнера

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

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

```json translate=no
{
  "vendorId": "819711",
  "deliveryType": "ddc"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### VendorInfo {#entity-VendorInfo}

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

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

```json translate=no
[
  {
    "vendorId": "819711",
    "deliveryType": "ddc"
  }
]
```

{% endcut %}

</div>

<div class="openapi-entity">

### EffectStatuses {#entity-EffectStatuses}

**Type**: string[]

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

```json translate=no
[
  "example"
]
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "items": [
    {
      "vendorId": "17205",
      "blockId": "example",
      "externalBlockId": "example",
      "deliveryType": "ddc",
      "availableToCancel": true,
      "status": "enabled",
      "from": "2016-05-12T23:54:32+0100",
      "to": "2016-05-12T23:54:32+0100",
      "source": "delivery club",
      "message": "example"
    }
  ]
}
```

{% endcut %}

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

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

Массив вендоров

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

```json translate=no
[
  {
    "vendorId": "17205",
    "blockId": "example",
    "externalBlockId": "example",
    "deliveryType": "ddc",
    "availableToCancel": true,
    "status": "enabled",
    "from": "2016-05-12T23:54:32+0100",
    "to": "2016-05-12T23:54:32+0100",
    "source": "delivery club",
    "message": "example"
  }
]
```

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

</div>

<div class="openapi-entity">

### VendorObject {#entity-VendorObject}

Объект вендора

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

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

Идентификатор блокировки в сервисе

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

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

Идентификатор блокировки

_Enum:_{.json-schema-reset .json-schema-value} `ddc`, `marketplace`
{.table-cell}
||
||

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

Дата и время начала блокировки

_Example:_{.json-schema-reset .json-schema-example} `2016-05-12T23:54:32+0100`
{.table-cell}
||
||

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

Идентификатор вендора

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

_availableToCancel_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Возможность разблокировки
{.table-cell}
||
||

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

Идентификатор блокировки у партнера

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

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

Комментарий к блокировке (полученный от партнера) или описание блокировки от сервиса

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

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

Источник блокировки (имя партнера или delivery club)

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

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

Статус блокировки

_Enum:_{.json-schema-reset .json-schema-value} `enabled`, `disabled`
{.table-cell}
||
||

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

Дата и время окончания блокировки

_Example:_{.json-schema-reset .json-schema-example} `2016-05-12T23:54:32+0100`
{.table-cell}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "vendorId": "17205",
  "blockId": "example",
  "externalBlockId": "example",
  "deliveryType": "ddc",
  "availableToCancel": true,
  "status": "enabled",
  "from": "2016-05-12T23:54:32+0100",
  "to": "2016-05-12T23:54:32+0100",
  "source": "delivery club",
  "message": "example"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Ошибка запроса

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "message": "example",
  "code": 0
}
```

{% endcut %}

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

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

Код ошибки
{.table-cell}
||
||

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

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

_Example:_{.json-schema-reset .json-schema-example} `example`
{.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
{
  "message": "example",
  "code": 0
}
```

{% endcut %}

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

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

Код ошибки
{.table-cell}
||
||

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

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

_Example:_{.json-schema-reset .json-schema-example} `example`
{.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
{
  "message": "example",
  "code": 0
}
```

{% endcut %}

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

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

Код ошибки
{.table-cell}
||
||

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

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

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

</div>

</div>

</div>

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