Skip to main content

Assign Driver to Order

This event can be sent after you have received an Order Confirmed event and are prepared to assign a delivery driver to an order.

API Reference

NOTE: If a driver has already been assigned to this order, you will receive a 4XX error response code.

{
"type": "order.assign.driver",
"object": {
"location_id": "location_id", // The location_id from the order event you received
"order_id": "order_id", // The order_id from the order event you received
"driver": {
"name": "Test Driver",
"phone": {
"number": "123456789",
"code": "+1" // Optional
}
}
}
}