validate_iban
Validate an IBAN checksum and format for 80+ countries. Decode its components: country code, bank code, and account number.
Instructions
Validate an IBAN (International Bank Account Number) and decode its components.
Validates the IBAN checksum algorithm and structure for 80+ participating
countries. Returns decoded bank and account information derived from the
IBAN format (note: does not confirm the account is live or funded).
Args:
iban: IBAN string to validate. Spaces are allowed and ignored
(e.g. 'GB29 NWBK 6016 1331 9268 19' or 'GB29NWBK60161331926819').
Returns:
valid (bool): True if the IBAN passes checksum and format validation.
iban: Normalised IBAN with no spaces.
country_code: ISO country code.
check_digits: The two check digits (positions 3-4).
bban: Basic Bank Account Number (country-specific format).
bank_code: Bank identifier extracted from the BBAN (where applicable).
account_number: Account number portion of the BBAN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | Yes |