Endpoints

GET /payments/{id}

Retrieve a payment by ID.

GET/payments/{id}secret key

Retrieve a payment by ID.

Request
curl https://sandbox-api.key2pays.com/v1/payments/pay_3aB81… \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Response
{ "id": "pay_3aB81…", "amount": 12000, "currency": "MXN", "status": "completed" }
Try itGET/payments/{id}sandbox
Request parameters
idstring · in pathRequired
Live snippet
curl -X GET "https://sandbox-api.key2pays.com/v1/payments/pay_3aB81mock" \
  -H "Authorization: Bearer sk_test_…YOUR_KEY"
Snippet updates as you edit the form. Sandbox responses are deterministic.