Guide
Create many unique discount codes at once
One Shopify discount can carry many codes, and up to 20 million unique codes are allowed per store. Hand-E Discounts generates up to 200 codes per campaign on the Starter plan or 1,000 on the Pro plan with your own prefix, creates them as one Shopify discount and gives you a CSV file.
One code for everyone gets passed around
A shared code like NEWSLETTER10 is quick to set up. With the limit to one use per customer, every email address or phone number can redeem it once. But if the code ends up on a coupon site, anyone who enters a new address can use it.
Unique codes solve this: every recipient gets their own code that can be redeemed once. For printed coupon cards at a trade show, an influencer campaign with its own prefix or a welcome series in your newsletter, you quickly need several hundred of them.
Shopify is built for this: one discount can carry many codes that share active dates, value and conditions. The question is how the codes are created, whether they're easy to read, and how they get cleanly into your email marketing tool or to the print shop.
| Shopify native | With Hand-E Discounts | |
|---|---|---|
| Many codes on one discount | via the Admin API, up to 250 codes per call | up to 200 (Starter) or 1,000 (Pro) per campaign |
| Prefix | free, if you generate the codes yourself | your own prefix per campaign |
| Easily confused characters | depends on who generates the codes | no 0 and O, no 1, I and L in the random part |
| CSV file | put it together yourself | download with the codes actually created |
| Coding required | yes, for the API route | no |
What works without an app
For one code or a few, the admin is enough. For several hundred, it becomes a question of coding or tooling.
- Discount form in the admin: You type in a code or generate a random one with a button. Then you set active dates, minimum purchase requirements, maximum discount uses and combinations.
- One shared code limited per customer: fine if it doesn't matter that the code gets around, for example as a thank-you to all subscribers.
- Admin API: The discountRedeemCodeBulkAdd mutation adds up to 250 codes per call to a discount and works asynchronously. For 1,000 codes that's at least four calls, plus checking which codes were actually created. That's a route for developers.
- Upper limit: According to the help center, a store can have 20,000,000 unique discount codes in total. Once the limit is reached, you have to delete existing codes.
- Shopify Forms: The app can attach a discount to a signup form for email, SMS or WhatsApp marketing.
- Apps in the Shopify App Store: There are several code generators. Compare prefix, character set, codes per run and whether the CSV file contains nothing but real codes.
How to generate a code campaign in Hand-E Discounts
A campaign is one Shopify discount with many codes. You set up the discount once, and the app generates the codes for it.
- Choose the Bulk codes discount type.
- Set prefix and number of codes, for example ANNA with 120 codes. The Starter plan allows up to 200 codes per campaign, the Pro plan up to 1,000.
- Set up the discount: percentage or fixed amount, on the entire order or on a selection.
- Decide on Each customer can redeem only one code and Each code can be redeemed only once. For personal codes and coupon cards, both make sense.
- Generate the codes and download the CSV file. It contains the codes Shopify actually created, nothing else.
- Import the file into your email marketing tool or send it to the print shop for the coupon cards.
Worked through: three campaigns for one fall season
Three promotions, three campaigns, each with its own prefix. Because each campaign is its own Shopify discount, Shopify's Sales by discount report keeps the promotions apart.
| Campaign | Prefix | Codes | Discount | Fits in |
|---|---|---|---|---|
| Newsletter welcome | HELLO | 180 | 10% off the order | Starter (up to 200) |
| Influencer Anna | ANNA | 120 | 15% off the order | Starter (up to 200) |
| Trade show coupon cards | EXPO | 750 | $5 off the order | Pro (up to 1,000) |
Limits and pitfalls
- At most 200 codes per campaign on the Starter plan and 1,000 on the Pro plan. For 2,400 coupon cards you create three campaigns on the Pro plan, each its own discount.
- Without Each code can be redeemed only once, a code can be used several times. For coupon cards you usually don't want that.
- According to Shopify, customers can use at most five product or order discount codes and one shipping discount code per order. Whether your code applies alongside other discounts is set on the Combinations card.
- Avoid special characters in the prefix. Shopify advises against them so that links with a discount code work properly in checkout.
- The codes remain after you uninstall the app. They're regular Shopify discounts that you end in the admin when the promotion is over.
- Keep the CSV file to the people who need it. Whoever has the list has every code.
Common questions
Can one Shopify discount have multiple codes?
Which characters appear in the random part of the bulk codes?
Why does the CSV file contain fewer codes than I requested?
How many discount codes can a Shopify store have in total?
Related problems
Creating discounts takes too many clicks
On the Pro plan of Hand-E Discounts you describe a discount in one sentence. The AI assistant looks up the matching products and collections, suggests the complete discount, and creates it after your click, inactive until you remove the end date in the admin.
Read moreThe discount is set up but does not apply at checkout
When a Shopify discount does not apply, start with its own conditions and with Shopify's rules for how discounts interact: combinations, minimum purchase requirements, customer eligibility, active dates, and the limit of 25 active automatic discounts. Walk through the points in order, then check the result with a test order.
Read moreAn order value discount needs several tiers
Shopify gives an order discount one minimum purchase amount, which means one tier. Natively you build several tiers as separate automatic discounts, and Shopify applies the one with the bigger advantage. Or you set up one Cart value tiers discount in Hand-E Discounts.
Read more