> For the complete documentation index, see [llms.txt](https://docs.giftcardfactory.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.giftcardfactory.app/bulk-operations/discount-codes-bulk-create.md).

# Discount Codes Bulk Create

The **Bulk Create Discount Codes** feature generates a batch of generic Shopify discount codes that share the same rules. The codes are not tied to specific customers — you distribute them however you want (social media, print, influencers, partners, QR codes, etc.).

> **Bulk Create vs. Bulk Send:** **Bulk Create** generates codes only — you handle delivery yourself. [**Bulk Send**](/bulk-operations/discount-codes-bulk-send.md) generates codes *and* sends a personalized email to each recipient. Use Bulk Create when you don't have a recipient list.

### 💡 **Common Use Cases**

* **Social media giveaways** — share codes on Instagram, TikTok, etc.
* **Influencer partnerships** — assign one code per influencer to track performance.
* **Print and packaging** — flyers, postcards, package inserts, business cards.
* **In-store and event handouts** — drive online traffic from physical touchpoints.
* **QR codes** — embed codes in QR-linked landing pages.
* **Partner / affiliate programs** — give partners codes to distribute downstream.

### **📝 Form Fields Explained**

<figure><img src="/files/OE64zI1Kp8cIUdC6cWy5" alt=""><figcaption></figcaption></figure>

#### Top section

* **Title** (required): Internal name for the batch in Shopify Admin → Discounts. Be descriptive — you'll have many discount campaigns.
* **Count** (required): Number of codes to generate. Minimum 1.

#### Discount Value

* **Discount Type**: **Fixed amount** (e.g. $10 off, in your store currency) or **Percentage** (e.g. 20% off).
* **Value**: The discount amount or percentage.
* **Usage Type**: Restrict the discount to specific **collections** or specific **products**. If nothing is selected, the discount applies to all products and collections (a banner confirms this).
* **Purchase Type**: **One-time purchase**, **Subscription**, or **Both**.
* **Once Per Order** (Fixed amount only): If checked, the fixed discount is applied once per order. If unchecked, it is applied to each eligible item in the order.

#### Code

* **Prefix** (optional, up to 4 characters): A fixed prefix added to every generated code.

#### Eligibility

Choose who can use these codes:

* **All customers**
* **Specific customer segments** — select one or more Shopify customer segments.
* **Specific customers** — select individual customers using the customer picker.

#### Minimum purchase requirements

* **No minimum requirements** (default).
* **Minimum purchase amount** — customer must spend at least this amount (in store currency).
* **Minimum quantity of items** — customer must purchase at least this many items.

#### Usage limits

* **Limit number of times each discount code can be used in total** — when checked, set a per-code total usage limit.
* **Limit to one use per customer** — when checked, each customer can redeem the code only once.

#### Combines with

Controls Shopify's discount stacking rules:

* **Product discounts**
* **Order discounts**
* **Shipping discounts**

Each option independently determines whether this code can be combined with that discount type.

#### Active dates

Set when the codes are valid. Click **From** or **To** to open a modal where you choose timezone, date, and time. Both start and end are stored with timezone, so they behave correctly across markets.

### **📤 Internal Delivery Options**

These options control how *you* (the merchant) receive the generated codes:

* **Allow discount codes data download**: Creates a download link in the **Bulk Operations** section. The link expires after **3 days** and is accessible to anyone with access to the app.
* **Send internal email with all generated discount codes**: Sends the full list of codes to an email address you specify. You can enter multiple addresses separated by a comma.

You can enable either option, both, or neither. We recommend at least one — otherwise you have no easy way to retrieve the codes after the operation runs.

### **▶️ Running the Operation**

Two buttons are available at the bottom of the form:

* **Create now**: Runs the operation immediately.
* **Schedule**: Runs the operation at a future date and time you select. The codes only become *usable* once their **Active dates → From** is reached, even if the operation runs earlier.

### **FAQ**

**Can I choose the exact code text?**\
No — Shopify generates the code body automatically. You can add a fixed **Prefix** of up to 4 characters, but the rest of each code is random.

**Can I edit codes after they are created?**\
No, individual codes cannot be edited from the app. You can disable codes in Shopify Admin → Discounts and create a new batch with the corrected settings.

**Can the operation create codes for a future launch?**\
Yes — either schedule the operation for the future, or run it now and set **Active dates → From** to your launch date.

**My download link expired — how do I get the codes?**\
The download link is valid for 3 days. If it expired and you didn't enable the internal email option, the individual codes still exist in Shopify Admin → Discounts under your batch title. Contact us at **<support@code57.pl>** if you need help.

**How do refunds affect usage limits?**\
Shopify restores a code's usage count when an order using it is refunded, so the customer (or another customer) can use the code again within the configured limits.
