All APIs
Lending

EMI Calculator

POST/api/marketplace/v1/emi-calculatorFree plan

Overview

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

NameTypeRequiredDescriptionExample
principalnumberRequiredLoan amount, ₹.1000000
annual_rate_pctnumberRequiredInterest % per annum.10.5
tenure_monthsintegerRequiredRepayment period, months.60

Response schema

FieldTypeDescription
data.eminumberMonthly EMI, ₹.
data.total_interestnumberTotal interest across tenure, ₹.
data.total_payablenumberPrincipal + total interest, ₹.
data.schedulearrayMonth-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

HTTPCodeFix
400L4B-001Check the params table for the endpoint and re-send.
401L4B-101Include the header on every request.
401L4B-102Rotate via /developer/dashboard or grab a fresh sandbox key.
402L4B-201Upgrade to the min plan shown in the endpoint's docs page.
403L4B-301Toggle it on via `POST /developers/apis/toggle` or the dashboard.
404L4B-401Verify the URL path and version prefix (`/v1/`).
422L4B-421Check the response body for `detail` — it names the offending field.
429L4B-491Backoff `Retry-After` seconds, or upgrade the plan.
See the full error reference

Rate limits by plan

PlanMonthly quotaBurstPrice
free100 calls10 / minute₹0
starter5,000 calls60 / minute₹999 / month
growth25,000 calls240 / minute₹2,999 / month
enterpriseUnlimited1,200 / minuteCustom

Changelog

See the platform changelog for version-level history covering this endpoint.