The Withdrawal Transaction API allows authorized clients to withdraw funds from a customer’s account.
POST /api/withdrawal
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 |
{
"accountNo": "1234567890",
"amount": 20000,
"description": "ATM cash withdrawal"
}
{
"transactionId": "TXN987654",
"accountNo": "1234567890",
"amount": 20000,
"description": "ATM cash withdrawal",
"status": "completed",
"newBalance": 230000.75
}
{"error": "Account number and valid amount are required"}{"error": "Account not found"}{"error": "API Key is missing"}{"error": "Invalid API Key"}{"error": "Insufficient funds"}fetch("https://banking.finserv.com.ng/api/withdrawal", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({
accountNo: "1234567890",
amount: 20000,
description: "ATM cash withdrawal"
})
})
.then(response => response.json())
.then(data => {
console.log("Transaction ID:", data.transactionId);
console.log("Account:", data.accountNo);
console.log("Amount:", data.amount);
console.log("Description:", data.description);
console.log("Status:", data.status);
console.log("New Balance:", data.newBalance);
})
.catch(error => console.error("Error:", error));
Set method to POST, URL to https://banking.finserv.com.ng/api/withdrawal, add headers, and body as shown above.