API reference · Payments
Your 50 most recent payments, newest first.
GET/api/v1/payments
Requires the payments:read scope. Returns 200 on success.
Common errors
| Status | Code | When |
|---|
| 401 | unauthorized | Bad or revoked key, or a disallowed address |
| 403 | forbidden | The key lacks the scope |
| 429 | rate_limited | Slow down; see Retry-After |
All error codes
Requestcurl https://dev.chainpesa.com/api/v1/payments \
-H "Authorization: Bearer $CHAINPESA_KEY"
Response 200{
"object": "list",
"data": [
{
"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