GET/v1/validate/iban
Check an IBAN: country, length and mod-97 check digits
PARAMETERS
- ibanquery · stringREQUIRED
- IBAN, spaces allowede.g. GB82 WEST 1234 5698 7654 32
REQUEST
curl "https://api.apialmanac.com/v1/validate/iban?iban=GB82+WEST+1234+5698+7654+32" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/validate/iban?iban=GB82+WEST+1234+5698+7654+32", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/validate/iban?iban=GB82+WEST+1234+5698+7654+32", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"input": "GB82 WEST 1234 5698 7654 32",
"iban": "GB82WEST12345698765432",
"formatted": "GB82 WEST 1234 5698 7654 32",
"country": "GB",
"valid": true,
"reason": null,
"check_digits": "82",
"bban": "WEST12345698765432"
}