Get Virtual Accounts
Retrieve all virtual accounts for a specific currency.
GET /v1/virtual-account
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
currency |
string | Yes | Filter by currency: NGN or GHS |
Example Request
curl -X GET "https://api.esca.finance/v1/virtual-account?currency=NGN" \
-H "X-Api-Key: your_api_key_here"
Example Response
{
"status": true,
"data": [
{
"id": 12345,
"accountName": "ESCA/John Doe",
"accountNumber": "8012345678",
"balance": 50000.00,
"bankName": "Wema Bank",
"bankCode": "035",
"currency": "NGN"
}
]
}