Check a bank account
Checks whether a bank account belongs to the person or business you name. Available in Nigeria, Kenya and South Africa, for people and registered businesses.
Pick the bank from GET /api/v1/checks/bank_account/banks and send its code as bankCode. Send holder.fullName for a person or holder.businessName for a business. In South Africa also send the person’s idNumber, or the business’s registrationNumber.
In Nigeria and Kenya the name is optional. Without one the bank is only asked whether it holds the account and under what name: match is not_compared, holderName is the bank’s name for it, and the check passes when the account exists and fails when it does not (not_found). Send holderType: business to check a business account with no name. The price is the same with or without a name. In South Africa the banks never return a name and only confirm the one they are sent, so a name is required there: without one the check is refused 400 invalid_input.
In Nigeria and Kenya the bank returns the name the account is held under, and Toden scores it against the name you sent, 0 to 100, as every Toden name check does: match at 89 or more (any order, a typing slip or a middle name the bank left out allowed, a company’s legal ending such as Ltd ignored; for a person every word of the bank’s name must be one of yours, with your first name and surname both there), close_match just below it or with an extra or missing word, no_match otherwise. In South Africa the banks compare the name themselves and never return one, so the answer is match or no_match.
Outcome: match passes, unless the bank says the account is closed or the identity number is not the holder’s, which go to review; not_compared (no name sent) passes; close_match goes to review; no_match and not_found fail.
In Sandbox no bank is asked and nothing is charged. Pick any bank from the list (the same real banks as in production); the account number’s last four digits choose the answer: 0000 match, 1111 close match (in South Africa, a match on a closed account), 2222 no match, 3333 no such account, 9999 the bank cannot be reached (unavailable). Sandbox answers carry testData: true.
Requires bank account verification to be switched on for your organisation: otherwise 403 feature_disabled.
Charged per check at your price (production only); a check that could not be completed is not charged. Send a requestId: a retry with the same value returns the same check with replayed: true, without running or charging again.
Error codes
A missing or unknown key answers 401, where error is a short sentence rather than a code.
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required. A scoped publishable key has Verification flow access, the fixed set flow.run, flow.config.read and verifications.status.read; a scoped secret key reaches what its scopes allow.
Request
NG, KE or ZA.
The bank’s code from the list of banks.
The account number. Spaces and dashes are ignored. Ten digits in Nigeria (NUBAN).
Who the account should belong to: one of fullName (a person) or businessName (a business). Required in South Africa; optional in Nigeria and Kenya, where without it nothing is compared.
Whether the account should belong to a person (the default) or a business, for a check with no name. With a name it must agree with it.
South Africa, person: the holder’s 13-digit identity number. Required there.
South Africa, business: the company registration number. Required there.
South Africa, optional: the account type. Defaults to current.
Your own reference for the check (a customer or case id), kept with it and searchable in your history.
Your idempotency key, 8 to 120 characters: a retry with the same value returns the same check.
Response
A retry: the check already run under this requestId.
The check id (chk_…).
pass: nothing of concern. review: something a person should look at. fail: a clear problem. unavailable: the check could not be completed, was not charged, and is never a pass.
What was sent, minimised: never image bytes, only media ids.
Why the check could not be completed, when outcome is unavailable.
On a run only: true when this is a check already run under the same requestId.