> ## Documentation Index
> Fetch the complete documentation index at: https://andcze.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VAT and fees

> Calculating VAT, the operator fee, and the net amount.

Every order has a financial breakdown: gross amount, VAT, and the operator fee. The net amount (the shop's earnings) is gross minus VAT minus the fee.

## Shop VAT configuration

You set VAT per shop (`vatConfig`):

| Field              | Default | Description                                |
| ------------------ | ------- | ------------------------------------------ |
| `enabled`          | `false` | Whether to charge VAT                      |
| `rate`             | `23`    | VAT rate in percent                        |
| `pricesIncludeVat` | `true`  | Whether product prices already include VAT |

## Calculation modes

<Tabs>
  <Tab title="Prices include VAT (gross)">
    The product price is the gross amount. VAT is extracted from it.

    Example: price 100 PLN, VAT 23% → net **81.30**, VAT **18.70**, gross **100**.
  </Tab>

  <Tab title="Prices exclude VAT (net)">
    The product price is the net amount. VAT is added.

    Example: price 100 PLN, VAT 23% → net **100**, VAT **23**, gross **123** (what the customer pays).
  </Tab>
</Tabs>

VAT is calculated on the price **after discount**, and the gross amount becomes the payment amount.

## Operator fee

The fee depends on the payment method (global or per-channel). It is calculated on the **gross** amount and stored on the order in `payment.fee`.

## Net amount

```text theme={null}
net = gross − VAT − fee
```

This is the shop's actual revenue. It appears in the email confirmation and in the Discord reports (daily and per-order), with a breakdown of gross / VAT / fees / net.

<Tip>
  The VAT breakdown is shown in the confirmation email only when VAT is enabled for the shop.
</Tip>
