The Deposit Transaction API allows authorized clients to deposit funds into a customer’s account.
POST /api/deposit
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": 50000,
"description": "Salary deposit for January"
}
{
"transactionId": "TXN123456",
"accountNo": "1234567890",
"amount": 50000,
"description": "Salary deposit for January",
"status": "completed",
"newBalance": 300000.75
}
{"error": "Account number and valid amount are required"}{"error": "Account not found"}{"error": "API Key is missing"}{"error": "Invalid API Key"}fetch("https://banking.finserv.com.ng/api/deposit", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({
accountNo: "1234567890",
amount: 50000,
description: "Salary deposit for January"
})
})
.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/deposit, add headers, and body as shown above.