Validate IBAN

Checks an IBAN and, when it's valid, returns its country, BIC code, and bank name. Use it to verify a recipient's bank details before you create the recipient.

Spaces are stripped and letters are upper-cased before the check, so iban in the response is the normalized value. bank_name can be null if the IBAN is valid but its bank isn't in Mamo's bank list.

📘

An invalid IBAN is not an error

A well-formed request always returns 200 OK. An invalid IBAN comes back with valid: false. In that case country_code, bic_code, and bank_name are left out and an errors array is included instead:

{ "iban": "AE0700000000000000000000", "valid": false, "errors": ["bad_check_digits"] }

Possible errors values:

ValueMeaning
too_shortFewer than 5 characters
bad_charsContains characters other than letters and digits
unknown_country_codeThe country prefix is not one Mamo supports
bad_lengthWrong length for that country
bad_bban_formatThe account part doesn't match that country's format
bad_check_digitsThe check digits don't match

Leaving out iban returns a validation error.

Recipes
💸
Pay a recipient
Open Recipe
🏪
Run a marketplace: collect, hold, split and pay sellers
Open Recipe
Query Params
string
required
Defaults to AE070331234567890123456

The IBAN to validate.

Responses

429

Too many requests. You sent more than 100 requests in 30 seconds from one IP address. This response has no JSON body. See Rate limits.

500

Unexpected error

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json