> ## Documentation Index
> Fetch the complete documentation index at: https://docs.textyess.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unique discount codes: one code for each customer

> Create a Shopify discount that gives each customer their own code, and use it in automations, emails and popups. Prefix, expiration, edit, pause, archive and Shopify sync.

In **Growth Tool Kit → Unique discount codes**, you create a discount in your Shopify store. TextYess then gives a different code to each customer who gets the discount from an automation, an email or a popup. The page is at [ai.textyess.com/growth-tool-kit/discount-codes](https://ai.textyess.com/growth-tool-kit/discount-codes). It is for Shopify stores.

## Create a unique discount code

1. Open **Growth Tool Kit**. On the **Unique discount codes** card, click **Create discount codes**.
2. Click **Create discount code**.
3. In **Coupon details**, type a **Name**. You cannot change the name later.
4. Optional: type a **Prefix** of 3 to 5 characters.
5. In **Discount value**, choose **Percentage** or **Fixed amount**, then type the value.
6. In **Applies to**, choose **Entire order**, **Specific products** or **Specific collections**.
7. Optional: turn on **Require minimum purchase** and type the amount.
8. In **Active dates**, choose the **Expiration**.
9. Click **Create discount**.

TextYess creates the discount in your Shopify store, with the same name and the codes.

## Discount code settings and limits

* A percentage cannot be more than 100%. A fixed amount uses the currency of your store.
* **Specific products** accepts up to 100 products. A discount applies to products or to collections, not to both.
* Each customer can use the discount once.
* Two discounts cannot have the same name, unless one of them is archived.

You cannot make a free shipping discount on this page.

## What a unique discount code looks like

Each code has 8 characters: your **Prefix**, if you set one, then random characters. The random characters never include I, O, 0 or 1, because these are easy to confuse. A longer prefix leaves fewer random characters.

A prefix can have the letters A to Z, numbers and hyphens. A code with a hyphen cannot go in a WhatsApp **Copy code** button, because WhatsApp refuses the message. The code still works in the message text and at checkout. To use **Copy code**, make a prefix with only letters and numbers.

## When unique discount codes expire

In **Active dates**, choose the **Expiration**:

* **Does not expire**: the codes have no end date.
* **Expire after X days**: each code expires the number of days after TextYess sends it to a customer. For a popup, the count starts when the visitor submits the popup.
* **Fixed expiration date**: all codes end on the date you pick. The date must be in the future.

You cannot change the expiration after you create the discount. To use a different expiration, create a new discount.

## Edit a unique discount code

1. Open **Growth Tool Kit → Unique discount codes**.
2. Click the discount, or open its **…** menu and click **Edit**.
3. Change the discount value, **Applies to** or the minimum purchase.
4. Click **Update coupon**.

TextYess sends the new rules to Shopify. You cannot change the **Name**, the **Prefix** or the expiration.

## Where you can use unique discount codes

* **Automations**: the **Send Message**, **AI Message** and **Send Email** steps have a **Discount** field. Pick the discount under **TextYess Discounts**. Each customer gets their own code. In a WhatsApp message, show the code with the discount variable or a **Copy code** button.
* **Email campaigns**: in **Subject and sender**, pick the discount in **Discount**. Each recipient gets their own code.
* **Popups**: add a **Discount code** block to the success screen and set **Type** to **Unique**. See [Popups](/growth-tools/popups#show-a-discount-code-after-a-popup-sign-up).

The same pickers also list **Shopify Discounts**. A Shopify discount code is the same for every customer.

## Unique codes in WhatsApp campaigns and the AI agent

* **WhatsApp campaigns** do not use unique codes. In the campaign content, you type one **Discount code** for all recipients, up to 15 characters.
* **The AI agent** does not give unique codes. In the agent's discount tool, you choose from your **Shopify Discounts**. The agent can mention only the discounts that you select there. See [WhatsApp agent](/agents/whatsapp-agent).

## Pause, activate or archive a discount code

In **Growth Tool Kit → Unique discount codes**, open the **…** menu of a discount:

* **Pause**: TextYess stops giving new codes from this discount. Automations, emails and popups that use it get no code.
* **Activate**: TextYess gives codes again.
* **Archive**: the discount leaves the list. You cannot restore an archived discount.

A popup can be published with a unique discount only when the discount is active.

## See how many discount codes customers used

The list in **Growth Tool Kit → Unique discount codes** shows each discount with its status, its dates and the **Redeemed** column. **Redeemed** is the number of codes that customers used in an order. Under the name, the list shows the value, the prefix, the products or collections, and the minimum purchase.

## Why you cannot create discount codes

If **Unique discount codes** shows "To create discount codes from TextYess, update your Shopify app permissions.", the TextYess app in Shopify needs the discount permissions.

1. Click **Update app**.
2. In Shopify, approve the new permissions.
3. Go back to **Unique discount codes** and click **Create discount code**.

The **Unique discount codes** card shows only when your store is on Shopify.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.