# Create Coupon Templates

**GoAffPro** provides you with the option to create coupon templates and assign coupons to affiliates using that template.&#x20;

### Create the coupon template

To create coupon templates, go to the **Coupons** tab in the GoAffPro admin panel.&#x20;

<figure><img src="/files/GkFgbpG9XfgkLu7WKLYS" alt=""><figcaption><p>Coupons</p></figcaption></figure>

Here, go to the Automatic Coupons section.

<figure><img src="/files/KAfOV1TBycxbIPOhHedT" alt=""><figcaption><p>Automatic Coupons</p></figcaption></figure>

Now, click on **Create coupon templates**.

<figure><img src="/files/fSzDoLzh77ewfudIEJ6T" alt=""><figcaption><p>Click on Create coupon templates</p></figcaption></figure>

Here, set the template name.&#x20;

<figure><img src="/files/ekDgo8fCT9qQHnwugRjJ" alt=""><figcaption><p>Set the template name</p></figcaption></figure>

Now, set the discount type.&#x20;

<figure><img src="/files/qQNNKJJjELcThg4S1HWY" alt=""><figcaption><p>Set the discount type</p></figcaption></figure>

Next, you can set other discount settings, like limiting the discount to one use per customer, the total number of times the discount can be used, the expiry date, and the coupon code prefix.&#x20;

<figure><img src="/files/ZSxiWCWn5jv8Exy3W9pV" alt=""><figcaption><p>Set other discount settings</p></figcaption></figure>

You also have the option to limit the coupon codes to work on certain products or collections and set the discount combination settings.&#x20;

<figure><img src="/files/mxKO0Pw6TxWpewnUdhzS" alt=""><figcaption><p>Set the coupons to work on certain products or collections and the discount combination settings</p></figcaption></figure>

Finally, click on **Submit**.

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

### Assign coupon to the affiliate

To assign a coupon with this template, go to the **Affiliates** > **All Affiliates** section and click on the **affiliate's name**.

<figure><img src="/files/Dbf6ZXeqiVdsLkIQ6HZ2" alt=""><figcaption><p>Affiliates > All Affiliates > Click on the affiliate's name</p></figcaption></figure>

Here, click on the **Assign Coupon**.

<figure><img src="/files/ofOHJXY0tZoqTGCSmgut" alt=""><figcaption><p>Click on Assign Coupon</p></figcaption></figure>

Now, select the template.&#x20;

<figure><img src="/files/ke1svTJIt44KS49Wkis7" alt=""><figcaption><p>Select the template</p></figcaption></figure>

After this, set the coupon code.&#x20;

<figure><img src="/files/NcdEc8k5LftI8tpOkYZS" alt=""><figcaption><p>Set the coupon code</p></figcaption></figure>

Finally, click on **Submit**.

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

The coupon will be created according to the template settings.

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

{% embed url="<https://youtu.be/564gYYMKn2w>]" %}
Create Coupon Templates
{% endembed %}


---

# 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.goaffpro.com/affiliate-coupons/setup-referral-coupons/create-coupon-templates.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.
