Jsonpage ยท SIREN and SIRET API

IBAN validation API: check digits, bank, BIC and company

A mistyped IBAN makes a transfer fail, and an IBAN that does not fit the supplier can hide fraud.

01 / CHECKS

What the API checks

The Jsonpage API checks an IBAN in one call: its form and check digits, the SEPA area, the bank that holds the account and, when you give the company, whether the bank is in the same country as the company. Here is what it checks, with examples.

The API knows the IBANs of every country that uses them. It takes the IBAN with or without spaces, in upper or lower case, and returns it in its electronic form, without spaces. The bank name and its BIC are given for Austria, Belgium, Finland, France, Germany, Latvia, Lithuania and the Netherlands; elsewhere these two fields are null and the other checks apply.

CheckWhat the API verifies
CountryThe first two letters name a country that uses the IBAN.
LengthThe number of characters expected for that country: 27 in France, 22 in Germany, 16 in Belgium.
Check digitsThe two digits after the country: a typo makes them wrong in almost every case.
SEPA areaThe country belongs to the area of euro transfers.
BankThe bank code, the branch code where the country has one, and the name of the bank with its BIC in eight countries.
CompanyWith a company identifier: bank in another country, closed company.
RememberThe check tells whether the IBAN is well formed and which bank holds the account. It does not tell who holds the account: only the bank can confirm that, through payee verification.
02 / EXAMPLE

Sample request and response

The IBAN travels in the request body, never in the address, so that it does not show in server or proxy logs:

curl -X POST "https://api.jsonpage.com/v2/iban/check" \
  -H "X-API-Key: $JSONPAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"iban": "DE89 3704 0044 0532 0130 00"}'
{
  "data": {
    "iban": "DE89370400440532013000",
    "valid": true,
    "reason": null,
    "country": "DE",
    "sepa": true,
    "bank_code": "37040044",
    "branch_code": null,
    "bank_name": "Commerzbank",
    "bic": "COBADEFFXXX",
    "warnings": []
  }
}

valid is true when the country, the length, the characters and the check digits are right. The full route is described in the documentation.

03 / ERRORS

When the IBAN is wrong

A wrong IBAN returns valid: false and the reason in reason, so you can show a useful message to the person typing it:

ReasonMeaning
invalid_formatForbidden characters, or the IBAN does not start with two letters and two digits.
unknown_countryThe country does not use the IBAN.
invalid_lengthOne character too few or too many for that country.
invalid_checksumWrong check digits: most often a mistyped digit or two digits swapped.
04 / COMPANY

Check the IBAN against the company

Add the identifier of the company that should hold the account, for example FR-552032534. The API then compares the country of the bank with the country of the company and checks that the company is still active:

curl -X POST "https://api.jsonpage.com/v2/iban/check" \
  -H "X-API-Key: $JSONPAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"iban": "LT12 1000 0111 0100 1000", "company_id": "FR-552032534"}'
{
  "data": {
    "iban": "LT121000011101001000",
    "valid": true,
    "country": "LT",
    "sepa": true,
    "...": "...",
    "company": { "id": "FR-552032534", "status": "active", "country_match": false },
    "warnings": ["country_mismatch"]
  }
}

The warnings list shows what deserves a call before paying: country_mismatch (the bank is in another country than the company), company_closed (the company is closed) and not_sepa (the bank is outside the SEPA area). A warning is not proof of fraud: a subsidiary can bank abroad. It is the signal to confirm the account with the supplier, on a number you already had. The full method is in IBAN fraud: check a supplier before you pay.

05 / LIMITS

What the check does not tell

An IBAN can be perfectly valid and belong to a fraudster. The API does not know the account holder: only the bank does. Before a euro transfer, your bank compares the payee name with the account holder: see payee verification (VoP). The two checks work together: the API catches a wrong or inconsistent IBAN early, when the supplier is entered; the bank confirms the holder at payment time.

To check the company itself as well as its account (status, VAT, sanctions, risk signals), the KYB report gathers these checks and the IBAN check in one request.

06 / PRICE

Price and privacy

Each check counts as one request, on every plan, including the free Discovery plan. The IBAN is used for the check and is not kept. The plans are on the pricing page.

07 / FREQUENTLY ASKED QUESTIONS

Frequently asked questions

How do I know whether an IBAN is valid?+

An IBAN is valid when its country uses the IBAN, its length is the one set for that country and its check digits are right. The API checks all three in one call.

Does the API tell who holds the account?+

No. Only the bank of the account knows its holder. Before a euro transfer, your bank compares the payee name you entered with the account holder.

For which countries is the bank name given?+

Austria, Belgium, Finland, France, Germany, Latvia, Lithuania and the Netherlands. Elsewhere the other checks apply and the bank name is null.

Is a foreign IBAN for a French supplier fraud?+

Not necessarily, but it is a signal. The API flags it with country_mismatch when you give the company: confirm the account with the supplier on a number you already had.

Is the IBAN kept?+

No. It is sent in the request body and used only for the check.

08 / RELATED RESOURCES

Keep reading

Check it now

Check a French supplier before paying

Type its SIREN, SIRET or name to see its status as published today.

3 free checks a day, no account needed.

TRY IT

Check your IBANs with your key

The Discovery plan is free and needs no credit card. Each check counts as one request.