ABA number or Routing Transit Number (RTN) is a nine-digit code used to identify financial institutions in the United States. It's used for direct deposits, wire transfers, electronic payments, and the processing of checks.
A routing number consists of 9 digits and serves as a unique identifier for each financial institution in the US banking system.
For example, routing number 026003780 belongs to DEUTSCHE BANK TRUST CO in NEW YORK, NY.
When you send money using an invalid routing number, the transaction may be rejected or delayed, potentially resulting in fees or complications. Using our flexible and fast RESTful API you can validate a US routing number and receive comprehensive information about it - confirm its validity and discover which bank and branch it belongs to, including address, contact information, and transfer capabilities.
How to validate a US routing number
To start using our banking codes API sign up here and create your API key. Pass this key either via x-api-key
HTTP header or via api_key
query param.
To validate a routing number call /v1/rtns/{rtn_number}
endpoint using HTTP client of your preference, i.e.:
curl 'https://swiftcodesapi.com/v1/rtns/026003780' \
--header 'X-Api-Key: your-api-key-here' \
--header 'Accept: application/json'
# INSTALLATION
$ composer require guzzlehttp/guzzle
# REQUEST
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://swiftcodesapi.com/v1/rtns/026003780', [
'headers' => [
'Accept' => 'application/json',
'X-Api-Key' => 'your-api-key-here',
],
]);
echo $response->getBody();
# INSTALLATION
$ python -m pip install requests
# REQUEST
import requests
url = "https://swiftcodesapi.com/v1/rtns/026003780"
headers = {
"Accept": "application/json",
"X-Api-Key": "your-api-key-here"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
# INSTALLATION
$ npm install node-fetch --save
// REQUEST
const fetch = require('node-fetch');
const url = 'https://swiftcodesapi.com/v1/rtns/026003780';
const options = {method: 'GET', headers: {'Accept': 'application/json', 'X-Api-Key': 'your-api-key-here'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));)
const options = {method: 'GET', headers: {'Accept': 'application/json', 'X-Api-Key': 'your-api-key-here'}};
fetch('https://swiftcodesapi.com/v1/rtns/026003780', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
The response should be:
{
"success": true,
"data": {
"id": "026003780",
"ach": {
"new_id": null,
"servicing_frb_id": "021001208",
"address": "60 WALL STREET",
"postcode": "10005-0000",
"phone": "201 593-7610",
"record_type_code": 1,
"is_main_office": true,
"change_date": "2021-01-11",
"bank": {
"id": "b14a4d8e-9b7c-4f6a-8d2e-3c5f1a7e3d2f",
"country_id": "US",
"code": "0026",
"name": "DEUTSCHE BANK TRUST CO"
},
"city": {
"id": "c2a8b3d5-6e7f-4c5b-9a2d-1f3e8c7b6a5d",
"country_id": "US",
"name": "NEW YORK",
"state": "NY"
}
},
"wire": {
"telegraphic_name": "DEUTSCHE BK NY",
"is_funds_transfer_allowed": true,
"is_settlement_only": false,
"is_securities_transfer_allowed": true,
"change_date": null,
"bank": {
"id": "b14a4d8e-9b7c-4f6a-8d2e-3c5f1a7e3d2f",
"country_id": "US",
"code": "0026",
"name": "DEUTSCHE BANK TRUST CO"
},
"city": {
"id": "c2a8b3d5-6e7f-4c5b-9a2d-1f3e8c7b6a5d",
"country_id": "US",
"name": "NEW YORK",
"state": "NY"
}
}
}
}
You can find full documentation here.