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.
| Check | What the API verifies |
|---|---|
| Country | The first two letters name a country that uses the IBAN. |
| Length | The number of characters expected for that country: 27 in France, 22 in Germany, 16 in Belgium. |
| Check digits | The two digits after the country: a typo makes them wrong in almost every case. |
| SEPA area | The country belongs to the area of euro transfers. |
| Bank | The bank code, the branch code where the country has one, and the name of the bank with its BIC in eight countries. |
| Company | With a company identifier: bank in another country, closed company. |
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.
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:
| Reason | Meaning |
|---|---|
invalid_format | Forbidden characters, or the IBAN does not start with two letters and two digits. |
unknown_country | The country does not use the IBAN. |
invalid_length | One character too few or too many for that country. |
invalid_checksum | Wrong check digits: most often a mistyped digit or two digits swapped. |
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.
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.
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.
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.
Keep reading
- FRAUDIBAN fraud: check a supplier before you payChanged bank details: call back a known number, check the company, the VAT number and compare the IBAN before paying.
- PAYMENTSVerification of Payee (VoP): what changesThe payee name checked against the IBAN holder before every transfer: the four results, the timetable and the legal name to record.
- KYBKYB report: check a company before you work with itStatus, sanctions, VAT, owners, LEI and IBAN of a company in one request, with a verdict.
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.
More than 3 checks a day, or the same in your own tools: Create my free account