API reference · Payments
Fetch one payment. status is pending, underpaid, completed or expired.
GET/api/v1/payments/{id}
Requires the payments:read scope. Returns 200 on success.
Path parameters
idstringrequired- The payment id.
Common errors
| Status | Code | When |
|---|
| 401 | unauthorized | Bad or revoked key, or a disallowed address |
| 403 | forbidden | The key lacks the scope |
| 404 | not_found | Nothing with that value |
| 429 | rate_limited | Slow down; see Retry-After |
All error codes
Requestcurl https://dev.chainpesa.com/api/v1/payments/pay_Qm3x9Tq1LbZa \
-H "Authorization: Bearer $CHAINPESA_KEY"
Response 200{
"id": "pay_Qm3x9Tq1LbZa",
"object": "payment",
"status": "pending",
"mode": "test",
"amount": "250.000000",
"paid_amount": "0.000000",
"currency": "USDT",
"network": "TRON",
"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"settle_to": null,
"reference": "order_1042",
"price": null,
"checkout_url": "https://dev.chainpesa.com/pay/pay_Qm3x9Tq1LbZa",
"expires_at": "2027-01-12T10:45:00.000Z",
"created_at": "2027-01-12T09:45:00.000Z"
}
Send a test request