Skip to navigation

Bank account check

GET /api/v1/checks/bank_account/banks?country=NG
POST /api/v1/checks/bank_account
GET /api/v1/checks/bank_account
GET /api/v1/checks/bank_account/:id
DELETE /api/v1/checks/bank_account/:id

Check that a bank account belongs to the person or registered business you name, before you pay money into it. Available in Nigeria, Kenya and South Africa. It is the server-to-server counterpart of the dashboard’s Spot Checks → Check bank account task, and both share one history (API checks are labelled “API”).

Authentication: Authorization: Bearer sk_… (secret keys only).

Bank account verification must be switched on for your organisation. Until it is, every call answers 403 feature_disabled. Contact Toden to have it switched on.

Pick the bank

curl "https://api.toden.co/api/v1/checks/bank_account/banks?country=NG" \
-H "Authorization: Bearer sk_live_…"
{
"country": "NG",
"banks": [
{ "code": "044", "name": "Access Bank", "logo": "https://api.toden.co/api/kyc/assets/bank-logos/NG/044.png", "logoColor": "#fe5201" },
{ "code": "058", "name": "Guaranty Trust Bank", "logo": "https://api.toden.co/api/kyc/assets/bank-logos/NG/058.png", "logoColor": "#d84e01" }
]
}

Send the bank’s code as bankCode. In South Africa the code is the bank’s universal branch code. logo is a public PNG of the bank’s logo that needs no API key, so you can show it in your own bank picker. logoColor is the colour the logo is known by, such as #fe5201, if you want to draw a matching border or background. Both are null for a bank Toden has no logo for.

The answer also carries fields: the fields a check needs in that country, in order, each with a key, label, kind (digits, text or select), and where they apply minLength, maxLength, options, placeholder and hint. Pass holder=business to get a business’s fields. Everywhere it is the account number; in South Africa also the account type and the holder’s ID number (a person) or registration number (a business).

Run a check

FieldRequiredDescription
countryyesNG, KE or ZA.
bankCodeyesThe bank’s code from the list of banks.
accountNumberyesThe account number. Spaces and dashes are ignored. Ten digits in Nigeria (NUBAN).
holder.fullNameSouth Africa (one of these)The person the account should belong to. Optional in Nigeria and Kenya.
holder.businessNameSouth Africa (one of these)The registered business the account should belong to. Optional in Nigeria and Kenya.
holderTypenoperson (the default) or business: who should hold the account when you send no name. With a name it must agree with it.
idNumberSouth Africa, personThe holder’s 13-digit South African identity number.
registrationNumberSouth Africa, businessThe company registration number, such as 2015/123456/07.
accountTypenoSouth Africa only: current (the default), savings or transmission.
requestIdyesYour idempotency key, 8 to 120 characters. A retry with the same value returns the same check with replayed: true, without running or charging again.
curl -X POST https://api.toden.co/api/v1/checks/bank_account \
-H "Authorization: Bearer sk_live_…" \
-H "Content-Type: application/json" \
-d '{ "country": "NG", "bankCode": "058", "accountNumber": "0123456789", "holder": { "fullName": "Ada Obi" }, "requestId": "bank-check-7f3a91c2" }'

The answer comes back in the same response (201, or 200 for a retry):

{
"id": "chk_9a2c4e6f8b0d1f3a5c7e9b1d3f5a7c9e",
"kind": "bank_account",
"outcome": "pass",
"subject": "Ada Obi (••••••6789)",
"result": {
"match": "match",
"nameScore": 100,
"holderName": "ADA OBI",
"bankName": "Guaranty Trust Bank",
"accountNumberMasked": "••••••6789",
"accountFound": true,
"accountOpen": null,
"acceptsCredits": null,
"acceptsDebits": null,
"idNumberMatch": null,
"country": "NG",
"holderType": "person"
},
"failureCode": null,
"charged": "0.0179",
"channel": "api",
"createdAt": "2026-11-27T10:15:02.118Z",
"completedAt": "2026-11-27T10:15:03.402Z",
"replayed": false
}

The API only ever returns the account number masked, and a retry is recognised by a one-way hash of it. Toden keeps the full number encrypted, and shows it only to your team on the check’s result in the dashboard.

Without a name

In Nigeria and Kenya the name is optional. Leave holder out and the bank is simply asked whether it holds the account and under what name: match is not_compared, holderName is the bank’s name for the account, and nameScore is null. The outcome is pass when the bank holds the account and fail when it does not (not_found). Send holderType: "business" to check a business account. The price is the same with or without a name.

{ "country": "KE", "bankCode": "1", "accountNumber": "1234567890", "requestId": "bank-check-2b8d40e1" }

In South Africa the banks never return a name; they only confirm the one they are sent, so a name is required there and a check without one is refused with 400 invalid_input.

How the name is judged

In Nigeria and Kenya the bank returns the name the account is held under, and Toden compares it with the name you sent:

matchWhen
matchThe same name by its name match score (89 or more of 100). Word order, capitals, accents, a typing slip and a middle name the bank left out do not matter. For a person, every word of the bank’s name must be one of yours and your first name and surname must both be on the account. For a business, its legal ending (Ltd, Limited, Plc, Pty) does not matter and both names must have the same words. A person never matches an account held by a business or jointly.
close_matchNot the same, but close: a score just below 89, or an extra or missing word (a surname alone, a trading name with an extra word).
no_matchSomeone else’s name.
not_foundThe bank has no such account.
not_comparedNo name was sent: the bank holds the account, under holderName.

holderName is the bank’s own name for the account, and nameScore is the name match score, 0 to 100, the same score every Toden name check uses.

In South Africa the banks compare the name (and a person’s identity number) themselves and never return a name, so the answer is match or no_match, with holderName and nameScore null. They also say whether the account is open (accountOpen) and whether it accepts payments in (acceptsCredits) and debits (acceptsDebits). For a person, idNumberMatch says whether the identity number you sent is the holder’s.

Outcomes

outcomeWhen
passmatch, on an account that is not closed and, in South Africa, with the person’s identity number; or not_compared, an account the bank holds when no name was sent.
reviewclose_match, or a match on a closed account or with an identity number that is not the holder’s. Someone should look at it.
failno_match or not_found.
unavailableThe bank could not be asked (failureCode says why). It was not charged and is never a pass. Run it again with a new requestId.

Billing

Each check is charged at your bank account price for the country, in production only: in South Africa a business account has its own price. A check that could not be completed (unavailable) is refunded at once, and a retry with the same requestId is never charged again. If your balance cannot cover the check, it is refused with 402 insufficient_credits and nothing is run.

Sandbox

In Sandbox no bank is asked and nothing is charged. The list of banks is the same real list as in production, so pick any bank: the account number’s last four digits choose the answer. Sandbox answers carry testData: true.

EndingNigeria and KenyaSouth Africa
0000match: the bank holds the account under the name you sentmatch
1111close_match: the name you sent with an extra wordmatch on a closed account: review
2222no_match: someone else’s nameno_match
3333not_foundnot_found
9999unavailable: the bank cannot be reachedunavailable
anything elseas 0000as 0000

With no name sent (Nigeria and Kenya), every account found is not_compared and held under a Sandbox name: SANDBOX ACCOUNT HOLDER for 0000 and 1111, someone else’s for 2222.

Errors

CodeStatusMeaning
invalid_input400Something the check needs is missing or malformed; the message says what. Nothing was run or charged.
insufficient_credits402Your balance cannot cover the check.
feature_disabled403Bank account verification is not switched on for your organisation.
checks_unavailable403Standalone checks are not switched on for your organisation.
request_id_reused409The requestId was used for a different check.
unknown_bank422bankCode is not on the country’s list of banks.
check_unavailable503The list of banks could not be read, so nothing was checked or charged.
banks_unavailable503GET .../banks only: the list of banks could not be read right now.