GET
/api/v1/fdFixed Deposit Calculator API
Fixed-deposit maturity and effective annual yield. payout=cumulative|monthly; wht=1 applies the 5% withholding tax on interest.
Parameters
| Param | In | Required | Description |
|---|---|---|---|
| principal | query | yes | Deposit amount in LKR. |
| rate | query | yes | Annual interest rate %. |
| months | query | yes | Tenure in months. |
| payout | query | no | cumulative | monthly. |
| wht | query | no | 1 to apply 5% WHT. |
Request
curl "https://induwara.lk/api/v1/fd?principal=1000000&rate=10&months=12&payout=cumulative"JavaScript (SDK):
import { InduwaraLK } from "https://induwara.lk/sdk/induwaralk.js";
const api = new InduwaraLK();
const data = await api.fd(/* … */);Response
{
"ok": true,
"data": {
"principal": 1000000, "annualRate": 10, "tenureMonths": 12,
"payout": "cumulative", "maturityGross": 1104713.07,
"totalInterestGross": 104713.07, "effectiveAnnualYieldGross": 10.47,
"currency": "LKR"
}
}Frequently asked questions
- How do I calculate fixed deposit maturity via API?
- GET /api/v1/fd?principal=1000000&rate=10&months=12 returns the maturity value and effective annual yield. Use payout=monthly for monthly-interest FDs and wht=1 to apply the 5% withholding tax.