Banks API
The Banks API allows you to retrieve lists of banks for specific countries. This is essential for building beneficiary forms and validating bank account information.
Get Banks by Country
Retrieve a list of all banks available for a specific country. This endpoint is commonly used to populate bank selection dropdowns in your application.
Endpoint
Client API Endpoint: GET /api/v1/client/banks/{country_code}
Authentication
This endpoint requires HMAC authentication (Business API Key). Include your API key and signature in the request headers:
x-api-key: <your-api-key>
x-timestamp: <RFC3339-timestamp>
x-signature: <HMAC-signature>Note: For HMAC authentication details, see the Authentication guide.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
country_code | string | ISO 3166-1 alpha-2 country code (e.g., "NG" for Nigeria, "US" for United States, "CA" for Canada) |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
type | string | No | banks | Filter the list of financial institutions. Options: - banks - Return only traditional banks- momo - Return only mobile money providers- all - Return both banks and mobile money |
Supported Country Codes
Common country codes include:
- NG - Nigeria
- US - United States (7,261+ banks with routing numbers)
- CA - Canada
- GB - United Kingdom
- KE - Kenya
- GH - Ghana
- ZA - South Africa
- SL - Sierra Leone
- CI - CΓ΄te d'Ivoire
Note: The list of supported countries may vary. Contact support if you need banks for a country not listed here.
Success Response (200 OK)
Returns an array of bank objects. The response structure varies by country:
Standard Response (Most Countries)
[
{
"id": 1,
"name": "Access Bank",
"code": "044",
"national_bank_code": "044"
},
{
"id": 2,
"name": "GTBank",
"code": "058",
"national_bank_code": "058"
}
]US Banks Response (Includes Additional Fields)
US banks include additional fields for routing numbers and location information. Note that code and national_bank_code are empty strings for US banks:
[
{
"id": 1,
"name": "Federal Reserve Bank of Boston",
"code": "",
"national_bank_code": "",
"routing_number": "011000015",
"short_name": "FRB-BOS",
"state_code": "MA",
"state_name": "Massachusetts"
},
{
"id": 2,
"name": "State Street Boston",
"code": "",
"national_bank_code": "",
"routing_number": "011000028",
"short_name": "STATE ST BOS",
"state_code": "MA",
"state_name": "Massachusetts"
},
{
"id": 3,
"name": "Bank of New York",
"code": "",
"national_bank_code": "",
"routing_number": "011001234",
"short_name": "BK OF NYC",
"state_code": "NY",
"state_name": "New York"
}
]Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Unique identifier for the bank |
name | string | Full name of the bank |
code | string | Bank code used for transactions. Empty string ("") for US banks |
national_bank_code | string | National bank code (may be the same as code). Empty string ("") for US banks |
routing_number | string | US only - 9-digit ABA routing number |
short_name | string | US only - Abbreviated bank name |
state_code | string | US only - Two-letter US state code (e.g., "MA", "NY", "CA") |
state_name | string | US only - Full state name (e.g., "Massachusetts", "New York", "California") |
Error Responses
| Status Code | Description |
|---|---|
400 | Invalid country code format or invalid type parameter |
401 | Unauthorized - Invalid or missing API key or signature |
404 | Banks not found for the specified country code |
500 | Internal server error |
Example: cURL
# Get banks for Nigeria (Defaults to banks only)
curl -X GET "https://api.sznd.app/api/v1/client/banks/NG" \
-H "x-api-key: your_api_key_here" \
-H "x-timestamp: 2025-01-30T12:20:15Z" \
-H "x-signature: generated_signature_here"
# Get mobile money for Ghana
curl -X GET "https://api.sznd.app/api/v1/client/banks/GH?type=momo" \
-H "x-api-key: your_api_key_here" \
-H "x-timestamp: 2025-01-30T12:20:15Z" \
-H "x-signature: generated_signature_here"
# Get banks for United States (includes routing numbers)
curl -X GET "https://api.sznd.app/api/v1/client/banks/US" \
-H "x-api-key: your_api_key_here" \
-H "x-timestamp: 2025-01-30T12:20:15Z" \
-H "x-signature: generated_signature_here"
# Get banks for Canada
curl -X GET "https://api.sznd.app/api/v1/client/banks/CA" \
-H "x-api-key: your_api_key_here" \
-H "x-timestamp: 2025-01-30T12:20:15Z" \
-H "x-signature: generated_signature_here"Example: HTTP Request
GET /api/v1/client/banks/NG HTTP/1.1
Host: api.sznd.app
x-api-key: your_api_key_here
x-timestamp: 2025-01-30T12:20:15Z
x-signature: generated_signature_here
Content-Type: application/jsonUse Cases
- Beneficiary Forms - Populate bank selection dropdowns when users add beneficiaries
- Account Validation - Use bank codes/routing numbers to validate account numbers before creating beneficiaries
- Bank Lookup - Display bank names in transaction details and receipts
- Multi-Country Support - Dynamically load banks based on the user's selected country
- US Bank Routing - Use routing numbers for ACH and wire transfers in the United States
- State Filtering - Filter US banks by state code for location-specific bank selection
US Banks Specific Information
The US banks list includes 7,261+ banks with complete routing number information:
- Routing Numbers: Each bank entry includes a 9-digit ABA routing number (use
routing_numberfield, notcode) - State Information: Banks are tagged with their state code and full state name
- Short Names: Abbreviated bank names for display in compact UIs
- Full Names: Complete bank names for official documentation
- Code Fields: For US banks,
codeandnational_bank_codeare empty strings - always userouting_numberinstead
Important Notes for US Banks:
codeandnational_bank_codefields are empty strings ("") for US banks- Always use the
routing_numberfield for US bank identification and transactions - Use
routing_numberfor ACH and wire transfer setup - Filter banks by
state_codefor location-specific bank selection
Example Use Cases for US Banks:
- Filter banks by state when users select their location
- Display routing numbers for ACH setup instructions
- Validate routing numbers before processing transfers
- Show bank short names in dropdown menus, full names in confirmations
Look up US bank by routing number (client)
Look up US bank details by ABA routing number. Use this when you have a routing number (e.g. from user input or a partner) and need the bank name and location. Response is USD-focal only: no id, code, or national_bank_code.
Endpoint
Client API Endpoint: GET /api/v1/client/banks/US/routing-lookup/{routing_number}
Authentication
HMAC authentication (Business API Key). Same as Get Banks by Country.
Path parameters
| Parameter | Type | Description |
|---|---|---|
routing_number | string | US ABA routing number (9 digits) |
Success response (200 OK)
Array of matching US bank objects. Multiple entries may be returned when the same bank has multiple routing numbers (e.g. by branch).
| Field | Type | Description |
|---|---|---|
name | string | Full bank name |
short_name | string | Abbreviated bank name (optional) |
state_code | string | Two-letter US state code (optional) |
state_name | string | Full state name (optional) |
routing_number | string | 9-digit ABA routing number |
Example response:
[
{
"name": "JPMORGAN CHASE BANK, NATIONAL ASSOCIATION",
"short_name": "CHASE",
"state_code": "DE",
"state_name": "Delaware",
"routing_number": "021000021"
}
]Error responses
| Status | Description |
|---|---|
400 | Missing or invalid routing_number |
401 | Unauthorized β invalid or missing API key/signature |
500 | Internal server error |
Example: cURL
curl -X GET "https://api.sznd.app/api/v1/client/banks/US/routing-lookup/021000021" \
-H "x-api-key: your_api_key_here" \
-H "x-timestamp: 2025-01-30T12:20:15Z" \
-H "x-signature: generated_signature_here"Best Practices
- Cache Results - Bank lists don't change frequently, so consider caching the response to reduce API calls
- Handle Errors Gracefully - Some country codes may not be supported; provide fallback options
- Store Bank IDs - Use the
idfield when creating beneficiaries, as it's more reliable than codes - Validate Country Code - Ensure the country code is in ISO 3166-1 alpha-2 format before making the request
- Filter by Type - Use the
typeparameter to filter between banks and mobile money providers when needed - US Routing Numbers - For US banks, always use the
routing_numberfield for ACH and wire transfers (notcodeornational_bank_code) - Handle Empty Codes - For US banks, expect
codeandnational_bank_codeto be empty strings and userouting_numberinstead
Related Endpoints
- Banks API - Get list of banks for a country (this endpoint)
- Look up US bank by routing number - Get US bank details by ABA routing number (client)
- Account Lookup - Verify bank account details using bank codes
- Create Beneficiary - Use bank information when creating beneficiaries
Next Steps
After retrieving the bank list, you can:
- Create Beneficiaries - Use the bank
idorcodewhen creating beneficiary records (userouting_numberfor US banks) - Validate Accounts - Use the account lookup endpoint to verify account numbers
- Display Bank Names - Show user-friendly bank names in your UI
- US Transfers - Use routing numbers for ACH and wire transfer setup
For more information, see:
- Beneficiaries API - How to create and manage beneficiaries
- Account Lookup - Verify bank account details