# 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: 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:

```
GET https://docs.uppromote.com/settings/affiliate-coupon-settings/allow-affiliates-to-choose-coupon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
