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 ofExternalOrderrows:pickup_name/pickup_address,dropoff_address,customer_name/customer_phone,status(aFirstOrderStatusvalue),tip,order_total,contents(line items, same shape as “Get order contents”),runner_id.total— total matching rows server-side (for pagination), not justdata.length.usedCache— whether this response was served from the Elasticsearch read-cache (true) or fell back to a live DB query (false).
Examples
Section titled “Examples”curl --request GET 'https://api.firstdelivery.com/api/v3/orders/runner?limit=100'const response = await fetch("https://api.firstdelivery.com/api/v3/orders/runner?limit=100", { "method": "GET", "headers": {}})const data = await response.json()import requests
response = requests.request( "GET", "https://api.firstdelivery.com/api/v3/orders/runner?limit=100", headers={},)response.raise_for_status()Saved responses
Section titled “Saved responses”{ "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}
