TrackMe API Docs

List the caller's stored payment methods.

Returns safe display metadata only — `brand`, `last4`, `expMonth/Year`, `walletType`. The encrypted provider token never leaves the server.

GET
/api/v1/payments/methods

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

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/payments/methods"
{  "data": {    "items": [      {        "id": "pmt_01jq8za1a3c5e7g9j1l3n5p7q9",        "provider": "paymob",        "walletType": null,        "brand": "visa",        "last4": "4242",        "expMonth": 12,        "expYear": 2030,        "isDefault": true,        "createdAt": "2026-05-14T13:20:11.000Z"      },      {        "id": "pmt_01jq8za2b4d6f8h0k2m4o6q8s0",        "provider": "paymob",        "walletType": null,        "brand": "mada",        "last4": "0007",        "expMonth": 12,        "expYear": 2030,        "isDefault": false,        "createdAt": "2026-04-29T18:11:00.000Z"      }    ]  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}
{  "error": {    "code": "AUTH_REQUIRED",    "message": "Authentication is required to access this resource."  },  "meta": {    "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7"  }}