IBAN Generator
Data Validation Finance Credits / request: 1Builds a valid IBAN from a country code and BBAN or bank/account parts.
GET
https://api.apikodu.com/api/v1/ibangenerator
Documentation
Overview
Builds check digits from country + BBAN (or bank/account). Response shape matches the IBAN validator.
Authentication
Every request requires the x-api-key header. Credits used and remaining quota are returned in response headers (x-api-credits-used, x-api-remaining-credits, x-rate-limit-*).
Request
GET
https://api.apikodu.com/api/v1/ibangenerator?countryCode=TR&bban=0006100519786457841326
Query string. bban or bankIdentifier+accountNumber.
Parameters
| Name | Type | Required | Default | Options | Description |
|---|---|---|---|---|---|
countryCode |
string | * Required | — | — | ISO country code. |
bban |
string | Optional | — | — | BBAN. Overrides the part fields when set. |
bankIdentifier |
string | Optional | — | — | Bank code. With accountNumber when bban is empty. |
accountNumber |
string | Optional | — | — | Account number. Required when bban is empty. |
branchIdentifier |
string | Optional | — | — | Branch code. Optional. |
Response
| Name | Type | Description |
|---|---|---|
isValid |
boolean | true when the generated IBAN is valid. |
iban |
string | Electronic IBAN. |
ibanPrint |
string | Print format in groups of 4. |
ibanObfuscated |
string | Middle masked. |
countryCode |
string | ISO country. |
checkDigits |
string | Check digits. |
bban |
string | BBAN. |
bankIdentifier |
string | Bank identifier. |
bankName |
string | Bank name when known. |
branchIdentifier |
string | Branch. |
sepaMember |
boolean | SEPA member. |
isQrIban |
boolean | QR-IBAN range. |
Errors
| HTTP | code | Description |
|---|---|---|
400 |
-284 |
Country/BBAN/parts invalid or length mismatch. |
401 |
-100 |
x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API. |
429 |
-221 |
Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset. |
429 |
— | Package credit quota cannot cover this request. Body may be { error, limit, currentUsage, requestCost } (no code field). |
500 |
-1 |
Unexpected server error. message is a generic error text without technical details. |
Notes
- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).
Sample response
{
"data": {
"isValid": true,
"iban": "TR330006100519786457841326",
"ibanPrint": "TR33 0006 1005 1978 6457 8413 26",
"ibanObfuscated": "TR33 ********************1326",
"countryCode": "TR",
"checkDigits": "33",
"bban": "0006100519786457841326",
"bankIdentifier": "00061",
"bankName": "T.C.ZİRAAT BANKASI",
"branchIdentifier": null,
"sepaMember": false,
"isQrIban": false
}
}
Code samples
const response = await fetch('https://api.apikodu.com/api/v1/ibangenerator', {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
import requests
headers = {
'x-api-key': 'YOUR_API_KEY'
}
response = requests.get('https://api.apikodu.com/api/v1/ibangenerator', headers=headers)
print(response.json())
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetStringAsync("https://api.apikodu.com/api/v1/ibangenerator");
Console.WriteLine(response);
$response = file_get_contents('https://api.apikodu.com/api/v1/ibangenerator', false, stream_context_create([
'http' => [
'header' => "x-api-key: YOUR_API_KEY"
]
]));
print_r(json_decode($response, true));
curl -X GET 'https://api.apikodu.com/api/v1/ibangenerator' \
-H 'x-api-key: YOUR_API_KEY'
Start building in minutes
Create a free account, get your API key and send your first request in minutes.