Retrieve list of restaurants with active high-demand status

High demand can be set through the Yandex Vendor app if
the restaurant is loaded at the moment and the order preparation time has increased.

In the future, it will be possible to install and remove high demand through the API

Request

POST

/partner-integration/v1/place-info/v1/busy-mode-status

Body

application/json
{
  "filters": {
    "origin_ids": [
      "restaurant1"
    ],
    "delivery_type": "marketplace",
    "service": "YE"
  },
  "pagination": {
    "cursor": "example",
    "limit": 500
  }
}

Name

Description

filters

Type: BusyModeStatusFilters

Restaurant search query filters

Example
{
  "origin_ids": [
    "restaurant1"
  ],
  "delivery_type": "marketplace",
  "service": "YE"
}

pagination

Type: BusyModePagination

Pagination to obtain the status of high demand in restaurants. More about pagination and cursors at https://slack.engineering/evolving-api-pagination-at-slack/

Example
{
  "cursor": "example",
  "limit": 500
}

OriginId

Type: string

Example: restaurant1

DeliveryType

Delivery type

Type: string

Enum: native, marketplace

Service

Type: string

Enum: YE, MD

BusyModeStatusFilters

Restaurant search query filters

Name

Description

delivery_type

Type: DeliveryType

Delivery type

Enum: native, marketplace

origin_ids

Type: OriginId[]

List of restaurant IDs in the partner's system

Min items: 1

Max items: 100

Example
[
  "restaurant1"
]

service

Type: Service

Enum: YE, MD

Example
{
  "origin_ids": [
    "restaurant1"
  ],
  "delivery_type": "marketplace",
  "service": "YE"
}

Cursor

Cursor for getting restaurants with an active high demand status

Type: string

Example: example

Limit

Limit on the number of restaurants to be returned

Type: integer

Default: 500

Min value: 1

Max value: 500

BusyModePagination

Pagination to obtain the status of high demand in restaurants. More about pagination and cursors at https://slack.engineering/evolving-api-pagination-at-slack/

Name

Description

cursor

Type: Cursor

Cursor for getting restaurants with an active high demand status

Example: example

limit

Type: Limit

Limit on the number of restaurants to be returned

Default: 500

Min value: 1

Max value: 500

Example: 1

Example
{
  "cursor": "example",
  "limit": 500
}

Responses

200 OK

OK

Body

application/json
{
  "busy_places": [
    {
      "origin_id": "restaurant1",
      "delivery_type": "marketplace",
      "services": [
        "YE"
      ],
      "extra_minutes": 0,
      "valid_till": "2024-01-01T12:00:05.125+03:00"
    }
  ],
  "cursor": "example"
}

Name

Description

busy_places

Type: BusyPlace[]

List of restaurants with information about high demand

Example
[
  {
    "origin_id": "restaurant1",
    "delivery_type": "marketplace",
    "services": [
      "YE"
    ],
    "extra_minutes": 0,
    "valid_till": "2024-01-01T12:00:05.125+03:00"
  }
]

cursor

Type: Cursor

Cursor for getting restaurants with an active high demand status

Example: example

BusyPlace

Name

Description

delivery_type

Type: DeliveryType

Delivery type

Enum: native, marketplace

extra_minutes

Type: integer

Additional cooking time in minutes

origin_id

Type: OriginId

Example: restaurant1

services

Type: Service[]

The list of services in which the restaurant is represented

Example
[
  "YE"
]

valid_till

Type: string<date-time>

Date and time in RFC 3339 format with indication of the time zone the belt to which the cooking allowance applies

Example: 2024-01-01T12:00:05.125+03:00

Example
{
  "origin_id": "restaurant1",
  "delivery_type": "marketplace",
  "services": [
    "YE"
  ],
  "extra_minutes": 0,
  "valid_till": "2024-01-01T12:00:05.125+03:00"
}

400 Bad Request

Request error

Body

application/json
{
  "message": "example",
  "code": "example"
}

Name

Description

code

Type: string

Error code

Example: example

message

Type: string

Error message

Example: example

500 Internal Server Error

Internal server error

Body

application/json
{
  "message": "example",
  "code": "example"
}

Name

Description

code

Type: string

Error code

Example: example

message

Type: string

Error message

Example: example