Home/API/Refinancing Comparison

API Endpoint

Refinancing Comparison

Compare current loan with refinance option, including closing costs and break-even point.

Endpoint

POST https://likeoptions.com/api/v1/calculate/refinancing

Also supports GET with query parameters.

Parameters

ParameterTypeDefaultDescription
balancenumber—Current loan balance ($)
currentRatenumber—Current interest rate (%)
currentMonthsnumber—Months remaining on current loan
newRatenumber—New loan interest rate (%)
newYearsnumber—New loan term (years)
closingCostsnumber0Refinancing closing costs ($)

Request Examples

POST (JSON body)
curl -X POST https://likeoptions.com/api/v1/calculate/refinancing \ -H "Content-Type: application/json" \ -d '{"balance": 100000, "currentRate": 50000, "currentMonths": 6}'
GET (query parameters)
curl "https://likeoptions.com/api/v1/calculate/refinancing?balance=100000&currentRate=50000&currentMonths=6"

Response

{ "kind": "refinancing", "result": { "primary": 1234.56, "secondary": [ { "label": "Example metric", "value": 100, "format": "money" }, { "label": "Example percent", "value": 5.5, "format": "percent" } ] } }

When to Use

  • Decide whether to refinance
  • Calculate break-even point
  • Compare rate scenarios

Error Handling

  • 400 Bad Request — Invalid input parameters or missing required fields
  • 404 Not Found — Unknown calculator kind
  • 429 Too Many Requests — Rate limit exceeded (120 req/hour per IP)
  • 413 Payload Too Large — Request body exceeds 16 KB

Related Endpoints

View request examples in JavaScript, Python, cURL, and more →