On this page
DocumentationAPI

Endpoints

Use this page to find the current route shape. Use the generated OpenAPI reference for field-level request and response detail.

Current routes

Calculate

POST /api/v2/calculators/:calculatorId/calculate accepts a CalculatorRunRequest payload and returns a CalculatorRunResponse.

Terminal
curl -X POST \
  http://127.0.0.1:4000/api/v2/calculators/au.pay.take-home/calculate \
  -H 'content-type: application/json' \
  -d '{
    "calculatorId": "au.pay.take-home",
    "payload": {
      "facts": {
        "grossPay": { "_tag": "Money", "cents": 346200, "currency": "AUD" },
        "period": "fortnightly",
        "taxFreeThresholdClaimed": true
      },
      "jurisdiction": "AU",
      "taxYear": "2025-26"
    }
  }'

Expected output includes calculator.calculatorId: "au.pay.take-home", report._tag: "TakeHomePayReport", report.withholdingsTotal.cents: 75600 and report.netPay.cents: 270600.

If the request fails, read CalculatorApiErrorEnvelope.error and handle the underlying CalculatorServiceError.

Read public documentation

Use path to select a page address from navigation, such as /start/quickstart. The path accepts up to 256 characters. The page route returns the page title, description and Markdown in a JSON object. The Markdown route returns the same page text with content-type: text/markdown.

Terminal
curl 'http://127.0.0.1:4000/api/v2/docs/markdown?path=/start/quickstart'

Search with a term of 1 to 100 characters. Each search returns up to 20 results, with a page address, title and excerpt of up to 240 characters. Use the navigation route to read the section and page links.

See API errors for missing-page and invalid-query replies.