Driver Delivery Status Updated
This event will be sent when Stream receives an update to a driver's delivery status. Full reference of driver delivery statuses can be found in the API documentation.
Driver updates can be added into Stream so they can be distributed live to connected POS systems and DSPs.
This event is off by default. Turn on delivery.status_updated under Subscribed Events in the partner portal, and it is sent for every location connected to your integration.
Courier ETA
While the courier is heading to the store (pending, pending_driver_confirmation or enroute_to_pickup), the order can carry an optional estimated_courier_arrival_time: the estimated courier arrival at the store, in Unix milliseconds. The event is also sent when only this ETA changes and delivery_status stays the same, so expect several events per order and treat the latest as current. The field is omitted once the courier has reached the store, and whenever no ETA is known.
The ETA travels only on delivery.status_updated, which is off by default. Until you turn that event type on under Subscribed Events, you receive neither the status changes nor the ETA-only refreshes, and nothing tells you they are being skipped. There is no separate switch for the ETA: once the event type is on, the field is included whenever Stream knows it.
Example Delivery Status Types
Enroute to Pickup
{
"type": "delivery.status_updated",
"location_id": "STREAM_LOCATION_1",
"reference_id": "PROVIDER_LOCATION_1",
"order": {
"id": "STREAM_ORDER_5678",
"dsp_order_id": "DSP_ORDER_ABC123",
"status": "out_for_delivery",
"delivery_status": "enroute_to_pickup",
"estimated_courier_arrival_time": 1761170400000
}
}
Arrived at Dropoff
{
"type": "delivery.status_updated",
"location_id": "STREAM_LOCATION_1",
"reference_id": "PROVIDER_LOCATION_1",
"order": {
"id": "STREAM_ORDER_5678",
"dsp_order_id": "DSP_ORDER_ABC123",
"status": "out_for_delivery",
"delivery_status": "arrived_at_dropoff"
}
}