Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Validate International Bank Account Numbers (IBANs) against the official format specification for all participating countries. Returns structural metadata including country, a human-readable formatted IBAN, and the Basic Bank Account Number (BBAN), so you can catch invalid entries before initiating a transfer.Use cases
- Pre-validate IBANs before submitting wire transfers
- Extract country and bank routing data from user-entered IBANs
- Block invalid IBAN entries in payment forms in real time
- Compliance checks for cross-border payment flows
Details
Validates structure and check digits for all IBAN-participating countries. Note that structural validity does not guarantee the account exists; it confirms the number is correctly formed.Request body
| Field | Type | Required | Description |
|---|---|---|---|
iban | string | Yes | IBAN to validate (spaces are ignored) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
iban | string | Normalized IBAN (uppercased, spaces stripped) |
valid | boolean | Whether the IBAN is structurally valid |
formatted | string | IBAN grouped in blocks of four (e.g. DE89 3704 0044 0532 0130 00). Present only when valid. |
country | string | ISO 3166-1 alpha-2 country code. Present only when valid. |
bban | string | Basic Bank Account Number (everything after the 4-char IBAN prefix). Present only when valid. |
error | string | Human-readable reason for failure. Present only when invalid. |

