> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/affiliate-commissions/advanced-settings/setup-rule-based-royalties.md).

# Setup Rule Based Royalties

**GoAffPro** provides you with the option to set up rule based royalties for affiliates.&#x20;

To set up rule based royalties for affiliates, go to the **Royalties (Fixed commissions)** section in the **Commissions** tab of the GoAffPro admin panel.&#x20;

<figure><img src="/files/W6ITIGiCQ3MlHAjWSLcJ" alt=""><figcaption><p>Commissions > Royalties (Fixed commissions)</p></figcaption></figure>

Here, go to the Rule based royalties section.

![Rule based royalties](/files/t0jKOWMBIQOOtXuniMJe)

Now, enable the toggle.&#x20;

![Enable the toggle](/files/AKhoCTkYFhlv2UkGmqd4)

After this, click on **New rule**.&#x20;

![Click on New rule](/files/Sk56ihLnkbmbHTnpiI7L)

This will open up the New royalty commission rule window.&#x20;

![New royalty commission rule](/files/I9hckOnLisLZz6I9JQCf)

Here, select the rule. You can select different rules, such as:&#x20;

* Product name
* Product SKU
* Product Vendor

![Select the rule](/files/nFdIng0Ek146945BWgQH)

Now, set the matches value.&#x20;

![Set the matches value](/files/pIKJI69SlAhqQeILkunV)

After this, set the commission rate.

![Set the commission rate](/files/COLtLZeOZkLXck7IxSFg)

Next, select the affiliate.&#x20;

![Select the affiliate](/files/iuT5Qs5TLcmGDXSBEofG)

Finally, click on **Submit.**

![Click on Submit](/files/GHq8A8J84MqmnRk1L2tE)

The rule based royalty will get saved for the affiliate.

![](/files/zAfHBNmaFBWUUU8TTsDd)

{% embed url="<https://youtu.be/-W_wOKsepck>" %}
Setup Rule Based Royalties
{% endembed %}


---

# 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.goaffpro.com/affiliate-commissions/advanced-settings/setup-rule-based-royalties.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.
