TrackMe API Docs
API ReferenceOwner: Orders

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.

GET
/api/v1/owner/orders/export

Authorization

bearerAuth
AuthorizationBearer <token>

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

format?unknown
status?string
truckId?string
from?string
to?string

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"  }}