List orders for the authenticated owner's trucks.
Scoped to trucks owned by the caller. Each item embeds the customer and full item snapshots, including items[].selectedAdditions. Filter by status and/or truckId; omit truckId to span every owned truck. Bound the page size with limit (default 50, max 100). Sorted newest-first.
Authorization
bearerAuth AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/owner/orders"{ "data": { "items": [ { "id": "ord_01jq8z3a0n0y9v0x1g4t2c7m6e", "orderNumber": "TM-20260518-0018", "truckId": "trk_01jq8z2m9k4p6r8t0v2x4z6b8d", "customerId": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "customer": { "id": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "fullName": "Aisha Hassan", "phone": "+966555098765", "email": "[email protected]" }, "status": "preparing", "paymentMethod": "in_person", "subtotalMinor": 5240, "totalMinor": 5240, "currencyCode": "SAR", "customerNotes": "Extra napkins please.", "canCancel": false, "cancellableUntil": null, "cancelledAt": null, "cancelReason": null, "refundRequired": false, "createdAt": "2026-05-18T18:14:08.000Z", "items": [ { "id": "ori_01jq8zc1a3c5e7g9j1l3n5p7q9", "menuItemId": "mit_01jq8zc1a3c5e7g9j1l3n5p7q9", "name": "Smash Burger", "quantity": 2, "unitPriceMinor": 2200, "lineTotalMinor": 4400, "selectedAdditions": [ { "id": "mia_01jq8za1a3c5e7g9j1l3n5p7q9", "name": "Extra cheese", "priceMinor": 300 } ] } ] } ], "limit": 50 }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "FORBIDDEN", "message": "You are not allowed to perform this action." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "One or more fields are invalid.", "fields": [ { "path": "email", "rule": "email", "message": "Must be a valid email address." } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}Sugar wrapper to create a review for a completed order. POST
Previous Page
Download the caller's orders as a CSV file. GET
Streams up to 5,000 rows (newest-first) matching the optional `?status=`, `?truckId=`, `?from=` and `?to=` filters. The response is `text/csv; charset=utf-8` with a `Content-Disposition: attachment` header so browsers prompt for download.