# Fee

The fee field allows Pretium to collect fees on your behalf.

#### Example

If your UI charges a **1% facilitation fee** and a user wants to offramp **KES 1,000** (resulting in a **KES 10** fee):

#### Steps

Deduct the equivalent of **KES 1,010** from the user’s wallet.

Submit the following parameters in your API request:

```
{
  "amount": 1010,
  "fee": 10
}
```

Pretium’s payment protocol will send **KES 1,000** to the user and credit **KES 10** to your fiat wallet.

The reverse applies during onramping — if User B wants to onramp **KES 1,000** and you include a fee of **10**, Pretium API will initiate a collection of **KES 1,010** from the user, credit **KES 10** to your fiat wallet upon confirmation, and release assets equivalent to **KES 1,000** to the user’s address.


---

# Agent Instructions: 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:

```
GET https://docs.pretium.africa/fee-field/fee.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
