---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.kz/routing/doc/ru/oob/guidelines/full.md
  - href: ru/oob/guidelines/full.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. Создание склада:

    ```
    POST /api/integration/v1/refbook/depot/create
    ```

1. Регистрация курьера:

    ```
    POST /api/integration/v1/couriers/courier/store
    ```

1. Создание смены:

    ```
    POST /api/integration/v1/couriers/shift/store
    ```

1. Начало смены:

    ```
    POST /api/integration/v1/couriers/shift/event-handler/shift_updated (status: "ongoing")
    ```

1. Создание заказа:

    ```
    POST /api/integration/v1/orders/order/store
    ```

2. Обновление заказа:

    ```
    POST /api/integration/v1/orders/order/event-handler/order_updated
    ```

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

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

4. Принятие маршрута:

    ```
    POST /api/integration/v1/routes/route/accept
    ```

5. Забор заказа на складе:

    ```
    POST /api/integration/v1/orders/order/depot/checkpoint (arrival)
    POST /api/integration/v1/orders/order/depot/checkpoint (departure)
    ```

6. Обновление статуса заказа (в пути):

    ```
    POST /api/integration/v1/orders/order/event-handler/order_updated (status: "delivery_in_progress")
    ```

7. Доставка и завершение заказа:

    ```
    POST /api/integration/v1/orders/order/destination/checkpoint (arrival)
    POST /api/integration/v1/orders/order/event-handler/order_updated (status: "completed")
    POST /api/integration/v1/orders/order/destination/checkpoint (departure)
    ```


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


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