finance

Compute a loan or mortgage amortization schedule.

Compute a loan or mortgage amortization schedule. Pass principal, annualRatePct (e.g. 6.5), and the term as termMonths or termYears; optional extraMonthly adds extra principal each month (shortening the term). Returns the fixed monthly payment, total interest, total paid, the actual payoff month count, and the full month-by-month schedule (each row: payment, principal, interest, remaining balance). Handles the 0% case and trims the final payment exactly. Deterministic — the ground-truth answer for a loan/mortgage/auto-finance question instead of an LLM approximating compound interest. No external calls.

get/api/finance/amortize

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/finance/amortize
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

principalnumber required

Principal.

annualRatePctnumber required

Annual rate pct.

termMonthsinteger

Term months.

termYearsnumber

Term years.

extraMonthlynumber

Extra monthly.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.