---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.kz/routing/doc/ru/oob/guidelines/multiple-queues.md
  - href: ru/oob/guidelines/multiple-queues.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: Яндекс Маршрутизация — экспресс-доставка — множественные очереди для разных типов курьеров
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.kz/routing/doc/ru/llms.txt


# Множественные очереди для разных типов курьеров

Последовательность вызовов для использования разных очередей для курьеров с разными характеристиками.

1. Создание курьеров разных типов:

    * {% cut "Курьер на велосипеде" %}

        ```json
        {
        "client_courier_id": "bike-courier-1",
        "courier_contract_status": "working",
        "courier_info": {
            "capabilities": {
            "vehicle_type": "bike",
            "max_weight_g": 15000,
            "units_quota": 6
                }
            }
        }
        ```

      {% endcut %}

    * {% cut "Пеший курьер" %}

        ```json
        {
        "client_courier_id": "walk-courier-1",
        "courier_contract_status": "working",
        "courier_info": {
            "capabilities": {
            "vehicle_type": "pedestrian",
            "max_weight_g": 5000,
            "units_quota": 3
                }
            }
        }
        ```

      {% endcut %}

1. Создание смен с указанием очередей:

    * {% cut "Смена для курьера на велосипеде" %}

        ```json
        {
        "client_courier_id": "bike-courier-1",
        "client_shift_id": "shift-bike-001",
        "region_id": "zone-1",
        "status": "planned",
        "assignment": {
            "type": "queue",
            "queue_id": "bikes_zone1"
            },
        "shift_info": {
            "planned_time_interval": {
                "from": "2025-10-23T09:00:00Z",
                "to": "2025-10-23T18:00:00Z"
                }
            }
        }
        ```

    {% endcut %}


    * {% cut "Смена для пешего курьера" %}

        ```json
        {
        "client_courier_id": "walk-courier-1",
        "client_shift_id": "shift-walk-001",
        "region_id": "zone-1",
        "status": "planned",
        "assignment": {
            "type": "queue",
            "queue_id": "pedestrian_zone1"
            },
        "shift_info": {
        "planned_time_interval": {
        "from": "2025-10-23T09:00:00Z",
        "to": "2025-10-23T18:00:00Z"
                }
            }
        }
        ```

    {% endcut %}

1. Создание заказов с разными требованиями:

    * {% cut "Создание тяжелого заказа" %}

        ```json
        {
        "client_order_id": "heavy-order-1",
        "content": {
            "dimensions": {
            "weight_gross_g": 12000
                }
            }
        }
        ```

    {% endcut %}

   * {% cut "Создание легкого заказа" %}

        ```json
        {
        "client_order_id": "light-order-1",
        "content": {
            "dimensions": {
            "weight_gross_g": 2000
                }
            }
        }
        ```

    {% endcut %}

1. Построение маршрутов:

    ```
    POST /api/integration/v1/routes/build-routes
    ```

В итоге сервис автоматически:

* назначает тяжелые заказы на курьеров с велосипедами (из соответствующей очереди);

* назначает легкие заказы на пеших курьеров (из соответствующей очереди);

* соблюдает очередность внутри каждой группы.

<!-- source: ru/oob/_includes/feedback.md -->
<a href="feedback">
  <span class="button">Написать в службу поддержки</span>
</a>


<!-- endsource: ru/oob/_includes/feedback.md -->
