validate_iban
Validate European IBAN structure and checksum using ISO 13616 MOD-97. Supports 18 countries for SEPA compliance in supplier verification and payments.
Instructions
Validates an IBAN (International Bank Account Number) using the ISO 13616 MOD-97 algorithm. Supports 18 European countries: PT, ES, FR, DE, IT, NL, BE, PL, SE, DK, FI, AT, IE, GR, HU, RO, CZ, HR. Returns { valid: boolean, country: string, iban: string } — country is extracted from the 2-letter prefix. Returns { valid: false, reason: string } for malformed input. Spaces are automatically stripped before validation. Use when validating supplier bank details for SEPA transfers, processing direct debit mandates, verifying payment data in e-commerce checkouts, or any workflow requiring a verified EU bank account number. Validates structure and checksum only — does not confirm account existence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | Yes | European IBAN with or without spaces. Example: 'PT50 0002 0123 1234 5678 9015 4' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| country | No | ||
| iban | No | ||
| reason | No |