IBAN & Bank Data API
Validate IBANs, resolve national bank codes to BICs, look up BICs and check SEPA reachability over a single keyed REST interface.
Last updated: 2026-10-28
The IBAN & Bank Data API exposes the reference data behind zztools' own tools: structural IBAN validation with MOD-97, bank-code resolution against national registers, BIC lookup including branch offices, and SEPA scheme participation. Every endpoint of this API costs 1 credit (batches bill per deduplicated item), and any response at or above HTTP 400 is refunded in full.
Every endpoint below lives under https://api.zztools.org and needs a Bearer key — see authentication. Responses use the common ok / code / message / data / meta envelope.
/v1/iban — GET
Validates an IBAN and decomposes it; when the bank code is known, attaches the bank and, for Germany, the domestic check-digit result.
GET https://api.zztools.org/v1/iban?iban=DE89370400440532013000
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
iban |
query | string | required | IBAN with or without spaces |
Response
| Field | Type | Description |
|---|---|---|
iban.raw |
string | The IBAN as submitted (spaces stripped) |
iban.formatted |
string | Four-character groups for display |
iban.country / country_name |
string | ISO 3166-1 alpha-2 (both currently alpha-2) |
iban.check_digits |
string | The two MOD-97 check characters |
iban.bank_code / account_number |
string | BBAN decomposition per the country's registry layout |
iban.valid |
bool | Structure + MOD-97 only; does not prove the account exists |
iban.mod97_valid |
bool | The checksum verdict on its own |
bank |
object | Present when the bank code resolves: code, name, bic, source, optional lei |
national_check |
object | German IBANs only: Bundesbank method method, outcome (pass/fail/no_check/unknown_method/no_method_for_blz), source |
Real response:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"iban": {
"raw": "DE89370400440532013000",
"formatted": "DE89 3704 0044 0532 0130 00",
"country": "DE",
"country_name": "DE",
"check_digits": "89",
"bank_code": "37040044",
"account_number": "0532013000",
"valid": true,
"mod97_valid": true
},
"bank": {
"code": "37040044",
"name": "COMMERZBANK AG",
"bic": "COBADEFFXXX",
"source": "composite map: scraped from the national register",
"lei": "851WYGNLUQLFZBSYGB56"
},
"national_check": {
"country": "DE",
"scheme": "Bundesbank account check digit",
"method": "13",
"outcome": "pass",
"source": "Quelle: Deutsche Bundesbank"
}
},
"meta": { "api_version": "1.0", "ts": 1793156108976 }
}
Code examples
curl -s -H "Authorization: Bearer $ZZTOOLS_KEY" \
"https://api.zztools.org/v1/iban?iban=DE89370400440532013000"
const res = await fetch("https://api.zztools.org/v1/iban?iban=DE89370400440532013000", {
headers: { Authorization: `Bearer ${process.env.ZZTOOLS_KEY}` },
});
const body = await res.json();
import os, requests
r = requests.get("https://api.zztools.org/v1/iban",
params={"iban": "DE89370400440532013000"},
headers={"Authorization": f"Bearer {os.environ['ZZTOOLS_KEY']}"})
body = r.json()
Errors
| HTTP | code |
message |
When |
|---|---|---|---|
| 400 | 1004 | invalid_iban_format |
Not a structurally valid IBAN for any known country layout |
| 400 | 1005 | iban_checksum_invalid |
Layout matches a country but MOD-97 fails |
| 404 | 2001 | bank_not_found |
IBAN is valid but the bank code resolves to nothing |
/v1/banks — GET
Resolves a national bank code to the institution and its BIC.
GET https://api.zztools.org/v1/banks?cc=DE&code=37040044
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
cc |
query | string, 2 letters | required | ISO 3166-1 alpha-2 country code |
code |
query | string | required | National bank code (BLZ in Germany, ABI/PAL in Italy, …) |
Response
Real response — note the retired object: the code was withdrawn from the numbering scheme but still resolves, with the successor attached. Check it when your flow cares whether the code is still live:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"country": "DE",
"country_name": "DE",
"bank_code": "80054000",
"name": "NORDDEUTSCHE LANDESBANK",
"bic": "NOLADE21WSF",
"source": "composite map: scraped from the national register",
"sepa": { "bic": "NOLADE21WSF", "name": "SPARKASSE BURGENLANDKREIS", "sct": true, "sdd": true, "cor1": false, "b2b": true, "scc": true },
"retired": {
"country": "DE",
"code": "80054000",
"name": "Kreissparkasse Weißenfels -alt-",
"successor_code": "80053000",
"source": "Deutsche Bundesbank, Bankleitzahlendatei (BLZ file)",
"as_of": "2026-10-01"
}
},
"meta": { "api_version": "1.0", "ts": 1793156184366 }
}
Absent fields are omitted, never null: a bank without a registered LEI has no lei key; sepa appears only when the BIC is in the participation data.
Code examples
curl -s -H "Authorization: Bearer $ZZTOOLS_KEY" \
"https://api.zztools.org/v1/banks?cc=DE&code=37040044"
Errors
| HTTP | code |
message |
When |
|---|---|---|---|
| 400 | 1001 | invalid_country_code |
cc is not a known 2-letter code |
| 400 | 1002 | missing_country_code |
cc absent |
| 400 | 1003 | missing_bank_code |
code absent |
| 404 | 2001 | bank_not_found |
No register knows this code |
| 404 | 2003 | country_not_found |
Country has no data at all |
/v1/bic — GET
Looks up which institution operates a BIC. An 8-character BIC returns every known office under that prefix; the 11-character form returns the single matching office.
GET https://api.zztools.org/v1/bic?bic=COBADEFF
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bic |
query | string, 8 or 11 chars | required | BIC; 8-character prefix queries list all offices |
Response
Real response with offices elided:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"bic": "COBADEFF",
"banks": [
{ "bic": "COBADEFF783", "name": "COMMERZBANK AG", "country": "DE", "bank_code": "" },
{ "bic": "COBADEFF811", "name": "COMMERZBANK AG", "country": "DE", "bank_code": "" },
{ "bic": "COBADEFF513", "name": "COMMERZBANK AG", "country": "DE", "bank_code": "" }
// … more offices omitted
]
},
"meta": { "api_version": "1.0", "ts": 1793156133000 }
}
bank_code is empty for registers that do not map BIC back to a national code.
Errors
| HTTP | code |
message |
When |
|---|---|---|---|
| 400 | 1006 | missing_bic |
bic absent |
| 404 | 2002 | bic_not_found |
Unknown BIC or prefix |
/v1/scl — GET
Returns a BIC's participation in SEPA schemes.
GET https://api.zztools.org/v1/scl?bic=BNPADEFF
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
bic |
query | string, 8 or 11 chars | required | BIC to check |
Response
Real response:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"bic": "BNPADEFF",
"result": {
"bic": "BNPADEFF",
"name": "BNP PARIBAS S.A. NIEDERLASSUNG FRANKFURT AM MAIN",
"sct": true,
"sdd": true,
"cor1": false,
"b2b": true,
"scc": true
}
},
"meta": { "api_version": "1.0", "ts": 1793156135534 }
}
sct SEPA Credit Transfer · sdd SEPA Direct Debit · cor1 COR1 variant · b2b B2B direct debit · scc SEPA Card Clearing.
The list is the Deutsche Bundesbank's public SCL-Directory excerpt. Its publisher states it is non-binding, should not be used for automated payment processing — particularly not for automated reachability checks — and accepts no liability for its accuracy. We relay it as-is: treat it as reference information and confirm with the beneficiary's bank before paying.
404 scl_not_found means the BIC is absent from the participation data — not that the bank cannot receive SEPA transfers. Treat absence as unknown and ask the beneficiary.
Errors
| HTTP | code |
message |
When |
|---|---|---|---|
| 400 | 1006 | missing_bic |
bic absent |
| 404 | 2004 | scl_not_found |
BIC not in the participation data |
Batch endpoints
Both batch endpoints take a JSON body and answer per item, so one malformed row does not fail the request. Batch size follows your plan: 100 items on free keys, 1,000 on Starter, unlimited on Pro and above. Billing counts deduplicated items.
POST https://api.zztools.org/v1/iban/batch
Content-Type: application/json
{"ibans": ["DE89370400440532013000", "DE89370400440532013000", "XX00NOTANIBAN"]}
Real response, showing only the third item and the summary:
{
"ok": true,
"code": 0,
"message": "success",
"data": {
"results": [
{
"input": "XX00NOTANIBAN",
"valid": false,
"error": "invalid_iban_format"
}
],
"summary": { "total": 3, "valid": 2, "invalid": 1 }
},
"meta": { "api_version": "1.0", "ts": 1793156395000 }
}
Parameters
| Endpoint | Body | Notes |
|---|---|---|
POST /v1/iban/batch |
{"ibans": ["…", …]} |
Each result echoes input with valid; success rows carry the single-endpoint payload; failures carry an error name; summary totals total/valid/invalid |
POST /v1/banks/batch |
{"banks": [{"cc": "DE", "code": "37040044"}, …]} |
Each result echoes cc/code with found, plus name/bic/source/lei/sepa/retired when found. No summary — iterate results |
Errors: 400 invalid_request_body (1007), 400 batch_empty (1008), 400 batch_too_large (1009).
Retry safely
Add an Idempotency-Key header (any string, ≤ 128 chars) to batch submissions. The billing ledger deduplicates on it for 24 hours, so a timeout-and-retry never charges twice. Single GETs are already safe to repeat.