Полный цикл доставки заказа

Последовательность вызовов от создания заказа до успешной доставки:

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

    POST /api/integration/v1/refbook/depot/create
    
  2. Регистрация курьера:

    POST /api/integration/v1/couriers/courier/store
    
  3. Создание смены:

    POST /api/integration/v1/couriers/shift/store
    
  4. Начало смены:

    POST /api/integration/v1/couriers/shift/event-handler/shift_updated (status: "ongoing")
    
  5. Создание заказа:

    POST /api/integration/v1/orders/order/store
    
  6. Обновление заказа:

    POST /api/integration/v1/orders/order/event-handler/order_updated
    
  7. Построение маршрута:

    POST /api/integration/v1/routes/build-routes
    
  8. Принятие маршрута:

    POST /api/integration/v1/routes/route/accept
    
  9. Забор заказа на складе:

    POST /api/integration/v1/orders/order/depot/checkpoint (arrival)
    POST /api/integration/v1/orders/order/depot/checkpoint (departure)
    
  10. Обновление статуса заказа (в пути):

    POST /api/integration/v1/orders/order/event-handler/order_updated (status: "delivery_in_progress")
    
  11. Доставка и завершение заказа:

    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)
    
Написать в службу поддержки