GET
/api/v1/finance/loanFinanceLoan repayment
Work out a loan repayment on reducing-balance (amortising) or flat-rate terms. Returns the monthly instalment, total interest and total repayable. Currency-agnostic.
Try it live
Request
GET https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducingResponse
…Parameters
| Name | Type | Required | Description |
|---|---|---|---|
principal | number | yes | Amount borrowed |
rate | number | yes | Annual interest rate, percent |
months | number | yes | Loan term in months |
method | reducing | flat | no | Interest method |
Call it from code
curl
curl "https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducing"JavaScript
const res = await fetch("https://www.leadafrik.com/api/v1/finance/loan?principal=300000&rate=13&months=24&method=reducing");
const { ok, data, meta } = await res.json();