> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify a Bank Account Before a Payout or SEPA Mandate

> Check that a bank account belongs to the person or company you name before you pay it or collect from it, with no sign-in. Optional sign-in ownership proof.

Verifying a bank account before a payout or a direct debit mandate means asking the bank whether the account belongs to the name you hold.
With Didit you call the account check with the name and the account, and read `match`, `close_match`, `no_match` or `cannot_verify`.

## The account check, in one call

```bash theme={null}
curl -X POST https://verification.didit.me/v3/bank/account-check/ \
  -H "x-api-key: $DIDIT_API_KEY" -H "content-type: application/json" \
  -d '{
    "country": "ESP",
    "account": { "iban": "ES5500000000000000000001" },
    "holder": { "business_name": "Northwind Trading S.L." }
  }'
```

* Send `holder.full_name` for a person or `holder.business_name` for a company.
* Send the account the way the country writes it. See the table on the [Account check API](https://docs.didit.me/standalone-apis/bank-account-check.md).
* The account check runs in 47 countries, with the same prices as inside a verification flow, priced per answered check (see [pricing](https://docs.didit.me/getting-started/bank-verification-pricing.md)).

| `result` | What to do |
| - | - |
| `match` | Send the money, or accept the mandate. |
| `close_match` | Compare `holder_name`, or ask the person to confirm. |
| `no_match` | Do not send the money. |
| `cannot_verify` | Apply your own policy, for example ask for another account. |

## Check the payer of a SEPA direct debit mandate

Before you collect with a mandate, check the IBAN the payer gave you against the name on the mandate, for a person or a company.
In Spain, send the IBAN alone, as in every IBAN country.
Treat `no_match` as a reason to ask for another account before you collect.
Some countries require the holder's consent before each check: see the consent section of the [Account check API](https://docs.didit.me/standalone-apis/bank-account-check.md).

## When you need stronger proof

An account check proves the bank holds the account under that name.
It does not prove the person controls the account.
For that, use a link with `ownership.compare`: the person signs in at the bank, and Didit compares the holder the bank returns with a person or company verified in Didit.

```json theme={null}
{
  "access": "one_time",
  "country": "ESP",
  "ownership": { "compare": "business", "business_session_id": "..." },
  "end_user": { "reference": "supplier-204" }
}
```

The result is returned with the link as `check_id`.
Ownership is `unknown` whenever missing holder evidence could change the verdict, and only legal holders count, never representatives.
An ownership comparison charges the country's bank sign-in price once, and renewals never charge it again.

## Choose

| You have | Use |
| - | - |
| A name and an account number, and no contact with the person | [Account check](https://docs.didit.me/standalone-apis/bank-account-check.md) |
| The person present in your product | A [Bank Link](https://docs.didit.me/core-technology/bank-verification/bank-link.md) with `ownership.compare` |
| A person who cannot use either | The [fallbacks](https://docs.didit.me/core-technology/bank-verification/fallbacks.md) |

## Related

* [Account check](https://docs.didit.me/core-technology/bank-verification/account-check.md): what it proves and where.
* [Bank verification methods](https://docs.didit.me/core-technology/bank-verification/verification-methods.md): sign-in or account check inside a verification session.
* [Pricing](https://docs.didit.me/getting-started/bank-verification-pricing.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.