Craftshift logo

How to create bulk discount codes for Shopify

How to create bulk discount codes for Shopify

Shopify bulk discount codes let you generate hundreds or thousands of unique, single-use codes in one go. They are how influencer programs, loyalty rewards, and wholesale gates work without manually creating one promo at a time in the admin.

Shopify’s native admin only lets you create one discount code at a time through the UI. To create them in bulk, you need either a CSV import via the Shopify CLI, an app, or a code generator that produces a clean CSV ready to upload.

This guide covers when to use bulk codes, how to generate unique codes that do not collide, the import workflow, naming conventions, and how to track which code drove which sale.

In this post

When to use bulk codes

Bulk codes solve three problems where a single shared promo code does not work.

Influencer and creator programs

Each creator gets their own code (e.g. SARAH15) so you can attribute sales to them and pay commissions. The code is shared, but the prefix is unique. You generate one code per creator, not bulk unique codes.

Loyalty and reward redemption

When a customer redeems points or hits a tier, you issue a single-use code only they can use. These need to be unique and tied to one customer or order. Without uniqueness, codes get shared on coupon sites within an hour.

Wholesale and B2B gating

Bulk single-use codes can act as a soft gate to wholesale pricing without setting up a separate B2B store. Each retailer gets a code that applies their negotiated discount once. For larger programs, Shopify Plus B2B is the better path.

Generating unique codes

A “unique” code is just a random string with enough entropy that collisions are unlikely. The basics:

Our free Discount Code Generator produces clean, unique codes with optional prefixes and downloads them as a CSV ready for Shopify import. Set the count, set the prefix, hit generate.

Avoid sequential codes like VIP001, VIP002. They are guessable and someone will try every variant the moment one leaks.

Shopify admin import workflow

Shopify supports bulk discount code creation natively, but the entry point is hidden inside an existing discount.

  1. In your Shopify admin, go to Discounts.
  2. Create a new discount (amount off, percentage off, free shipping, or BOGO).
  3. Configure the discount value, eligibility, and usage limits.
  4. Save the discount as the “parent” code with a placeholder name.
  5. Click into the discount, find the Generate codes option, and either generate inside Shopify or import a CSV.

Each child code inherits the discount logic from the parent. You can have 5,000 unique codes that all give 15 percent off site-wide, single use, expiring in 30 days. The child codes are managed as a single discount in your admin.

If you are already managing product imports via CSV, the Shopify product CSV import guide covers the format conventions Shopify uses across the platform. Discount CSV follows the same patterns.

Code formats and naming conventions

Naming conventions are the difference between a clean reporting setup and a year-end audit nightmare.

Use caseFormatExample
InfluencerNAME + percentSARAH15, MIKE20
LoyaltyLOYAL- + randomLOYAL-A8K3X9
WholesaleWS- + retailer IDWS-ACME-7F2D
SeasonalSEASON + yearSUMMER26, BF26
Win-backBACK- + randomBACK-9X2K4P

Document the convention in a shared sheet. Anyone on your team should be able to look at a code in an order and know which campaign it belongs to without opening the admin.

Tracking code performance

Shopify’s discount report shows uses, revenue, and orders per discount. Inside a parent discount with bulk child codes, you can drill into individual code usage.

For more granular analysis, export the orders CSV and pivot by discount code. You will see which codes drove the highest AOV, which influencers actually move product, and which loyalty tiers redeem at all.

Pair codes with UTM parameters on the link you give the influencer. The UTM tracks the click, the discount code tracks the conversion. Together they tell you the funnel from impression to sale.

For variant-heavy stores, attribution gets fuzzy when shoppers redeem on a specific color or size. The variant images guide covers how variant URLs interact with discount tracking.

Expiration and usage limits

Bulk codes without limits are a liability. Three settings to lock down on every batch:

Add a minimum order value where it makes sense. A $10 off code on a $12 order kills your margin. Tie minimums to your AOV using the ROAS Calculator to model the impact before you launch the batch.

Bulk CSV upload step by step

If you generate codes outside Shopify (recommended for full control), the import flow is straightforward.

  1. Generate your codes with the Discount Code Generator. Download the CSV.
  2. The CSV needs one column: code. One code per row, header on row 1.
  3. In Shopify admin, create or open the parent discount.
  4. Choose Import codes, select the CSV.
  5. Confirm the count and submit.

For very large batches (10,000+ codes), use the Shopify GraphQL Admin API discountRedeemCodeBulkAdd mutation. This is the fastest path and avoids any UI timeouts.

Stores running combined catalog structures should also check the combined listings guide before launching wholesale codes. The way you split SKUs affects how a discount applies across grouped products.

Want to make codes scannable in print or packaging? Pair each code with a QR using our free QR Code Generator. The QR encodes the URL and the code together so customers do not have to type anything.

FAQ

How many bulk discount codes can Shopify handle?

Shopify supports up to 250,000 discount codes per shop on standard plans. Plus stores have higher limits. A single parent discount can hold tens of thousands of child codes.

Can I create bulk discount codes without an app?

Yes. Shopify natively supports bulk code generation and CSV import inside any discount. You only need an app if you want extra workflow features like automatic distribution.

What is the best length for a discount code?

8 to 12 characters. Long enough to avoid collisions and guessing, short enough to type without errors. Avoid characters that look alike (O vs 0, I vs 1).

Can bulk codes be combined with other discounts?

Shopify lets you choose stackability per discount. Bulk codes inherit that setting from the parent. By default, a customer can only use one code per order.

How do I delete bulk discount codes?

Delete the parent discount. All child codes are removed at once. There is no per-code delete in the UI for bulk batches, only via the API.

Do bulk discount codes work in Shopify checkout extensibility?

Yes. Bulk codes are standard Shopify discounts and apply at checkout the same way single codes do, including in extensibility-based checkouts on Plus.

Can I export which customer used which code?

Yes, via the orders export. Each order CSV row includes the discount code applied. Pivot by code to see customer mapping.

Generate your first batch with the Discount Code Generator, then install Rubik Variant Images from the Shopify App Store to make sure shoppers see the right product when they redeem.

Our Shopify Apps

Smart Bulk Image Upload

Bulk upload product images from Google Drive & save time!

Rubik Variant Image & Swatch

Show only relevant variant images on your product pages.

Rubik Combined Listings Swatch app

Rubik Combined Listings

Link separate products as variants with beautiful swatches

CS – Export Product Images

Bulk export product images by vendor, collection or status

Blog Posts