The Funds Transfer API allows authorized clients to transfer funds from a source account to a beneficiary account.
POST /api/transfer
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 |
{
"fromAccountNo": "1234567890",
"toAccountNo": "9876543210",
"amount": 10000,
"description": "Payment for services"
}
{
"transactionId": "TXN555888",
"fromAccountNo": "1234567890",
"toAccountNo": "9876543210",
"amount": 10000,
"description": "Payment for services",
"status": "completed",
"fromBalance": 240000.75,
"toBalance": 60000.0
}
{"error": "From account, To account, and valid amount are required"}{"error": "Source or beneficiary account not found"}{"error": "API Key is missing"}{"error": "Invalid API Key"}{"error": "Insufficient funds"}fetch("https://banking.finserv.com.ng/api/transfer", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({
fromAccountNo: "1234567890",
toAccountNo: "9876543210",
amount: 10000,
description: "Payment for services"
})
})
.then(response => response.json())
.then(data => {
console.log("Transaction ID:", data.transactionId);
console.log("From Account:", data.fromAccountNo, "New Balance:", data.fromBalance);
console.log("To Account:", data.toAccountNo, "New Balance:", data.toBalance);
console.log("Amount:", data.amount);
console.log("Description:", data.description);
console.log("Status:", data.status);
})
.catch(error => console.error("Error:", error));
Set method to POST, URL to https://banking.finserv.com.ng/api/transfer, add headers, and body as shown above.