Bank Account Verification in Ghana
Verify a Ghanaian bank account number and retrieve the account holder's name and details before initiating a transfer.
Prerequisites
You'll need an API key. See API Keys to generate one.
Note: Verification endpoints use an API key in the
X-API-Keyheader — not a Bearer token.
Make the request
curl -X POST https://api.lira.com/api/v1/verify/account \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountNumber": "1234567890",
"country": "GH",
"bankCode": "030"
}'
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
accountNumber |
string | Yes | Bank account number |
country |
string | Yes | Must be GH |
bankCode |
string | Yes | Bank routing code (e.g. 030 for Ghana Commercial Bank) |
mode |
string | No | sync (default) or async |
webhookUrl |
string | No | Required when mode is async |
Successful response
{
"id": "ver_a1b2c3d4-...",
"status": "success",
"verificationType": "ACCOUNT_NUMBER",
"identifier": "1234567890",
"country": "GH",
"verifiedAt": "2026-03-09T10:05:00.000Z",
"verified": true,
"accountNumber": "1234567890",
"accountName": "Kofi Mensah",
"bankCode": "030",
"bankName": "Ghana Commercial Bank"
}
Sandbox test data
| Account Number | Bank Code | Expected result |
|---|---|---|
0000000000 |
030 |
success — "Test Account, Ghana Commercial Bank" |
Error codes
error.code |
Cause | Action |
|---|---|---|
ACCOUNT_NOT_FOUND |
Account number not found | Ask the user to check their account number and bank code |
INVALID_BANK_CODE |
Bank code not recognised | Validate against the supported banks list |
PROVIDER_ERROR |
Upstream system error | Retry with exponential backoff |
PROVIDER_TIMEOUT |
Upstream system timed out | Retry — transient error |
Next steps
- Bank Account in Nigeria — verify Nigerian NUBAN accounts
- Bank Account in Kenya — verify Kenyan bank accounts
- Async Verification — receive results via webhook
- Errors — full error code reference
