IBAN Validator

Validate IBAN numbers and extract the bank code and account number. Supports all countries in the official SWIFT IBAN Registry. Returns a structured response for both valid and invalid IBANs β€” the valid field tells you whether the IBAN passed checksum validation.

Get API Key

Overview

Use Cases

  • Payment form validation before submission
  • Fintech apps processing international bank transfers
  • Fraud detection pipelines verifying account details
  • Accounting software importing supplier bank details
  • KYC / AML workflows verifying customer bank accounts

Features

ISO 13616 checksum validation (mod-97 algorithm)
Country-specific length validation for ~80 countries
Bank code extraction (Bankleitzahl, sort code, etc.)
Account number extraction from the BBAN
Accepts IBANs with or without spaces
Case-insensitive input
Always returns 200 β€” the valid field signals pass/fail

API Endpoints

Validate IBAN

Validates an IBAN and returns the country, bank code, and account number. Spaces in the input are stripped automatically. Always returns HTTP 200 β€” check the valid field to determine whether the IBAN is valid.

GET
https://api.requiems.xyz/v1/finance/iban/{iban}

Parameters

Name Type Required Description
iban string Required The IBAN to validate. Spaces are stripped. Case-insensitive.

Try it out

Live Demo
Request

The IBAN to validate. Spaces are stripped. Case-insensitive.

Response Fields

Field Type Description
iban string The normalised IBAN (spaces stripped, uppercased)
valid boolean true if the IBAN passed length and ISO 13616 checksum validation
country string Full country name (empty if the country code is not in the registry)
bank_code string Bank identifier extracted from the BBAN (empty if country not in registry or positions not defined)
account string Account number extracted from the BBAN (empty if country not in registry or positions not defined)

Code Examples

curl "https://api.requiems.xyz/v1/finance/iban/DE89370400440532013000" \
  -H "requiems-api-key: YOUR_API_KEY"

# With spaces (URL-encoded):
curl "https://api.requiems.xyz/v1/finance/iban/DE89%203704%200044%200532%200130%2000" \
  -H "requiems-api-key: YOUR_API_KEY"

Error Responses

internal_error

Unexpected server error (e.g. database unreachable).

Frequently Asked Questions