Skip to content

Get my orders (v3)

GET {{baseUrl}}/v3/orders/runner?limit=100

Lists the driver’s active orders. Source: modules/transactions/…/getOrdersController.ts GetOrdersRunnerController.

Response fields:

  • data — array of ExternalOrder rows: pickup_name/pickup_address, dropoff_address, customer_name/customer_phone, status (a FirstOrderStatus value), tip, order_total, contents (line items, same shape as “Get order contents”), runner_id.
  • total — total matching rows server-side (for pagination), not just data.length.
  • usedCache — whether this response was served from the Elasticsearch read-cache (true) or fell back to a live DB query (false).
Terminal window
curl --request GET 'https://api.firstdelivery.com/api/v3/orders/runner?limit=100'
{
"data": [
{
"id": "REPLACE_WITH_ORDER_ID",
"_order_number": 4821,
"status": "en_route_dropoff",
"pickup_name": "Tony's Pizza",
"pickup_address": "123 Main St",
"dropoff_address": "456 Oak Ave",
"customer_name": "Sam Customer",
"customer_phone": "5557654321",
"tip": 5.5,
"order_total": 32.1,
"runner_id": "8e17d5db-da6e-453c-966f-bfc72c125094",
"contents": [
{ "itemName": "Margherita Pizza", "quantity": 1 }
]
}
],
"total": 1,
"usedCache": true
}