> 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/commission-for-recurring-payments/set-connection-validity-with-sales.md).

# Set Connection Validity with Sales

**GoAffPro** provides you with the option to set the customer-affiliate connection validity with sales.&#x20;

To set up the customer-affiliate connection validity with sales, go to the **Extras** section in the **Settings** tab of the GoAffPro admin panel.

<figure><img src="/files/tLLPg0fOEsc3sBB2jDQA" alt=""><figcaption><p>Settings > Extras</p></figcaption></figure>

Here, go to the Customer-Affiliate Connect section.

<figure><img src="/files/0bxXFntlPBZpM7pU5lr6" alt=""><figcaption><p>Customer-Affiliate Connect</p></figcaption></figure>

Now, enable the "**Set connection expiration based on number of orders?**" option.&#x20;

<figure><img src="/files/yVhTHch8mGX24BJygrWv" alt=""><figcaption><p>Enable the "Set connection expiration based on number of orders?" option</p></figcaption></figure>

Next, set the connection validity with sales.

{% hint style="info" %}
For example, if you set the validity as five sales, then the customer-affiliate connection will expire after five sales of the connected customer.&#x20;
{% endhint %}

<figure><img src="/files/FVlvbtuH42aOVXMWRzKh" alt=""><figcaption><p>Set the connection validity with sales</p></figcaption></figure>

Finally, click on **Submit**.

<figure><img src="/files/PzW2BrYTdWnY4snqPv3h" alt=""><figcaption><p>Click on Submit</p></figcaption></figure>

After this, the connection will automatically expire after the set number of sales is reached.

<figure><img src="/files/jHRAN1Te0i4JWtT0Vh6c" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/wkNyHJdAWH0>" %}
Set Connection Validity with Sales
{% 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/commission-for-recurring-payments/set-connection-validity-with-sales.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.
