The Balance Check API allows authorized clients to retrieve the current balance of a customer’s account.
POST /api/balance
Base URL: https://banking.finserv.com.ng
This endpoint requires an API key.
| Header | Value |
|---|---|
| x-api-key | Your assigned API key |
| Key | Value |
|---|---|
| Content-Type | application/json |
| x-api-key | YOUR_SECURE_API_KEY |
{
"accountNumber": "1234567890"
}
{
"accountNumber": "1234567890",
"balance": 250000.75,
"currency": "NGN"
}
{"error": "Account number is required"}{"error": "Account not found"}{"error": "API Key is missing"}{"error": "Invalid API Key"}fetch("https://banking.finserv.com.ng/api/balance", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({ accountNumber: "1234567890" })
})
.then(response => response.json())
.then(data => {
console.log("Account:", data.accountNumber);
console.log("Balance:", data.balance, data.currency);
})
.catch(error => console.error("Error:", error));
Set method to POST, URL to https://banking.finserv.com.ng/api/balance, add headers, and body as shown above.