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

# Fee

> Collect a partner facilitation fee on collection, disbursement, offramp, and onramp requests.

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

1. Deduct the equivalent of **KES 1,010** from the user’s wallet.
2. Submit the following parameters in your API request:

```json theme={null}
{
  "amount": 1010,
  "fee": 10
}
```

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

## Onramp

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.

## Where to send `fee`

Include `fee` (optional number) on money-moving requests such as:

* `POST /v1/pay/{currency}` and `POST /v1/onramp/{currency}` — [Offramp](/guides/offramp) / [Onramp](/guides/onramp)

`amount` is the **gross** amount (recipient + fee). `fee` is the portion credited to your partner fiat wallet.
