API ReferencePayments
List the caller's payment orders across all paid-service features.
Unified view of featured-truck, job-advertising, and marketplace payments. Filter by `?status=` and/or `?serviceType=`. Paginate with `?page=` (default 1) + `?perPage=` (default 25, max 100). 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
status?unknown
serviceType?unknown
page?number
perPage?number
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/payments/orders"{ "data": { "items": [ { "id": "string", "orderNumber": "string", "payerId": "string", "serviceType": "string", "targetType": "string", "targetId": "string", "durationDays": 0, "unitPriceMinor": 0, "totalAmountMinor": 0, "currencyCode": "string", "status": "pending", "gateway": "string", "gatewayReference": "string", "paidAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ] }, "meta": { "requestId": "string", "pagination": { "page": 0, "perPage": 0, "total": 0, "totalPages": 0, "hasMore": true } }}{ "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" }}