> 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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.wheelx.fi/sdk-and-widget/widget/referral-commission.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
