Skip to content
ChainPesaDocsTest mode
Dashboard

API reference · Banks and accounts

Verify an account

Check an account before paying it and get back the name the bank holds. Available for NGN, GHS and XOF (Benin). Limited to 30 checks a minute.

POST/api/v1/accounts/verify

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

Body parameters

currencystringrequired
The account's currency.
bank_idintegerrequired
From List banks.
account_numberstringrequired
The account to check.

Common errors

StatusCodeWhen
400invalid_requestA field is missing or wrong; the message says which
401unauthorizedBad or revoked key, or a disallowed address
403forbiddenThe key lacks the scope
429rate_limitedSlow down; see Retry-After

All error codes

Request
curl -X POST https://dev.chainpesa.com/api/v1/accounts/verify \
  -H "Authorization: Bearer $CHAINPESA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "currency": "NGN",
    "bank_id": 1,
    "account_number": "0123456789"
  }'
Response 200
{
  "object": "account_verification",
  "currency": "NGN",
  "account_number": "0123456789",
  "account_name": "Ada Obi"
}
Send a test request

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