> Toden documentation. For the full index fetch /llms.txt. Every page is available as Markdown by appending .md to its URL. Every endpoint is under /api/v1. Identity verification and Risk Intelligence are separate contracts there with different error shapes; /api/kyc and /api/identity are older prefixes that still answer the same. Never invent an endpoint, field or enum value: read the API reference page for the operation first.

# Bank account check

> POST /checks/bank_account: confirm a bank account belongs to the person or business you name, server to server.

```
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

```bash
curl "https://api.toden.co/api/v1/checks/bank_account/banks?country=NG" \
  -H "Authorization: Bearer sk_live_…"
```

```json
{
  "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

| Field                 | Required                    | Description                                                                                                                                             |
| --------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `country`             | yes                         | `NG`, `KE` or `ZA`.                                                                                                                                     |
| `bankCode`            | yes                         | The bank's `code` from the list of banks.                                                                                                               |
| `accountNumber`       | yes                         | The account number. Spaces and dashes are ignored. Ten digits in Nigeria (NUBAN).                                                                       |
| `holder.fullName`     | South Africa (one of these) | The person the account should belong to. Optional in Nigeria and Kenya.                                                                                 |
| `holder.businessName` | South Africa (one of these) | The registered business the account should belong to. Optional in Nigeria and Kenya.                                                                    |
| `holderType`          | no                          | `person` (the default) or `business`: who should hold the account when you send no name. With a name it must agree with it.                             |
| `idNumber`            | South Africa, person        | The holder's 13-digit South African identity number.                                                                                                    |
| `registrationNumber`  | South Africa, business      | The company registration number, such as `2015/123456/07`.                                                                                              |
| `accountType`         | no                          | South Africa only: `current` (the default), `savings` or `transmission`.                                                                                |
| `requestId`           | yes                         | Your idempotency key, 8 to 120 characters. A retry with the same value returns the same check with `replayed: true`, without running or charging again. |

```bash
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):

```json
{
  "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.

```json
{ "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:

| `match`        | When                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `match`        | The 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_match`  | Not 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_match`     | Someone else's name.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `not_found`    | The bank has no such account.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| `not_compared` | No 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

| `outcome`     | When                                                                                                                                                                   |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pass`        | `match`, 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. |
| `review`      | `close_match`, or a `match` on a closed account or with an identity number that is not the holder's. Someone should look at it.                                        |
| `fail`        | `no_match` or `not_found`.                                                                                                                                             |
| `unavailable` | The 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`.

| Ending        | Nigeria and Kenya                                           | South Africa                          |
| ------------- | ----------------------------------------------------------- | ------------------------------------- |
| `0000`        | `match`: the bank holds the account under the name you sent | `match`                               |
| `1111`        | `close_match`: the name you sent with an extra word         | `match` on a closed account: `review` |
| `2222`        | `no_match`: someone else's name                             | `no_match`                            |
| `3333`        | `not_found`                                                 | `not_found`                           |
| `9999`        | `unavailable`: the bank cannot be reached                   | `unavailable`                         |
| anything else | as `0000`                                                   | as `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

| Code                   | Status | Meaning                                                                                               |
| ---------------------- | ------ | ----------------------------------------------------------------------------------------------------- |
| `invalid_input`        | 400    | Something the check needs is missing or malformed; the message says what. Nothing was run or charged. |
| `insufficient_credits` | 402    | Your balance cannot cover the check.                                                                  |
| `feature_disabled`     | 403    | Bank account verification is not switched on for your organisation.                                   |
| `checks_unavailable`   | 403    | Standalone checks are not switched on for your organisation.                                          |
| `request_id_reused`    | 409    | The `requestId` was used for a different check.                                                       |
| `unknown_bank`         | 422    | `bankCode` is not on the country's list of banks.                                                     |
| `check_unavailable`    | 503    | The list of banks could not be read, so nothing was checked or charged.                               |
| `banks_unavailable`    | 503    | `GET .../banks` only: the list of banks could not be read right now.                                  |