Charges

Fetch a charge

Scoped to your business and your key's mode. Someone else's charge and a charge that does not exist give the same 404, on purpose — telling them apart tells an attacker which ids are real.

Before you call this endpoint

  • An API key needs the payments:read scope.
  • Once your business has an IP allowlist, every live key must call from an address on it.
  • Guide: Mobile money collections
GET
/api/b/v1/charges/{charge_id}

Scoped to your business and your key's mode.

Someone else's charge and a charge that does not exist give the same 404, on purpose — telling them apart tells an attacker which ids are real.

Path Parameters

charge_id*Charge Id
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/api/b/v1/charges/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "reference": "string",  "amount_minor": 0,  "fee_minor": 0,  "net_minor": 0,  "refunded_minor": 0,  "refund_pending_minor": 0,  "refund_state": "none",  "currency": "string",  "status": "string",  "channel": "mobile_money",  "country_code": "RW",  "provider": "string",  "failure_reason": "string",  "is_test": true,  "created_at": "2019-08-24T14:15:22Z",  "confirmed_at": "2019-08-24T14:15:22Z",  "settled_at": "2019-08-24T14:15:22Z",  "expected_settlement_at": "2019-08-24T14:15:22Z",  "account": "acct_4f1c9a2b7d3e8f6a0b1c2d3e",  "payer_name": "string"}