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

<div class="openapi">

# Getting block statuses.

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

Token generated by Yango Deli.

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

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

Partner’s name.

_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**: [VendorInfo](#entity-VendorInfo)

{% 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 of the store in the Partner’s system.

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

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

Delivery type.

_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
{
  "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": "Technical reasons"
    }
  ]
}
```

{% 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": "Technical reasons"
  }
]
```

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

Block identifier in the service

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

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

Delivery type

_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

Date and time when blocking starts

_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

Block source (Partner name or delivery club for Yandex Eats’ own blocks).

_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 of the store in the Partner’s system.

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

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

Unblocking possible
{.table-cell}
||
||

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

Block comment, provided only for Yango Deli’ internal blocks.

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

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

Date and time when blocking ends

_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": "Technical reasons"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Request 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

Error code.
{.table-cell}
||
||

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

Error message.

_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

Store’s 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

Error code.
{.table-cell}
||
||

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

Error message.

_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

Service 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

Error code.
{.table-cell}
||
||

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

Error message.

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