Each IBAN validation returns a validations
containing the results of each validation that was applied to the given IBAN in this format:
{
"code": string, // unique validation code
"valid": boolean, // true if the validation passed
"message": string // verbose message explaining the validation result
}
Here are the validation codes that are currently supported:
Order | Code | Description |
---|---|---|
1 | BASIC_FORMAT | The IBAN has correct format (letters and numbers only) |
2 | COUNTRY_CODE | The IBAN has a valid & supported country code |
3 | LENGTH | The IBAN has a valid length |
4 | CHECKSUM | The IBAN has a valid checksum |
5 | BBAN_FORMAT | The IBAN has a valid BBAN format based on the country rules |
If a validation fails, the API will stop processing the remaining validations, and immediately return the validations array.
details
field of the response will be null.