Skip to content

Generate or import thousands of unique discount codes

Generate a batch of single-use codes for a mailing, a print insert or a giveaway, with your own prefix and length, or import codes you already have from a text file. Every code shares the same rules, dates and limits.

Codes
2,500
Prefix
VIP-
Uses
1 each
  • VIP-7KQ2XD
  • VIP-M9T4PA
  • VIP-3HWZ8C
  • VIP-Q6RN2F
  • VIP-B8YK5T
  • VIP-X2LD9M

The problem

A mailing, a print insert or a giveaway needs a unique, single-use code for every person: hundreds or thousands of codes that must all carry the same value, rules and dates. Making and checking them by hand doesn’t scale, and one shared code ends up on coupon sites.

How diex solves it

  • Generate the codes from a count, a prefix and a length, or import a text file of codes you already have.
  • Every code in the campaign shares one value and one set of rules: percentage, fixed amount, free shipping or buy X get X.
  • Usage limits, including one use per customer, stop a leaked code from turning into a storewide sale.

What you get

  • Generate or import

    Pick how many codes, a prefix and a length, or upload a text file of codes (up to 1 MB) from a partner or an older system.

  • Four discount types

    Fixed amount, percentage, free shipping to the countries you choose, or buy X get X.

  • Limits that stop sharing

    Limit total uses and one use per customer so a leaked code does not become a storewide sale.

  • Rules for the whole batch

    Minimum purchase requirements, active dates and combinations are set once for every code in the campaign.

How to set it up

  1. 1

    Create a bulk campaign and choose generate or import.

  2. 2

    Pick the discount type, value and what it applies to.

  3. 3

    Set minimum requirements, usage limits and active dates.

  4. 4

    Create the codes. They appear in your Shopify admin, ready to send.

Step-by-step guide in the help center

Common uses

Email and SMS campaigns
Give every subscriber their own code so you can see which segment converted.
Print inserts and events
Print one unique code per package or ticket, each usable once.
Partner programs
Import codes a partner already distributed and honor them in your store.

Questions

What format does the import file use?

A plain text file with one code per line, up to 1 MB. Codes must not already exist in your store.

Are the codes real Shopify discount codes?

Yes. The codes are created in your Shopify admin and work everywhere Shopify discount codes work.

Related articles

Run the promotions you actually want to run

Install diex from the Shopify App Store. One plan at $29.99 a month, billed by Shopify.