Reference
Delivery status
The four scheduling states inside order.delivery.status. Tracks how far along the delivery scheduling process is.
| ID | State | Description |
|---|---|---|
| 0 | Initialized | The order exists but no delivery scheduling has happened yet. |
| 1 | Pre-Confirmed | An initial delivery date is proposed but not yet confirmed with the customer. |
| 2 | Schedule Confirmed | The customer has confirmed the delivery date. Time window still TBD. |
| 3 | Window Confirmed | Both the date and the time window are locked in. Customer notifications go out. |
Typical lifecycle
- Order created →
delivery.status = 0 - Routing assigns a date →
delivery.status = 1 - Customer confirms date (via SMS, email, or your portal) →
delivery.status = 2 - Dispatch finalizes the route and locks the time window →
delivery.status = 3
Subscribe to delivery_changed and delivery_confirmed to track these transitions in real time.