Endpoints

GET /payments

List payments with cursor pagination + filters.

GET/paymentssecret key

List payments. Cursor-paginated and filterable by status, method, country, and creation window.

Body parameters
  • limitinteger
    1–100. Default 50.
  • starting_afterstring
    Cursor — last ID of the previous page.
  • statusstring
    completed | processing | failed | refunded | …
  • created[gte]integer
    Unix seconds — inclusive lower bound.
Request
curl "https://sandbox-api.key2pays.com/v1/payments?limit=20&status=completed" \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Response
{
  "data": [
    { "id": "pay_3aB81…", "amount": 12000, "currency": "MXN", "status": "completed" },
    { "id": "pay_3aB80…", "amount": 4500,  "currency": "USD", "status": "completed" }
  ],
  "has_more": true,
  "next_cursor": "pay_3aB7Z…"
}