> For the complete documentation index, see [llms.txt](https://docs.wheelx.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wheelx.fi/sdk-and-widget/widget/referral-commission.md).

# Referral Commission

Integrate affiliate tracking into your widget integration using a **referral code in the URL path**.

### 1. Get Your Referral Code

Go to the WheelX Affiliate portal and create or copy your referral code:

👉 affiliate.wheelx.fi

In the dashboard, look at the **Channel referral link** panel. The **Code** value is your referral code.

### 2. Pass It via URL Path

Add your referral code as a `/v/{code}` segment in the widget URL:

```
https://wheelx.fi/v/YOUR_REFERRAL_CODE?from_chain=8453&to_chain=1
```

#### Combined with Short Links

```
https://wheelx.fi/v/YOUR_REFERRAL_CODE/from/8453&USDC/to/1&USDT
```

### 3. Full Example

#### Direct Link

```
https://wheelx.fi/v/WHEELX_PARTNER?from_chain=8453&to_chain=42161&from_symbol=USDC&to_symbol=USDT
```

#### iframe Embed

```
<iframe
  src="https://wheelx.fi/v/WHEELX_PARTNER?from_chain=1&to_chain=8453&from_symbol=ETH&to_symbol=USDC"
  width="480"
  height="700"
  style="border: none; border-radius: 24px;"
  title="WheelX Bridge & Swap"
></iframe>
```

### Notes

* The referral code is extracted from the `/v/{code}` path segment
* The widget does not need a separate UI change for referral tracking
* Referral attribution applies to all quotes and completed trades from that session
* Check your earnings in the Affiliate Dashboard

PreviousCustomization
