Skip to Content
UtilsCalculate Interest

Calculate Interest

Price a loan before anyone applies for it: interest rate, total repayable, monthly payment, insurance fee, and the tenure cap for that product. Use it to build an in-app calculator, show “as low as ₦X/month” on a fee page, or validate a tenure choice client-side before submit.

POST /api/loans/calculate-interest

Auth: none (AllowAnonymous), no header needed. Pass a Bearer parent token only if you want the caller’s referral-partner markup folded into the quote, otherwise the platform default rate applies.

Request body

FieldRequiredDescription
amountYesThe loan amount to price.
tenureMonthsYes1–16. The product’s real cap is enforced separately, see below.
schoolTypeNoK12, Institution, or ProfessionalBody. Drives which rate table applies.
loanTypeNoTermly or Session, defaults to Termly. K-12 only, ignored for Institution and ProfessionalBody.
incomeSourceK-12: no · Others: yesSalaryEarner or BusinessOwner. Required whenever schoolType isn’t K12.
schoolIdNoPrices against that school’s own rate override instead of the platform default.

K-12 example

curl -X POST "$BASE/api/loans/calculate-interest" \ -H "Content-Type: application/json" \ -d '{ "amount": 150000, "tenureMonths": 3, "schoolType": "K12", "loanType": "Termly" }'
{ "success": true, "message": "Request successful", "data": { "amount": 150000, "tenureMonths": 3, "interestRate": 12.0, "totalInterest": 18000.0, "totalRepayable": 168000.0, "monthlyPayment": 56000.0, "monthlyInterestRatePercent": 4.0, "insuranceFeePercent": 1.5, "insuranceFeeAmount": 2250.0, "firstInstallmentAmount": 56000.0, "maxTenureMonths": 4 }, "errors": [], "statusCode": 200 }

Institution / ProfessionalBody example

incomeSource becomes required, and interestRate / monthlyInterestRatePercent come from that product’s own rate table instead:

curl -X POST "$BASE/api/loans/calculate-interest" \ -H "Content-Type: application/json" \ -d '{ "amount": 300000, "tenureMonths": 6, "schoolType": "Institution", "incomeSource": "SalaryEarner" }'
{ "success": true, "message": "Request successful", "data": { "amount": 300000, "tenureMonths": 6, "interestRate": 21.0, "totalInterest": 63000.0, "totalRepayable": 363000.0, "monthlyPayment": 60500.0, "monthlyInterestRatePercent": 3.5, "insuranceFeePercent": 1.5, "insuranceFeeAmount": 4500.0, "firstInstallmentAmount": 60500.0, "maxTenureMonths": 16 }, "errors": [], "statusCode": 200 }

Try it

POST/api/loans/calculate-interest

Validation and limits

ResponseCause
400 / 422, "Tell us whether you earn a salary or run a business, it determines your interest rate."incomeSource omitted while schoolType isn’t K12.
422, "The longest tenure available for this loan is {N} month(s)."tenureMonths passed basic 1-16 validation but exceeds the product’s real cap. Read maxTenureMonths off a successful quote to clamp your UI before the user hits this.
422, "The maximum loan amount is ₦{X:N2}."amount exceeds the platform cap.

maxTenureMonths in a successful response is the authoritative cap for that amount / schoolType combination, prefer it over hard-coding 1–16 in your own tenure picker.

Interest rate catalog

GET /api/loans/interest-rates

Auth: none (AllowAnonymous).

Companion endpoint for building a full rate table without pricing one specific quote: every rate tier, tenure cap, and the formula strings behind them, not tied to a single amount.

GET/api/loans/interest-rates