Bank account check
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
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
The answer comes back in the same response (201, or 200 for a retry):
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.
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:
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
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.
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.