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

# Developer fee

> Take a percentage of each payment amount as a fee

Developer fees let you charge a share of each payment amount and route it to a beneficiary wallet you control. Switch calculates the fee from the stablecoin side of the transaction when you add `developer_fee` and `developer_recipient` on quote and initiate requests. When the offramp completes, Switch sends your fee to **`developer_recipient`** automatically.

<Note>
  To see how a fee changes output amounts before you initiate a payment, use
  [Get quote](/guides/get-quote) endpoint with the same payment request payload.
</Note>

## How developer fees work

<Steps>
  <Step title="Setting fee">
    On [POST `/offramp/quote`](/guides/get-quote) and **POST `/offramp/initiate`**, pass **`developer_fee`** and **`developer_recipient`**. Omit them or set `developer_fee` to `0` if you are not charging a fee.
  </Step>

  <Step title="Fee settlement">
    After the payment completes, Switch pays your **`developer_fee`** portion to **`developer_recipient`** automatically — no separate action required.
  </Step>
</Steps>

## Fee model

Switch enables you to charge any **percentage** as a developer fee on the incoming stablecoin payment amount:

* **`developer_fee`** — Number from **0** to **100**: the percentage of the payment amount taken as your fee (for example, `0.5` for 0.5%, `2` for 2%).
* **`developer_recipient`** — Blockchain address that should receive the developer fee.

<Warning>
  **`developer_recipient`** wallet address must be able to receive the
  stablecoin and network of the payment.
</Warning>

### Calculation example

Payment of **100 USDC** with **`developer_fee`: `0.2`** (0.2%, i.e. 20 bps):

* Your fee: 100 × 0.002 = **0.2 USDC** to `developer_recipient`.

With **`developer_fee`: `0.5`**:

* Your fee: **0.5 USDC** on a 100 USDC payment (0.5% of 100).

## Need help?

<CardGroup cols={2}>
  <Card title="Email support" icon="mail" href="mailto:contact@onswitch.xyz">
    Send us a message and we will get back to you shortly.
  </Card>

  <Card title="Book a demo" icon="calendar" href="https://calendly.com/contact-onswitch/30min">
    Hop on a call with us.
  </Card>
</CardGroup>
