Download the caller's orders as a CSV file.
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.
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/export""string"{ "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" }}List orders for the authenticated owner's trucks. GET
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.
Owner order detail with customer contact info. GET
Returns the full order, item add-on snapshots, and the customer's phone + email so the owner can call about pickup or substitutions. Scoped to the truck owner via OrderPolicy.updateStatus.