vDrive
vDrive API Docs
vgrubs.com

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.

StatusMeaning
pending_assignLooking for a driver.
scheduledScheduled for a later pickup (pickupAt).
runner_assignedA driver accepted the delivery.
en_route_pickupThe driver is on the way to the restaurant.
arrived_pickupThe driver is at the restaurant.
picked_upThe food is picked up.
en_route_dropoffOn the way to the customer.
arrived_dropoffThe driver is at the customer.
completedDelivered. Final.
cancelledCancelled, by you, by us or by the fleet. Final.
returnInProgresThe driver is bringing the food back (the customer could not be reached).
returnedThe food is back at the restaurant.
pending_merchant, readyForPickup, foodNotReady, unknownRare 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.