# Create a discount code

> Make a code customers type at checkout for money off, a percentage off, free shipping or buy X get Y. Limit who can use it and how often, schedule it, and share it as a link that applies itself.

Help Centre / Marketing - Updated 2 November 2026

A discount code is a word like `SUMMER15` that a customer types in the cart or at checkout to get money off. You choose what it takes off, what it applies to, who can use it and for how long. Discounts are on every plan.

If you want money off to apply by itself, with no code to type, make an automatic discount instead. See [Automatic discounts](https://shoprocket.io/help/automatic-discounts.md).

## Create a code

1. In your dashboard, go to **Discounts**, under **Marketing**, and click **Add discount**.
2. Of the two choices at the top, pick **Discount code** ("Shoppers enter a code at checkout").
3. Enter a **Name**. Customers see it at checkout, next to the money it takes off, so make it say what the offer is, for example "Summer sale 15%".
4. Enter the **Code**. This is what customers type. Capital letters don't matter, so `summer15` and `SUMMER15` are the same code.
5. Under **Value**, choose the **Discount type** and how much it takes off.
6. Choose what it **Applies to**, add any **Requirements**, and set the **Schedule** and **Usage limits** if you need them.
7. Click **Create discount**.

![A discount code being edited: Discount code chosen, the name Summer sale 15% and the code SUMMER15, 15% off the entire order, with the Summary card on the right](https://shoprocket.io/img/help/discount-codes/new-code.webp)

The **Summary** card on the right says in plain words what the discount will do, with an example cart worked out from your own products, so you can check it before you save. It also warns you about a choice that would stop the code working, such as an end date in the past.

You can add a private **Internal note** under the code, for your team only.

## What a code can take off

| Discount type | What it does |
|---|---|
| **Percentage** | A percent off, from 1 to 100. Tick **Cap the discount at a maximum amount** to set the most it can take off one order. |
| **Fixed amount** | An amount of money off, in your store's currency. |
| **Free shipping** | Removes the shipping charge for the whole order. It can't be limited to some items. |
| **Buy X get Y** | When the cart has enough of what you choose, the customer gets other items free or cheaper. |

### What it applies to

For a percentage or fixed amount, **Applies to** sets what the discount is worked out on:

- **Entire order**: the order subtotal. Click **Change** under it to work it out on the **Grand total (incl. tax)** or the **Shipping cost** instead.
- **Specific products**: only those products in the cart are discounted.
- **Categories**: only products in those categories are discounted. Click **Add products too** or **Add categories too** to mix both.

Gift cards are never discounted, whatever you choose.

### Buy X get Y

Choose **Buy X get Y** as the discount type to reward a customer for buying a set amount:

1. Under **Customer buys**, choose the **Trigger**: **Minimum quantity** (a number of items) or **Minimum spend** (an amount), and which items count.
2. Under **Customer gets**, enter the **Quantity** and choose which items they get, and **At a discounted value**: **Free**, **Percentage off** or **Amount off each**.
3. To stop a big cart from getting the reward over and over, tick **Limit uses per order** and enter the **Maximum uses per order**.

The cheapest items that qualify are the ones discounted. For example, "buy 2 bags of coffee, get a mug free" is a trigger of 2 items from the Coffee category and a reward of 1 item from Mugs at **Free**.

## Requirements

Click **Add requirement** to add any of these. A code only applies while every requirement is met.

- **Minimum spend**: the cart must reach an amount. When the code is limited to some products, the spend counts only those products.
- **Minimum items**: the cart must hold a number of items.
- **First-time customers only**: only for customers who haven't paid for an order with you before.
- **Cart must contain a product** or **Cart must contain a category**: the cart must hold one of the products or categories you pick.

To remove a requirement, click the remove button beside it.

## Who can use it

Under **Who can use it**, leave **Everyone**, or choose **Customers with tags** and pick one or more customer tags. A code limited to tags only works for a customer who is signed in to their account and has one of those tags. A guest never qualifies. See [Customer tags and segments](https://shoprocket.io/help/customer-tags-and-segments.md). Limiting a code to tags needs the **Business** plan or above. On a lower plan, a code already limited to tags can't be used.

## Schedule and usage limits

- **Schedule**: set when the code **Starts** and **Ends**. Leave **Starts** blank to start straight away, and **Ends** blank for no end date. Times are in your store's time zone.
- **Usage limits**: click **Set limit**, then enter the **Total uses** across all customers and the **Uses per customer**. Leave either blank for no limit. A customer is recognised by their account, or by their email address when they check out as a guest.

Once a code has reached its total uses, it stops working, and the **Discounts** list shows it as **Fully used**.

## Combining with other discounts

A cart can only hold one code. Under **Combining with other discounts**, choose what happens when an automatic discount also applies:

- **Doesn't combine**: the customer gets whichever saves them more, and the cart tells them which one it kept.
- **Combines with automatic discounts**: the code comes off too, worked out on the price after the automatic discount. This only happens when the automatic discount also allows codes on top.

## How customers use a code

Customers click **Add a discount or gift card** in the cart, or **Add discount or gift card** at checkout, type the code and apply it. The order summary shows your discount's name and the amount taken off. If the code can't be used, they are told why, for example that it has already been used.

### Share a link that applies the code

Once a code is saved, open it again. The box at the top has a **Discount link**. Anyone who opens the link lands on your shop with the code already in their cart, so there is nothing to type. It works on your Shoprocket shop and on any page of your own site that has the Shoprocket embed. Use it in emails, social posts and messages.

![The box at the top of a saved discount code: Not announced anywhere yet, the Add a banner and Offer it in a sign-up pop-up links, and the Discount link with its Copy button](https://shoprocket.io/img/help/discount-codes/discount-link.webp)

The same box has **Add a banner**, which starts a banner announcing this discount, and **Offer it in a sign-up pop-up**. See [Banners and pop-ups](https://shoprocket.io/help/promo-bars-and-popups.md).

## Manage your codes

The **Discounts** list shows every discount with its code (or **Automatic**), its value, how many times it has been used, and its status:

- **Active**: working now.
- **Scheduled**: switched on, but its start date has not come yet.
- **Expired**: its end date has passed.
- **Fully used**: it has reached its total uses.
- **Inactive**: switched off.

![The Discounts list with codes and automatic discounts, their values, how many times each was used, and statuses including Active, Scheduled and Inactive](https://shoprocket.io/img/help/discount-codes/discounts-list.webp)

Filter the list by **Status** or **Method**, or search it. To switch codes off or on in bulk, tick them and click **Disable** or **Enable**. A switched-off code stops working at checkout straight away. To switch off one code, open it and use the status switch beside **Save discount**.

To copy all your discounts to a spreadsheet, click **Export**. To add many at once, see [Import discount codes](https://shoprocket.io/help/import-discount-codes.md).

Orders keep the discount they were placed with, so editing or deleting a code never changes an existing order.

## Related

- [Automatic discounts](https://shoprocket.io/help/automatic-discounts.md)
- [Run a sale for a set time](https://shoprocket.io/help/scheduled-sales.md)
- [Import discount codes](https://shoprocket.io/help/import-discount-codes.md)
- [Free shipping](https://shoprocket.io/help/free-shipping.md)
- [Gift cards](https://shoprocket.io/help/gift-cards.md)

[Open Discounts in your dashboard](https://app.shoprocket.io/go/discounts)

---

- HTML version: https://shoprocket.io/help/discount-codes
- Language: English (en)
- Also in: [العربية](https://shoprocket.io/ar/help/discount-codes.md), [Deutsch](https://shoprocket.io/de/hilfe/rabattcode-erstellen.md), [Ελληνικά](https://shoprocket.io/el/help/discount-codes.md), [Español](https://shoprocket.io/es/ayuda/crear-un-codigo-de-descuento.md), [Français](https://shoprocket.io/fr/aide/creer-un-code-de-reduction.md), [עברית](https://shoprocket.io/he/help/discount-codes.md), [हिन्दी](https://shoprocket.io/hi/help/discount-codes.md), [Bahasa Indonesia](https://shoprocket.io/id/bantuan/kode-diskon.md), [Italiano](https://shoprocket.io/it/aiuto/creare-un-codice-sconto.md), [日本語](https://shoprocket.io/ja/help/discount-codes.md), [Lietuvių](https://shoprocket.io/lt/pagalba/nuolaidos-kodo-kurimas.md), [Norsk](https://shoprocket.io/nb/hjelp/lag-en-rabattkode.md), [Nederlands](https://shoprocket.io/nl/hulp/een-kortingscode-aanmaken.md), [Polski](https://shoprocket.io/pl/pomoc/tworzenie-kodu-rabatowego.md), [Português](https://shoprocket.io/pt/ajuda/criar-um-codigo-de-desconto.md), [Română](https://shoprocket.io/ro/ajutor/creeaza-un-cod-de-reducere.md), [Русский](https://shoprocket.io/ru/help/discount-codes.md), [ไทย](https://shoprocket.io/th/help/discount-codes.md), [Türkçe](https://shoprocket.io/tr/yardim/indirim-kodu-olusturun.md), [中文](https://shoprocket.io/zh/help/discount-codes.md)
