---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/support/retail/ru/ref/Blocks.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/retail/ru/llms.txt

<div class="openapi">

# Блокировка магазинов

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

Метод позволяет Партнёру отправлять Яндекс Еде запрос на блокировку магазина.

{% note info %}

Повторная отправка той же блокировки в течение минуты не будет обработана.

{% endnote %}


## 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
/block
```

</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"
    }
  ],
  "from": "2016-05-12T23:54:32+0100",
  "to": "2016-05-12T23:54:32+0100",
  "tag": "technical_problem"
}
```

{% endcut %}

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

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

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

Тег блокировки.

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

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

_to_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string &#124; null

Дата и время окончания блокировки (если не указано, то блокируется навсегда).

_Example:_{.json-schema-reset .json-schema-example} `2016-05-12T23:54:32+0100`
{.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">

### VendorInfo {#entity-VendorInfo}

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

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

{% endcut %}

#|
|| **Name** | **Description** ||
|#{.json-schema-properties}

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