> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.avada.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to generate and import coupon codes into AVADA?

AVADA Email Marketing allows you to insert static coupons or random (dynamic/unique) coupons into your emails, newsletter popup, or spin to win wheel.

- To use **static coupons**, you can insert them directly in the email content or coupon block. See guide [here](<https://help.avada.io/help/insert-coupon-code-into-your-email-template/)
- To use **dynamic coupons**, you need to have a code group imported/created in AVADA.

And this article will guide you on how to generate/import dynamic codes to AVADA.

# Generate Shopify coupon codes in AVADA

Currently the app supports creating 3 types of coupons: **Shopify coupon**, **Auto expired Shopify coupon** and **Manual import coupon**

**Shopify coupon**: Coupon will be automatically generated in AVADA and applied at Shopify store. This type of coupon can only be created when your store is on Shopify platform.

**Manual import coupon**: Coupon code is imported via CSV file or copied and pasted directly. For non-Shopify platforms can use this type of coupon.

**Create Shopify coupons (For Shopify stores)**

**Step 1**: At the app select **Settings > Coupon** > click **Create** button

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/m0e27su_oaj745.png)

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/pg97i1u_1qlqeip.png)


**Step 2: General Information**

- Enter a name for the coupon group at **Name**
- Choose **Source** as **Shopify coupon**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/ufzb4k4_umhkl.png)

**Step 3: Choose the type of discount**
You need to choose 1 of 3 types of discount **Percentage, Fix Amount, Free Shipping** and enter the discount value you want

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/3_1iromrn.png)

**Step 4**: At **Applies to** select a condition to apply the coupon

- **All products**: apply coupon code to all products
- **Selected collection**: apply coupon code only to selected collections
- **Selected products**: apply coupon code only to selected products

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/4_1ankdjc.png)

**Step 5: Set start date and end date for coupon**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/5_7n4ws.png)

**Step 6**: Set the minimum purchase amount to apply the coupon code (Optional)

Check the Has minimum purchase amount check box and enter the purchase amount you want. Then, in order to apply this coupon, the customer must reach the minimum amount at checkout

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/6_16zzk5e.png)

**Step 7: Optional**

**- Limit number of time each code can be used in total**: allow you to set a total number of times a discount can be used. For example, setting a limit of 200 allows the discount code to be used 200 times across your customer base. If you choose this setting, then customers can use the discount multiple times. [shopify's guide](https://help.shopify.com/en/manual/discounts/create-discount-codes)

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/7_1iq9pv3.png)

**- Limit to one use per customer**: Limit to one per customer tracks a customer's email address to limit discount to one use per customer. This only applies to fixed value discounts. [shopify's guide](https://help.shopify.com/en/manual/discounts/create-discount-codes)

**Step 8: Add codes to group**

There are 2 methods to add code

**Method 1**: Automatically generate codes by clicking **Auto generated unique coupons**

- Allow automatically randomly generate coupons according to the amount you want
- Enter the amount of code you want to create at **Qty** field
- Enter the format of the dynamic coupon code in the **Pattern** field. 

You can choose to create coupon pattern with number, alpha (letter), or both. 
Example Pattern formula: 
- [4A] means 4 alpha characters. eg: FKDC, KLJA, YQWS, etc.
- [5N] means 5 numeric characters. eg: 82034, 91724, 01172, etc. 
- [12AN] means 12 alpha numeric characters. eg: KJHSLW834723, ALDHG1287392, etc.

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/8_1ico2hl.png)

**Auto re-generate coupons**: Allows to automatically generate more coupon codes when the number of codes reaches the limit

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/9_1tfijvs.png)

**Method 2: Import from file**

If you don't want to automatically generate the code but already have coupon codes, you can choose **Import from file** and enter the code directly into the textbox or upload a CSV file with the coupon code available.

**Step 9:** Review the installed fields once and then click **Create** button to complete

# Manual import coupon

For platforms other than Shopify, you can choose Manual import coupon to import coupon codes and use in AVADA

**Step 1**: At the app select **Settings > Coupon > click Create button**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/1_7gxfjf.png)

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/3333_4fuwyz.png)

**Step 2: General Information**

Enter a name for the coupon group at **Name**
Select **Source** as **Manual coupon group**

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/w3wears_ylpij9.png)

**Step 3:** Import the code by CSV file or directly import the code you want to create into the textbox

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/12_qix8td.png)

**Step 4:** Click **Create** button to finish

# View/Edit Coupon

To edit a coupon you need to go to **Coupons** page and click on the coupon and you want to edit.

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/13_l45y0w.png)

# Summary

Here will display the basic information of the coupon

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/14_wugzwk.png)

Adjust the **Enable/Disable** status of the coupon here

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/15_gx7yyh.png)

Click View all codes in the respective fields to see the list of generated codes

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/16_1ixjkf3.png)

Clicking **See coupon usage history** will take you to the **Coupon Usage page**. Here you can track which coupon codes were used, where and when they were used:

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/17_9x8yh7.png)

#  Generate New Codes

For coupons that generate codes with **Auto Generated Unique coupons**, you can generate additional codes when editing coupons by clicking **Generate New Codes** in the **Auto-Generating Settings** field

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/18_1u10b0f.png)

After clicking, the **Generate more codes** popup will appear, you need to enter the number of codes you want to generate and click **Generate** button to complete.

![](https://storage.crisp.chat/users/helpdesk/website/b66870a37c890800/19_12x9gnk.png)