The Transaction History API allows authorized clients to retrieve up to the 50 most recent transactions for a customer’s account.
POST /api/transactionhistory
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"
}
Returns an array of up to 50 transactions:
[
{
"date": "2026-01-25",
"amount": 50000,
"type": "Deposit",
"description": "Salary deposit",
"balance": 300000.75
},
{
"date": "2026-01-27",
"amount": 20000,
"type": "Withdrawal",
"description": "ATM cash withdrawal",
"balance": 280000.75
}
// ... up to 50 most recent transactions
]
{"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/transactionhistory", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({ accountNo: "1234567890" })
})
.then(response => response.json())
.then(transactions => {
console.log("✅ Recent Transactions (up to 50):");
transactions.forEach(tx => {
console.log(`Date: ${tx.date}, Amount: ${tx.amount}, Type: ${tx.type}, Description: ${tx.description}, Balance: ${tx.balance}`);
});
})
.catch(error => console.error("Error:", error));
Set method to POST, URL to https://banking.finserv.com.ng/api/transactionhistory, add headers, and body as shown above.