TrackMe API Docs
API ReferenceAdmin: Invoices

Admin list of invoices.

Cross-tenant invoice listing for ops. Bound the result with `?limit=` (default 50, max 200). Sorted newest-first.

GET
/api/v1/admin/invoices

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

limit?number

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/admin/invoices"
{  "data": {    "items": [      {        "id": "inv_01jq8zx1a3c5e7g9j1l3n5p7q9",        "invoiceNumber": "INV-20260520-0001",        "paymentOrderId": "pmo_01jq8z8b3d5f7h9k1m3n5p7q9r",        "serviceType": "featured_truck",        "amountMinor": 9900,        "currencyCode": "SAR",        "status": "issued",        "issuedAt": "2026-05-20T19:33:02.000Z",        "paidAt": "2026-05-20T19:33:02.000Z",        "payerId": "usr_01jq8z4f3g5h7j9k1l3m5n7o9p"      }    ]  },  "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"  }}