Skip to navigation

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

errorStatusMeaning
invalid_input400The body is missing something the check needs, or the requestId is malformed.
insufficient_credits402Your balance cannot cover the check. Nothing was run or charged.
checks_unavailable403These checks are not switched on for your organisation yet.
spot_checks_disabled403Spot checks are not enabled for your organisation, or every verification is switched off for it.
request_id_reused409The requestId was used for a different check.
check_in_progress409A check with this requestId is still running.
file_not_found422The uploaded file was not found, is not yours, or has expired.
check_unavailable503The check cannot run on this deployment right now. Nothing was charged.
feature_disabled403Bank account checks: not switched on for your organisation.
unknown_bank422Bank account checks: the bankCode is not on the country’s list of banks.
secret_key_required403A publishable key was used. This endpoint accepts secret keys only.
environment_mismatch403The key belongs to an environment this deployment does not serve.
ip_not_allowed403The key has an IP allowlist and the calling address is not on it.
organization_suspended403The organisation is suspended. The response carries reason and suspendedAt.
business_not_approved403A live key was used before the business was approved for production.

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

AuthorizationBearer

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

This endpoint expects an object.
countryenumRequired

NG, KE or ZA.

Allowed values:
bankCodestringRequired<=32 characters

The bank’s code from the list of banks.

accountNumberstringRequired<=40 characters

The account number. Spaces and dashes are ignored. Ten digits in Nigeria (NUBAN).

holderobjectOptional

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.

holderTypeenumOptional

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.

Allowed values:
idNumberstringOptional=13 characters

South Africa, person: the holder’s 13-digit identity number. Required there.

registrationNumberstringOptional<=40 characters

South Africa, business: the company registration number. Required there.

accountTypeenumOptional

South Africa, optional: the account type. Defaults to current.

Allowed values:
externalUserIdstringOptional<=255 characters

Your own reference for the check (a customer or case id), kept with it and searchable in your history.

requestIdstringOptional

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.

idstring

The check id (chk_…).

kindenum
Which check this is.
Allowed values:
outcomeenum

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.

Allowed values:
subjectstring
What was checked, as your history lists it.
channelenum
Whether the check was run through the API or from the dashboard.
Allowed values:
createdAtdatetime
When the check was run.
inputobjectOptional

What was sent, minimised: never image bytes, only media ids.

externalUserIdstring or nullOptional
Your own reference for the check, as sent.
resultobject or nullOptional
What was found. Null when the check could not be completed.
failureCodestring or nullOptional

Why the check could not be completed, when outcome is unavailable.

chargedstring or nullOptional
What the check cost in USD, as a decimal string. Null when nothing was charged.
entityIdstring or nullOptional
The customer record this check was saved to.
completedAtdatetime or nullOptional
When it finished.
replayedbooleanOptional

On a run only: true when this is a check already run under the same requestId.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
503
Service Unavailable Error