How to create a wholesale discount code
A wholesale discount code works only for the customers you pick. This guide walks you through creating one and explains each field.
[!INFO] Codes are created as real Shopify discounts. They also show in Shopify's Discounts page and in your Shopify reports. You can have up to 250 codes per store.
Create a code
-
Click Create code
Open Discounts & Shipping › Discount Codes and click Create code in the row under the tabs. This opens Create discount code.
-
Name the code and choose what it does
Enter a code or click Generate, pick the Type, and set the value.

-
Choose who can use it
Under Eligibility, tick Customer groups and/or Customers with specific tags, or tick Selected customers, then pick them. A code can use groups and tags, or selected customers, but not both. At least one is required. Codes don't offer the other eligibility options, such as All customers.

-
Save
Click Save code. The code is created in Shopify. If the name is already used in your Shopify store you see "That code is taken. Choose another code" and nothing is saved.
Fields
Discount code
| Field | What it does |
|---|---|
| Discount code | What buyers type at checkout. Letters, numbers, dashes, dots and underscores, no spaces, up to 50 characters. Not case-sensitive. Must be unique in your store. |
| Generate | Makes a random 8-character code that avoids look-alike characters such as 0/O and 1/I. |
| Status | Active or Draft. A draft is switched off in Shopify and nobody can use it. |
Discount
| Field | What it does |
|---|---|
| Type | Products in the cart, Entire order or Free shipping. After saving you can switch between the two money types, but not between a discount and free shipping. |
| Value type | Percentage (above 0, up to 100) or Fixed amount (above 0, in your store currency). Not used for free shipping. |
| Applies to (products type only) | All products, Collections, Specific products or Specific variants. Choose one kind. Product tags are not offered. |
| Apply once per order (fixed amounts) | Products type with a fixed amount only. Off: the amount comes off each item. On: it comes off once for the whole order. |
For Entire order, the discount is taken from the order subtotal at wholesale prices.
Free shipping codes
| Field | What it does |
|---|---|
| Countries | All countries or Specific countries. |
| Country codes | For specific countries: two-letter codes separated by commas, for example US, CA, MX. |
| Exclude shipping rates over a certain amount | Tick it, then set Highest rate that is free. Rates above that amount are not made free. Below it, wholesale rates and your normal rates become free. |
Eligibility
Groups and tags are turned into a Shopify customer segment that the code is limited to. Customers who join the group or get the tag later can use the code without you doing anything. Pick tags from your store's tags or type a new one (Search or add tags), up to 50. With Selected customers (up to 100, searched by name or email), only those customers can use the code. Anyone else who types the code gets Shopify's normal "not valid" message.
Minimum purchase
| Requirement | What it does |
|---|---|
| No minimum | The code works on any cart. |
| Minimum order value | The cart must reach this amount. |
| Minimum quantity of items | The cart must have at least this many items (whole number). |
Usage limits
| Field | What it does |
|---|---|
| Limit total uses | Tick it, then set Total uses (1 or more). The code stops at that number across all buyers. |
| Limit to one use per customer | Each customer can use the code once. |
Combinations, active dates and share
- Combinations: choose which other Shopify discounts this code may combine with. See How discount codes work with wholesale prices.
- Active dates: optional start and end date and time in your store's time zone. Leave the start empty to start right away. Tick Set end date to add an end, which must be after the start.
- Share: tick Share a link that applies the code to get a link made of your store address,
/discount/and the code. Click Copy and paste it into emails or your wholesale catalog. When a buyer opens the link, Shopify applies the code to their cart.
The Summary panel on the right describes the code as you type, for example "10% off all products" or "Minimum order $1,500".

The Discount Codes list
| Column | What it shows |
|---|---|
| Code | The code. Click it to edit. |
| Status | Active, Scheduled, Expired or Draft. |
| Discount | A short summary such as "10% off products" or "Free shipping · min. $1,500". |
| Eligibility | Who can use it. |
| Used | Times used, for example "12 / 100" (or "12 / ∞"). Shows "—" if Shopify can't be reached. |
| Active dates | "Always", or "from … to …" in your store's time zone. |
Use the tabs All, Active, Scheduled and Expired, Search codes, and the filters Status, Active dates, Eligibility, Type and Sort by (Newest first, Code A to Z, Start date, Most used). Import and Export sit in the row under the tabs, next to Create code; see How to export your data.
On a saved code, Duplicate makes a Draft copy with a new code (the original name plus "-COPY"). Delete removes it: buyers can't use it any more and past orders keep their discount. You can also tick several codes, click Delete and confirm Delete codes. Deleting cannot be undone.
Worked examples
- Free freight for distributors over $1,500. Type Free shipping, All countries, group "Distributors", Minimum order value 1500.00. Code
FREIGHT1500. - 10% off Soap for hotels, once per customer. Type Products in the cart, Percentage 10, Applies to Collections › Soap, group "Hotels", Limit to one use per customer.
- $50 off a big order. Type Entire order, Fixed amount 50.00, Minimum order value 1000.00, Limit total uses 100.
A discount with that name already exists in your Shopify store, possibly one you made yourself. Choose another name. Codes are not case-sensitive, so Summer and SUMMER are the same.
The app could not reach Shopify to read the count. Reload the page. Your codes still work at checkout.