Skip to content

Unassign order (set pending_dispatch)

PATCH {{baseUrl}}/orders/{{orderId}}/status

Unassigns the driver from an order, returning it to the dispatch pool. Source: endpoints/orders.ts PATCH /orders/:orderId/status (drivers may only set status: "pending_dispatch" on their own order — anything else is rejected with 401).

Response: 200 with the updated order row (status reset to pending_dispatch, runner_id cleared). Exact full shape wasn’t traced field-by-field; treat it as a TransactionSQL-like row.

{
"status": "pending_dispatch"
}
Terminal window
curl --request PATCH 'https://api.firstdelivery.com/api/orders/REPLACE_WITH_ORDER_ID/status' \
--header 'Content-Type: application/json' \
--data '{
"status": "pending_dispatch"
}'
{
"id": "REPLACE_WITH_ORDER_ID",
"status": "pending_dispatch",
"runner_id": null
}