> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.finput.com.au/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.finput.com.au/_mcp/server.

# Recalculate repayments

POST https://api.finput.com.au/api/v1/calculator/recalculate
Content-Type: application/json

Recalculates repayment amounts for a specific rate bracket result.
Used when the user adjusts parameters on an individual result card
(e.g., changing balloon amount or rate).


Reference: https://docs.finput.com.au/api/endpoints/calculator/recalculate

## Authentication

- `Authorization` header (bearer token, required) — JWT access token obtained from `POST /api/v1/auth/login`, or a `finput_sk_...` API token

## Request

### Body (application/json)

This endpoint expects a RepaymentRecalculationRequest.

- `rate_bracket_id` (integer, required)
- `base_min` (double, required) — The edited annual rate, as a percentage
- `base_max` (double, required) — The edited annual rate, as a percentage
- `compounding_freq_value` (integer, required)
- `pv` (double, required)
- `balloon` (double, required)
- `cost` (double, required)
- `deposit` (double, required)
- `noi_min` (double, required)
- `noi_max` (double, required)
- `billing_type` (string, required, nullable) — advance; anything else prices in arrears
- `repayment_frequency` (enum, required) — `none` prices monthly.
  - Allowed values: `yearly`, `quarterly`, `monthly`, `weekly`, `daily`, `none`

## Response

### 200

Recalculated result

- `rate_bracket_id` (integer, optional)
- `r_min` (double, optional)
- `r_max` (double, optional)
- `repayment_min` (double, optional)
- `repayment_max` (double, optional)
- `e_min` (double, optional)
- `e_max` (double, optional)

## Errors

### 500 Internal Server Error

The row could not be re-priced

- `error` (string, optional)
- `errors` (map from string to list of string, optional)

## Examples

**Request**

```json
{
  "rate_bracket_id": 1,
  "base_min": 1.1,
  "base_max": 1.1,
  "compounding_freq_value": 1,
  "pv": 1.1,
  "balloon": 1.1,
  "cost": 1.1,
  "deposit": 1.1,
  "noi_min": 1.1,
  "noi_max": 1.1,
  "billing_type": "string",
  "repayment_frequency": "yearly"
}
```

**Response**

```json
{
  "rate_bracket_id": 1,
  "r_min": 1.1,
  "r_max": 1.1,
  "repayment_min": 1.1,
  "repayment_max": 1.1,
  "e_min": 1.1,
  "e_max": 1.1
}
```

**SDK Code**

```python
import requests

url = "https://api.finput.com.au/api/v1/calculator/recalculate"

payload = {
    "rate_bracket_id": 1,
    "base_min": 1.1,
    "base_max": 1.1,
    "compounding_freq_value": 1,
    "pv": 1.1,
    "balloon": 1.1,
    "cost": 1.1,
    "deposit": 1.1,
    "noi_min": 1.1,
    "noi_max": 1.1,
    "billing_type": "string",
    "repayment_frequency": "yearly"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.finput.com.au/api/v1/calculator/recalculate';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"rate_bracket_id":1,"base_min":1.1,"base_max":1.1,"compounding_freq_value":1,"pv":1.1,"balloon":1.1,"cost":1.1,"deposit":1.1,"noi_min":1.1,"noi_max":1.1,"billing_type":"string","repayment_frequency":"yearly"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.finput.com.au/api/v1/calculator/recalculate"

	payload := strings.NewReader("{\n  \"rate_bracket_id\": 1,\n  \"base_min\": 1.1,\n  \"base_max\": 1.1,\n  \"compounding_freq_value\": 1,\n  \"pv\": 1.1,\n  \"balloon\": 1.1,\n  \"cost\": 1.1,\n  \"deposit\": 1.1,\n  \"noi_min\": 1.1,\n  \"noi_max\": 1.1,\n  \"billing_type\": \"string\",\n  \"repayment_frequency\": \"yearly\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.finput.com.au/api/v1/calculator/recalculate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"rate_bracket_id\": 1,\n  \"base_min\": 1.1,\n  \"base_max\": 1.1,\n  \"compounding_freq_value\": 1,\n  \"pv\": 1.1,\n  \"balloon\": 1.1,\n  \"cost\": 1.1,\n  \"deposit\": 1.1,\n  \"noi_min\": 1.1,\n  \"noi_max\": 1.1,\n  \"billing_type\": \"string\",\n  \"repayment_frequency\": \"yearly\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.finput.com.au/api/v1/calculator/recalculate")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"rate_bracket_id\": 1,\n  \"base_min\": 1.1,\n  \"base_max\": 1.1,\n  \"compounding_freq_value\": 1,\n  \"pv\": 1.1,\n  \"balloon\": 1.1,\n  \"cost\": 1.1,\n  \"deposit\": 1.1,\n  \"noi_min\": 1.1,\n  \"noi_max\": 1.1,\n  \"billing_type\": \"string\",\n  \"repayment_frequency\": \"yearly\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.finput.com.au/api/v1/calculator/recalculate', [
  'body' => '{
  "rate_bracket_id": 1,
  "base_min": 1.1,
  "base_max": 1.1,
  "compounding_freq_value": 1,
  "pv": 1.1,
  "balloon": 1.1,
  "cost": 1.1,
  "deposit": 1.1,
  "noi_min": 1.1,
  "noi_max": 1.1,
  "billing_type": "string",
  "repayment_frequency": "yearly"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.finput.com.au/api/v1/calculator/recalculate");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"rate_bracket_id\": 1,\n  \"base_min\": 1.1,\n  \"base_max\": 1.1,\n  \"compounding_freq_value\": 1,\n  \"pv\": 1.1,\n  \"balloon\": 1.1,\n  \"cost\": 1.1,\n  \"deposit\": 1.1,\n  \"noi_min\": 1.1,\n  \"noi_max\": 1.1,\n  \"billing_type\": \"string\",\n  \"repayment_frequency\": \"yearly\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "rate_bracket_id": 1,
  "base_min": 1.1,
  "base_max": 1.1,
  "compounding_freq_value": 1,
  "pv": 1.1,
  "balloon": 1.1,
  "cost": 1.1,
  "deposit": 1.1,
  "noi_min": 1.1,
  "noi_max": 1.1,
  "billing_type": "string",
  "repayment_frequency": "yearly"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.finput.com.au/api/v1/calculator/recalculate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```