About this endpoint
What it does
Validates an IBAN value sent in the request body and returns a JSON object containing the validation result in data. The response also includes a meta object with request metadata.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| value | String | Yes | The IBAN value to validate. Length must be between 1 and 64 characters. |
Response
Returns a JSON object with a data object holding the validation result and a meta object with the request_id and API version. Invalid values still return 200 with valid: false and the reasons in problems. Requests with a missing or wrong-type field return 422 with an error object.
| Parameter | Type | Description |
|---|---|---|
| data | Object | The validation result. |
| data.valid | Boolean | true if the value passes all checks for its format. |
| data.input | String | The value you sent. |
| data.normalized | String | The value after cleanup: spaces and separators removed and Arabic-Indic digits converted to Latin digits. |
| data.formatted | String | The value in its standard display format. |
| data.problems | String Array | Problem codes when the value is not valid, e.g. checksum_failed, must_be_14_digits. Empty when valid. |
| data.country | String | Country code from the IBAN, e.g. SA. |
| data.country_supported | Boolean | true if the country uses IBANs. Unsupported countries always return valid: false. |
| data.bank_code | String | Bank code from the IBAN, when known for the country. Otherwise null. |
| data.bank | String | Bank name, when known (for example Saudi banks such as Al Rajhi Bank). Otherwise null. |
| meta | Object | Request details. |
| meta.request_id | String | Unique id of this request, useful for support. |
| meta.version | String | API version, e.g. v1. |