---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/support/retail/ru/ref/v2StatusBlocks.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/retail/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 .json-schema-required}
{.table-cell}|
**Type**: string

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

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

_Partner-Name_{.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}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

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

{% endcut %}

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

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

_Max items:_{.json-schema-reset .json-schema-assertion} `50`

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

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

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

</div>

<div class="openapi-entity">

### VendorInfoItems {#entity-VendorInfoItems}

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

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

Id магазина в системе Партнёра.

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

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

Тип доставки.

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

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

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

{% endcut %}

</div>

<div class="openapi-entity">

### VendorInfoStatus {#entity-VendorInfoStatus}

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

_Max items:_{.json-schema-reset .json-schema-assertion} `50`

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

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

{% 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",
      "deliveryType": "ddc",
      "availableToCancel": true,
      "from": "2016-05-12T23:54:32+0100",
      "to": "2016-05-12T23:54:32+0100",
      "source": "delivery club",
      "message": "Технические причины"
    }
  ]
}
```

{% endcut %}

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

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

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

```json translate=no
[
  {
    "vendorId": "17205",
    "blockId": "example",
    "deliveryType": "ddc",
    "availableToCancel": true,
    "from": "2016-05-12T23:54:32+0100",
    "to": "2016-05-12T23:54:32+0100",
    "source": "delivery club",
    "message": "Технические причины"
  }
]
```

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

</div>

<div class="openapi-entity">

### ItemBlockStatusResponse {#entity-ItemBlockStatusResponse}

#|
|| **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}
||
||

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

Источник блокировки (имя Партнёра или delivery club для собственных блокировок Яндекс Еды).

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

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

Id магазина в системе Партнёра

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

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

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

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

Комментарий к блокировке, передается только для внутренних блокировок Яндекс Еды.

_Example:_{.json-schema-reset .json-schema-example} `Технические причины`
{.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",
  "deliveryType": "ddc",
  "availableToCancel": true,
  "from": "2016-05-12T23:54:32+0100",
  "to": "2016-05-12T23:54:32+0100",
  "source": "delivery club",
  "message": "Технические причины"
}
```

{% 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,
  "details": {}
}
```

{% 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}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

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

```json translate=no
{}
```

{% endcut %}
{.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,
  "details": {}
}
```

{% 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}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

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

```json translate=no
{}
```

{% endcut %}
{.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,
  "details": {}
}
```

{% 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}
||
||

_details_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Type**: object" %}

#|
|#{.json-schema-properties}

{% endcut %}

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

```json translate=no
{}
```

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

</div>

</div>

</div>

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