# Create a discount code
Make a coupon code buyers type at checkout, choose its value and what it covers, set limits and dates, then test it in your cart.
A discount code (a coupon) is a code your buyers type in the cart or at checkout to get a saving. You create it under **Marketing → Coupons**, and it works on every plan.
```video walkthroughs/f05-coupons-discounts
title: Create discount codes and automatic discounts
caption: Make a code, set its limits, and see how often it has been used.
```
> [!NOTE]
> Want a sale that needs no code? Use an [automatic discount](/docs/marketing-growth/create-an-automatic-discount) instead. Want a different code for every customer? See [Create single-use codes](/docs/marketing-growth/generate-bulk-single-use-codes).
## Step 1: Open the coupon editor
1. In the sidebar, go to **Marketing → Coupons**.
2. Select **Create coupon**.
```screenshot marketing-growth/create-a-discount-code/01-coupons-list
alt: The Coupons page listing WELCOME10 with its uses and revenue, and the Create coupon button
caption: Every coupon and how often it was used.
1: 92,9 Create coupon
```
## Step 2: Set the name and code
1. Under **Basics**, enter a **Name**. Only you see it, for example `Autumn candles 15%`.
2. Enter the **Coupon code** buyers will type, for example `AUTUMN15`. Use up to 64 characters. Codes aren't case sensitive, and two coupons in your store can't share a code.
3. Under **Coupon applies to**, choose:
   - **Whole cart** to take the saving off the cart total.
   - **Specific products** to take it off individual items.
```screenshot marketing-growth/create-a-discount-code/02-coupon-basics
alt: The Basics card with the name Autumn candles 15%, the code AUTUMN15 and Whole cart selected
caption: Buyers only see the code.
1: 30,22 Name
2: 30,34 Coupon code
3: 30,50 Coupon applies to
```
## Step 3: Choose the value
1. Under **Value**, pick a **Value type**:
| Value type | What the buyer gets | Fields to fill in |
|---|---|---|
| **Percentage off** | A percentage off, for example 15% | **Value** (up to 100), optional **Max discount** in USD |
| **Fixed amount off** | A dollar amount off, for example $10 | **Value** |
| **Free shipping** | No shipping charge | None |
| **Volume / tiered** | A percentage off once they buy enough | **Value**, **Minimum quantity** |
| **Buy X get Y** | Buy some, get some discounted or free | **Buy quantity**, **Get quantity**, **Get % off** (100 is free) |
2. Optional: enter a **Minimum purchase**. The code only works when the cart's items add up to at least this amount.
## Step 4: Choose what it covers
1. Under **Applies to**, choose **All products**, **Specific products**, **Specific collections** or **All products except**.
2. If you chose a specific option, search for and pick the products or collections. Under **Specific collections** you can also pick **Excluded products** that never get the saving.
3. Optional: under **Combinations**, tick what this coupon may stack with: **Product discounts**, **Order and automatic discounts** or **Shipping discounts**. Leave them all unticked and the coupon is used on its own. [How discounts combine](/docs/marketing-growth/discount-combinations-and-limits) explains the rules.
```screenshot marketing-growth/create-a-discount-code/03-coupon-value-scope
alt: Percentage off set to 15, and Applies to set to the Candles collection
caption: A 15% code for one collection.
```
## Step 5: Set dates and limits
1. Under **Validity**, set **Starts** and, if the code should stop working, **Ends**. Leave **Ends** blank for no end date. Times are in your store's time zone, shown beside each field.
2. Under **Usage**, set any limits:
   - **Total usage limit**: how many times the code can be used across all buyers. Blank means unlimited.
   - **Per-customer limit**: how many times one buyer can use it.
   - **Once per customer**: tick to allow one use per buyer.
3. Leave **Unique codes** under **Codes** at 1 for one shared code.
```screenshot marketing-growth/create-a-discount-code/04-coupon-validity-usage
alt: Starts and Ends dates, a Total usage limit of 100, and Once per customer ticked
caption: Blank limits mean unlimited.
```
## Step 6: Create the coupon
1. Select **Create coupon**. It goes live as soon as its start time passes.
2. To finish it later, select **Save as draft** instead. Buyers can't use a draft. Open it later and select **Save & activate** when it's ready.
The coupon's page opens with the code, a copy button and a **Share this coupon** card. The share link opens your published store with the code already applied. Under **Opens on**, pick where it lands.
```screenshot marketing-growth/create-a-discount-code/05-coupon-detail
alt: The AUTUMN15 coupon page with the Share this coupon card and its copy button
caption: Copy the code or the share link from the coupon's page.
1: 80,30 Share this coupon
```
## Step 7: Test the code as a buyer
1. In a private window, add a covered product to your cart.
2. In the cart, type the code in **Coupon code** and select **Apply**. At checkout, use the **Add promo code** field.
3. Check the saving line and the total.
```screenshot marketing-growth/create-a-discount-code/06-cart-code-applied
alt: The cart on a phone showing AUTUMN15 applied with the saving, a Remove coupon button and the new total
caption: The saving shows on its own line once the code is applied.
frame: phone
```
## Troubleshooting
- **"The coupon was not saved. Check the highlighted fields and try again."**: read the message under each highlighted field. "is already in use. Pick a different code" means another coupon has that code.
- **"Choose at least one product, or save this as a draft"**: pick a product under **Specific products**, or select **Save as draft**.
- **"Invalid coupon"**: the code doesn't exist, or the coupon is a draft.
- **"This coupon has expired"**: the end date has passed. A coupon whose start date is still in the future shows the same message.
- **"This coupon has reached its usage limit"**: the **Total usage limit** is used up. Raise it to allow more uses.
- **"You've already used this coupon"**: the buyer has hit the per-customer limit.
- **"This coupon doesn't apply to anything in your cart"**: none of the cart's items are covered by **Applies to**.
- **"Spend at least [amount] to use this coupon"**: the cart is under the **Minimum purchase**.
- **"This coupon can't be combined with the discount already on your order"**: another saving is already applied and the two don't allow each other under **Combinations**.
- **"This cart has no shipping charge to discount"**: a **Free shipping** code was used on an order with no shipping, such as a digital download.
## FAQ
### Can I change a coupon after buyers have used it?
Yes. Open the coupon and select **Edit**. Past uses stay on their orders; changes apply from the next cart.
### How do I stop a code without deleting it?
Open the coupon's menu and select **Move to draft**. Buyers who type it see "Invalid coupon" until you select **Activate** again.
## Related guides
- [Create an automatic discount](/docs/marketing-growth/create-an-automatic-discount)
- [Create single-use codes](/docs/marketing-growth/generate-bulk-single-use-codes)
- [How discounts combine](/docs/marketing-growth/discount-combinations-and-limits)
- [Track how a discount performs](/docs/marketing-growth/discount-performance)
