API ReferenceInvoices
List the caller's invoices across all paid-service features.
Aggregates invoices from featured-listing, job-advertising, and marketplace-distribution payments. Bound the result with `?limit=` (default 50, max 200). Sorted newest-first.
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
curl -X GET "https://example.com/api/v1/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", "downloadableUrl": "https://cdn.trackme.sa/i/INV-20260520-0001.pdf" } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "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" }}