Полный цикл доставки заказа
Последовательность вызовов от создания заказа до успешной доставки:
-
Создание склада:
POST /api/integration/v1/refbook/depot/create -
Регистрация курьера:
POST /api/integration/v1/couriers/courier/store -
Создание смены:
POST /api/integration/v1/couriers/shift/store -
Начало смены:
POST /api/integration/v1/couriers/shift/event-handler/shift_updated (status: "ongoing") -
Создание заказа:
POST /api/integration/v1/orders/order/store -
Обновление заказа:
POST /api/integration/v1/orders/order/event-handler/order_updated -
Построение маршрута:
POST /api/integration/v1/routes/build-routes -
Принятие маршрута:
POST /api/integration/v1/routes/route/accept -
Забор заказа на складе:
POST /api/integration/v1/orders/order/depot/checkpoint (arrival) POST /api/integration/v1/orders/order/depot/checkpoint (departure) -
Обновление статуса заказа (в пути):
POST /api/integration/v1/orders/order/event-handler/order_updated (status: "delivery_in_progress") -
Доставка и завершение заказа:
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)
Была ли статья полезна?
Предыдущая
Следующая