> For the complete documentation index, see [llms.txt](https://docs.diro.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diro.app/en/payments-and-finance/fees-and-how-theyre-calculated.md).

# Fees & How They're Calculated

## Calculation order

```mermaid
flowchart TD
  A["Service price"] --> S["Subtotal"]
  B["Additional participants"] --> S
  C["Resource / provider"] --> S
  D["Add-on"] --> S
  S --> N["Net booking value<br/>= Subtotal − Discount"]
  E["Voucher / membership"] -->|"Discount"| N
  N --> T["Total paid by customer"]
  F["Platform fee &<br/>payment fee"] --> T
  N ==>|"goes into"| W[("Your wallet")]
```

**Subtotal** is the service price plus additional participants, the selected resource or provider, and add-ons.

**Discount** from a voucher or membership is subtracted from the subtotal. The result is the net booking value.

**Total paid by the customer** is the net booking value plus the platform fee and payment fee, as configured in **Settings → Setting → Payment tab**.

**What lands in your wallet** is the net booking value.

## Example

A 60-minute massage at Rp 150,000, plus aromatherapy at Rp 25,000, with the customer using a Rp 20,000 discount voucher.

* Subtotal: Rp 150,000 + Rp 25,000 = **Rp 175,000**
* Discount: **Rp 20,000**
* Net booking value: **Rp 155,000** → this is what lands in the wallet
* The platform fee and payment fee are added on top, according to your settings
* The total paid by the customer is the sum of both

{% hint style="info" %}
On the invoice and in reports, the platform fee and payment fee are shown as **a single combined line**. The customer sees one fee amount, not the breakdown.
{% endhint %}

## Rounding

All values are in Rupiah with two decimal places. Calculations are done server-side, so the numbers on the storefront, invoice, and reports always match.

## Configuring fees

The fee structure is set in **Settings → Setting → Payment tab**, and can differ per payment method — for example, QRIS can have a different fee from a virtual account. If you have a special arrangement with DIRO, that rate applies automatically to your business.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.diro.app/en/payments-and-finance/fees-and-how-theyre-calculated.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
