apyhub
Back
▣ VERIFICATION KIT

Validate IBAN & Bank Name API

What it does

The IBAN validation API checks an International Bank Account Number. Send the IBAN in value and get back valid, the cleaned-up IBAN in groups of four and the reasons when it fails.

The check runs on the number itself. The API reads the country code, checks the length and format for that country and verifies the two check digits. Spaces and Arabic-Indic digits are cleaned up first, so IBANs copied from Arabic documents work.

A result also returns the country, bank_code and, where known, the bank name. For example, SA0380000000608010167519 returns Al Rajhi Bank. Countries that do not use IBANs, such as the US, return valid: false with the problem country_not_supported.

Teams use the IBAN validation API in payout and refund forms, supplier onboarding and payroll data checks.

This is a format and checksum check. It catches typos but does not confirm that the account exists or is open.

To check the bank's SWIFT code too, use the SWIFT BIC Code Validation API. To check many values at once, use the Batch Validate MENA IDs API.

POST
IBAN
https://api.eu.apyhub.com/odelyo/validate-iban-bank-name/ibans

QUICKSTART

GUIDE

Quickstart

Send the required value string to validate it.

curl -X POST "https://api.eu.apyhub.com/odelyo/validate-iban-bank-name/ibans" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"value":"SA0380000000608010167519"}'

What you'll get back

Returns a JSON object with data (the validation result) and meta (request id and version). Below is the real response for the request above.

{
  "data": {
    "valid": true,
    "input": "SA0380000000608010167519",
    "normalized": "SA0380000000608010167519",
    "formatted": "SA03 8000 0000 6080 1016 7519",
    "problems": [],
    "country": "SA",
    "country_supported": true,
    "bank_code": "80",
    "bank": "Al Rajhi Bank"
  },
  "meta": {
    "request_id": "req_a30b5dc57ca73b04",
    "version": "v1"
  }
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

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

ParameterTypeMandatoryDescription
valueStringYesThe 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.

ParameterTypeDescription
dataObjectThe validation result.
data.validBooleantrue if the value passes all checks for its format.
data.inputStringThe value you sent.
data.normalizedStringThe value after cleanup: spaces and separators removed and Arabic-Indic digits converted to Latin digits.
data.formattedStringThe value in its standard display format.
data.problemsString ArrayProblem codes when the value is not valid, e.g. checksum_failed, must_be_14_digits. Empty when valid.
data.countryStringCountry code from the IBAN, e.g. SA.
data.country_supportedBooleantrue if the country uses IBANs. Unsupported countries always return valid: false.
data.bank_codeStringBank code from the IBAN, when known for the country. Otherwise null.
data.bankStringBank name, when known (for example Saudi banks such as Al Rajhi Bank). Otherwise null.
metaObjectRequest details.
meta.request_idStringUnique id of this request, useful for support.
meta.versionStringAPI version, e.g. v1.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.