Skip to content
ChainPesaDocsTest mode
Dashboard

API reference · Payments

Retrieve a payment

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

StatusCodeWhen
401unauthorizedBad or revoked key, or a disallowed address
403forbiddenThe key lacks the scope
404not_foundNothing with that value
429rate_limitedSlow down; see Retry-After

All error codes

Request
curl 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

Runs against your test data. Your key is not saved and is cleared when you leave the page.