Lending
EMI Calculator
POST
/api/marketplace/v1/emi-calculatorFree planOverview
Standard amortising EMI + a full month-by-month repayment schedule.
Use case
Loan-comparison pages, personal-finance apps, and internal ops calculators.
Authentication
All requests require the X-API-Key header. Sandbox and live keys share the same base URL — the platform routes based on the key prefix.
Base URL
https://api.loan4bank.com/v3
Auth header
X-API-Key: <YOUR_KEY>
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| principal | number | Required | Loan amount, ₹. | 1000000 |
| annual_rate_pct | number | Required | Interest % per annum. | 10.5 |
| tenure_months | integer | Required | Repayment period, months. | 60 |
Response schema
| Field | Type | Description |
|---|---|---|
| data.emi | number | Monthly EMI, ₹. |
| data.total_interest | number | Total interest across tenure, ₹. |
| data.total_payable | number | Principal + total interest, ₹. |
| data.schedule | array | Month-wise principal / interest / closing balance. |
Sample request & response
Request · cURL
curl -X POST 'https://api.loan4bank.com/v3/marketplace/v1/emi-calculator' \
-H 'X-API-Key: <YOUR_KEY>' \
-H 'Content-Type: application/json' \
-d '{"principal":1000000,"annual_rate_pct":10.5,"tenure_months":60}'Sample response
{
"status": "SUCCESS",
"message": "ok",
"data": {
"emi": 21493.9,
"total_interest": 289634.02,
"total_payable": 1289634.02,
"schedule": [
{
"month": 1,
"emi": 21493.9,
"interest": 8750,
"principal": 12743.9,
"closing_balance": 987256.1
}
]
}
}Want to hit this endpoint without leaving the docs? and use the in-modal runner — it's pre-loaded with this endpoint's sample body.
Error codes
| HTTP | Code | Fix |
|---|---|---|
| 400 | L4B-001 | Check the params table for the endpoint and re-send. |
| 401 | L4B-101 | Include the header on every request. |
| 401 | L4B-102 | Rotate via /developer/dashboard or grab a fresh sandbox key. |
| 402 | L4B-201 | Upgrade to the min plan shown in the endpoint's docs page. |
| 403 | L4B-301 | Toggle it on via `POST /developers/apis/toggle` or the dashboard. |
| 404 | L4B-401 | Verify the URL path and version prefix (`/v1/`). |
| 422 | L4B-421 | Check the response body for `detail` — it names the offending field. |
| 429 | L4B-491 | Backoff `Retry-After` seconds, or upgrade the plan. |
Rate limits by plan
| Plan | Monthly quota | Burst | Price |
|---|---|---|---|
| free | 100 calls | 10 / minute | ₹0 |
| starter | 5,000 calls | 60 / minute | ₹999 / month |
| growth | 25,000 calls | 240 / minute | ₹2,999 / month |
| enterprise | Unlimited | 1,200 / minute | Custom |
Changelog
See the platform changelog for version-level history covering this endpoint.