---
title: "Discount Calculator"
method: POST
path: "/api/v1/tools/discount-calculator"
tags: ["tools"]
---

# Discount Calculator

`POST /api/v1/tools/discount-calculator`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/discount-calculator`
- Auth: HTTP bearer

Final price and saving after a discount given as a percentage or a fixed amount, with optional extra stacked discounts applied one after another and optional VAT added on the discounted price. Money is rounded to cents.

## Request body

- object
  - `price` integer
  - `discountPercent` integer
  - `additionalDiscountPercents` integer[]
  - `vatPercent` integer

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `originalPrice` integer
    - `discountPercent` number
    - `saving` integer
    - `finalPrice` integer
    - `vatPercent` integer
    - `vatAmount` number
    - `finalPriceWithVat` number
    - `steps` object[]
      - `step` integer
      - `percent` integer
      - `priceAfter` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
