The Loan Status API allows authorized clients to check the current status of a loan.
POST /api/loans/status
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 |
{
"loanId": "LOAN123456"
}
{
"principal": 500000,
"totalRepayment": 600000,
"balance": 200000,
"status": "active"
}
{"error": "Loan ID is required"}{"error": "Loan not found"}{"error": "API Key is missing"}{"error": "Invalid API Key"}fetch("https://banking.finserv.com.ng/api/loans/status", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_SECURE_API_KEY"
},
body: JSON.stringify({
loanId: "LOAN123456"
})
})
.then(response => response.json())
.then(data => {
console.log("Principal:", data.principal);
console.log("Total Repayment:", data.totalRepayment);
console.log("Balance:", data.balance);
console.log("Status:", data.status);
})
.catch(error => console.error("Error:", error));
Set method to POST, URL to https://banking.finserv.com.ng/api/loans/status, add headers, and body as shown above.