Delivery statuses
Every value status can take, which ones are final, and what happens when a delivery moves to another fleet.
A delivery's status is one of these values. Only completed and cancelled are final. New values may appear over time, so treat a status you do not know as in progress.
| Status | Meaning |
|---|---|
pending_assign | Looking for a driver. |
scheduled | Scheduled for a later pickup (pickupAt). |
runner_assigned | A driver accepted the delivery. |
en_route_pickup | The driver is on the way to the restaurant. |
arrived_pickup | The driver is at the restaurant. |
picked_up | The food is picked up. |
en_route_dropoff | On the way to the customer. |
arrived_dropoff | The driver is at the customer. |
completed | Delivered. Final. |
cancelled | Cancelled, by you, by us or by the fleet. Final. |
returnInProgres | The driver is bringing the food back (the customer could not be reached). |
returned | The food is back at the restaurant. |
pending_merchant, readyForPickup, foodNotReady, unknown | Rare in-between states some fleets report. Treat them as in progress. |
Moving to another fleet
If a fleet finds no driver in time, we move the delivery to another fleet automatically. It stays the same delivery: the same id and externalId, while provider changes and status goes back to pending_assign. The move is not charged.
Rarely, in the middle of a move, a webhook with
cancelled arrives just before the new state. Always go by the latest state (updatedAt), not by the order webhooks arrive in.