> For the complete documentation index, see [llms.txt](https://docs.uppromote.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uppromote.com/settings/affiliate-coupon-settings/allow-affiliates-to-choose-coupon.md).

# Allow affiliates to enter their preferred coupon code while registering

If you want to allow affiliates to choose their coupon code, you can ask them to fill in their preferred coupon code right on the **registration form.**

1. Go to **Settings** > **Link & coupon** > **Coupon settings.** Then, turn on **Auto-generate coupon** and click **Set up**.

<figure><img src="/files/7rNpgWiEd0hTQaArb4h3" alt=""><figcaption></figcaption></figure>

2. Add a **sample coupon** that has the rule you want auto-generated coupons to follow.

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

2. Select the **Coupon name's format** to be **Affiliates select while registering** and fill all other necessary settings, then click **Save**.

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

After you complete the setup, a **Coupon code** field will be put on your registration form and marked as required. Affiliates then must enter a coupon code upon signing up.

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

Also, if affiliates choose a coupon that already exists in your shop, there will be a notification for them to change to another coupon:

<figure><img src="/files/6JcQosgydTSjPzebhYIS" alt=""><figcaption></figcaption></figure>


---

# 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.uppromote.com/settings/affiliate-coupon-settings/allow-affiliates-to-choose-coupon.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.
