# IBAN Validator API

> IBAN Validator checks an IBAN's mod-97 checksum, its length and format for the country, and national check digits where the country defines them. It returns whether the IBAN is valid, the country and the reasons it fails. Paid plans add the bank code, branch code and account number, the correct check digits, and the SEPA, EU and EEA flags.

**Endpoint:** `GET https://api.apiverve.com/v1/ibanvalidator`  
**Category:** Data Validation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/ibanvalidator

## Overview

Use it as an IBAN checker API at checkout, payout setup or supplier onboarding. Validation follows the SWIFT IBAN registry and covers 124 countries and territories, including all 97 registry countries. Spaces, dashes and lower case are accepted. An invalid IBAN is not an error: it returns isValid false with the reasons, a pass or fail for each check (country, length, format, mod-97 checksum, national check digits), and on paid plans the check digits it should have had. German and Belgian bank names and BICs come from the Deutsche Bundesbank (Quelle: Deutsche Bundesbank) and the National Bank of Belgium, both free to use.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/ibanvalidator?iban=GB29NWBK60161331926819" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `iban` | string | Yes | The IBAN to validate. Spaces, dashes and lower case are accepted. length 0-64 |

## Response fields

- `iban` — string · The IBAN in electronic format (no spaces, upper case)
- `isValid` — boolean · True when the checksum, length, format and any national check digits are all correct
- `formatted` — string · The IBAN in print format, in groups of four, or null when invalid
- `countryCode` — string · ISO 3166-1 alpha-2 country code
- `countryName` — string · Country name
- `checkDigits` — string · The two check digits as given
- `expectedLength` — number · IBAN length for the country, or null when the country does not use IBANs
- `length` — number · Length of the IBAN given
- `errors` — array · Why the IBAN is invalid; empty when valid
- `bban` — string · The Basic Bank Account Number (everything after the check digits) · (premium)
- `bankCode` — string · Bank identifier, where the country defines one · (premium)
- `branchCode` — string · Branch identifier or sort code, where the country defines one · (premium)
- `accountNumber` — string · Domestic account number, for countries whose format fixes its position · (premium)
- `nationalCheckDigits` — object · National check digits inside the BBAN, where the country defines them · (premium)
- `expectedCheckDigits` — string · The IBAN check digits the BBAN requires, which differ from checkDigits when the checksum is wrong · (premium)
- `isSEPA` — boolean · True when the country is in the SEPA scheme · (premium)
- `isQRIBAN` — boolean · True for a Swiss or Liechtenstein QR-IBAN · (premium)
- `isEU` — boolean · True when the IBAN's country is an EU member state. Null when no country can be read from the IBAN · (premium)
- `isEEA` — boolean · True when the IBAN's country is in the European Economic Area (the EU plus Iceland, Liechtenstein and Norway). Null when no country can be read from the IBAN · (premium)
- `checks` — object · Pass or fail for each check on its own; null where a check was not run
  - `checks.country` — boolean · The country code is one that issues IBANs
  - `checks.length` — boolean · The IBAN has the length the country requires
  - `checks.format` — boolean · The BBAN matches the country's letter and digit pattern
  - `checks.checksum` — boolean · The two check digits pass mod 97
  - `checks.nationalCheckDigits` — object · The national check digits inside the BBAN are right; null where the country defines none · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "iban": "GB29NWBK60161331926819",
    "isValid": true,
    "formatted": "GB29 NWBK 6016 1331 9268 19",
    "countryCode": "GB",
    "countryName": "United Kingdom",
    "checkDigits": "29",
    "expectedLength": 22,
    "length": 22,
    "errors": [],
    "bban": "NWBK60161331926819",
    "bankCode": "NWBK",
    "branchCode": "601613",
    "accountNumber": "31926819",
    "nationalCheckDigits": null,
    "expectedCheckDigits": "29",
    "isSEPA": true,
    "isQRIBAN": false,
    "isEU": false,
    "isEEA": false,
    "checks": {
      "country": true,
      "length": true,
      "format": true,
      "checksum": true,
      "nationalCheckDigits": null
    }
  }
}
```

## Use cases

- **Payment Forms** — Validate an IBAN as it is typed at checkout or payout setup, and show the reason it fails before a transfer bounces.
- **Supplier Onboarding** — Check the bank details suppliers submit and pull out the bank and branch codes for your records.
- **SEPA Direct Debit** — Confirm a customer's IBAN is valid and in a SEPA country before creating a mandate.
- **Data Cleaning** — Normalise stored IBANs to electronic and print formats, and flag the ones with bad checksums.

## More

- Full reference: https://docs.apiverve.com/ref/ibanvalidator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
