Endpoints
GET /payments
List payments with cursor pagination + filters.
GET
/paymentssecret keyList payments. Cursor-paginated and filterable by status, method, country, and creation window.
Body parameters
limitinteger1–100. Default 50.starting_afterstringCursor — last ID of the previous page.statusstringcompleted | processing | failed | refunded | …created[gte]integerUnix 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…"
}