Skip to content
ChainPesaDocsTest mode
Dashboard

API reference · Banks and accounts

List banks

The banks and mobile-money networks a payout in this currency can go to. Use an id as beneficiary.bank_id.

GET/api/v1/banks/{currency}

Requires the payouts:write scope. Returns 200 on success.

Path parameters

currencystringrequired
A local currency, for example GHS.

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/banks/GHS \
  -H "Authorization: Bearer $CHAINPESA_KEY"
Response 200
{
  "object": "list",
  "currency": "GHS",
  "data": [
    {
      "id": 277,
      "name": "MTN Ghana"
    }
  ]
}
Send a test request

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