> For the complete documentation index, see [llms.txt](https://docs.swapkit.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swapkit.dev/monetization.md).

# Monetization

To monetize your integration, follow the steps below to register and set up your affiliate configuration.

### Step 1: Register in the SwapKit Partner's Dashboard

You can register yourself at [SwapKit's dashboard](https://dashboard.swapkit.dev/) and have your API key ready to use.\
If you need help through the process you can [contact us here](https://partnerships.swapkit.dev/) and schedule a short call with us.

### Step 2: Create an app and configure 2FA

Create an app and enter the `Affiliate Config` . You will be prompted to activate two-factor authentication, which is needed before you can set up affiliate configuration.

<figure><img src="/files/Cf229w6nMivEkezLY0XF" alt="" width="563"><figcaption></figcaption></figure>

To use 2FA you will need an authenticator application. You should also store the recovery codes shown in case you lose access to your authenticator application.

### Step 3: Configure the app's general fee tiers

General configuration allows you to set default fee tiers for all the different swap providers. It has settings for value ranges and the option to set up a specific fee tier for stablecoin swaps.

<figure><img src="/files/6ESiSITg9KbnozPQX5t1" alt="" width="563"><figcaption></figcaption></figure>

### Step 4: Configure provider specific settings

For each swap provider, you need to setup an address to collect the fees. You can use the same address for all of them but you need to register accordingly for each provider.

You can also define specific **affiliate fee tiers** in each provider configuration. These will override the general fee tiers.

### Step 5: Monetize API requests

When making requests to the `/v3/quote`  endpoint, use the **`x-api-key`** header with the generated API key. The affiliate fee tier will be applied automatically, ensuring you earn the configured fees for each transaction.&#x20;

There is no need to pass the specific affiliate settings when requesting a quote if it is already set up using our dashboard, but passing them will override any settings you have set up on the dashboard.

***

### Fee collection by provider

After affiliate fees are configured, three things vary by provider: the asset fees accrue in, where you view pending and collected balances, and how they convert to your payout asset. The sections below describe the collection mechanics for each provider.

{% hint style="info" %}
The `affiliateFee` you set on `/v3/quote` (or via the dashboard fee tiers) controls how much is charged per swap. This section covers what happens to those fees *after* they are charged — how they settle and how you collect them.
{% endhint %}

#### Garden

Affiliate fees accrue in **cbBTC** or **USDC** on **Base**, **Arbitrum**, or **Ethereum**. When you collect, the fee is automatically converted to your chosen collection asset at the time of the swap, so no manual conversion step is required.

You can view pending fees through Garden's `GET /earnings` endpoint.

For full details, see [Garden's affiliate fees documentation](https://docs.garden.finance/developers/affiliate-fees).

#### Chainflip

The broker fee is **always taken from the USDC leg** of the swap, regardless of the source and destination assets. Because the fee is deducted on the USDC amount during the swap itself, there is no separate conversion transaction.

The total broker fee is then distributed between the main broker and the affiliate according to their configured shares.

There is no dedicated API endpoint for viewing Chainflip fees. Instead, open your broker page in the [Chainflip explorer](https://scan.chainflip.io/) and navigate to the **Fees & Withdrawals** tab, where each fee is listed alongside its event and corresponding swap.

#### Flashnet

All Flashnet flows route through a **USD leg**, and all fees are stored as USD. If you want to collect in a different asset, a just-in-time (JIT) swap is performed at withdrawal to convert the stored USD balance into your chosen asset.

***
