Bulk one-time use coupon codes
A one-time use campaign gives you a batch of unique coupon codes that each work for a single purchase. Use it when a shared code won't do: partner and affiliate distributions, email campaigns where every recipient gets their own code, or trigger-based offers such as a free domain with a hosting purchase. Because each code can be redeemed only once, a code that leaks or gets forwarded can't be used again after the first purchase.
You create the campaign once, then add codes to it in two ways. You can generate batches on demand and download them as a CSV, or you can issue codes from your own systems through the API. Both kinds land in the same list, share the same discount and dates, and show up in the same reporting. For a single shared code that many customers can use, see Managing coupon codes.
Codes are not assigned to a customer. Anyone who has a code can redeem it, and Storefront does not send codes to your customers, so you distribute them yourself.
Create a campaign
- Go to Marketing → Coupon Codes and click Create Coupon Code.
- Under Choose Coupon Code Type, select One-Time Use Code, then continue.
- Choose a discount type: Percentage Discount, Fixed-Amount Discount or Set Price. Fixed-amount and set-price discounts are set separately for each currency active on your storefront. You can't change the discount type once the campaign is active, so choose carefully.
- Enter a Campaign Name and the discount value.
- Under Eligibility, choose the TLDs the discount applies to (specific TLDs or all) and whether it covers new purchases, renewals, transfers, or a combination. Choose which products it applies to (any product or specific ones) and whether it covers new purchases, renewals, or both.
- Under Schedule Coupon Code, set a Start Date. It defaults to today. Optionally set an End Date. Without one, the campaign stays active until you pause or delete it.
- Click Create Coupon Code.
You don't enter a number of codes when you create a campaign. The campaign starts with zero codes, and you add them afterwards. Creating the campaign also gives you its Campaign ID right away, so you can start issuing codes through the API without generating a CSV first.
Generate a CSV batch
- Open the campaign and stay on the Overview tab.
- Click Generate Bulk Codes.
- Enter a quantity from 2 to 10,000 and confirm.
Storefront generates that many unique codes, each 10 random letters and numbers, and downloads them to your computer as a CSV. You can generate more batches at any time while the campaign is active. Codes are not case-sensitive.
The CSV has one row per code, with these columns:
| Column | Contents |
|---|---|
| Coupon ID | The campaign name and a sequence number, lowercase with no spaces. Numbering continues from the highest number already issued, so a first batch of 100 is 1 to 100 and the next batch of 50 is 101 to 150. |
| Code | The 10-character code. |
| URL | The redemption link for that code, on your storefront's domain under /redeem/. |
| Type | API or .csv batch, depending on how the code was issued. |
| Status | Issued, Redeemed or Expired. |
| Date of Redemption | Blank until the code is redeemed. |
| Expiration Date | The campaign's end date, or "No end date". |
| Order ID | The order the code was used on. Blank until redeemed. |
You can download the CSV again whenever you need it. Each download shows every code's current status, including codes issued through the API.
View and manage codes
Open the Bulk Codes tab to see every code in the campaign, whether you issued it through a CSV batch or the API. API codes appear as soon as they are generated. Each row shows the code, its status (Issued, Redeemed, Expired or Cancelled), the redemption date, the expiration date and the order it was used on.
Search for a specific code, or filter by status. To export only some codes, select them with the checkboxes and choose Export selected. Export Coupon Codes downloads the whole list.
To invalidate a code you haven't redeemed, for example after a refund, use the menu on its row to cancel it. A cancelled code stops working immediately. You can't cancel a code that has already been redeemed.
Coming soon: Issuing, cancelling and checking codes through the API. The generate codes as CSV batches from the campaign in Storefront Manager is available now.
Manage the campaign
The Overview tab shows the campaign's status, number of codes, Campaign ID, discount type, eligible products, number of uses and its created, start and end dates.
Campaigns have one of these statuses: Draft, Scheduled, Active, Paused or Expired. The coupon list has separate Multi-Use Codes and One-Time Use Codes tabs, so your campaigns appear on the second one.
Editing: click Edit Campaign to change the name, eligible products, dates or discount amount. Changes to an active campaign apply to future redemptions. They don't change orders that already used a code.
Pausing: Pause Campaign stops redemptions without deleting anything. A customer who enters a code from a paused campaign sees the same error as for a code that doesn't exist. Resume the campaign to make its codes work again.
Duplicating: Duplicate Campaign creates a new Draft with the same discount and eligibility and "(Copy)" added to the name. Dates are cleared, so you need to enter new ones. A message confirms the copy and links to it.
Deleting: you can delete a Draft, Paused or Expired campaign. Pause an Active or Scheduled campaign first. Deletion is permanent. All unredeemed codes, whether from a CSV batch or the API, stop working, and the campaign no longer appears on your storefront.
When a campaign's end date passes, or you cancel it, every unredeemed code expires immediately and returns an error at checkout.
Track performance
The Performance tab combines CSV and API codes in one view: total codes generated, redeemed, available and expired, plus the total discount value issued and the revenue from redeemed codes. Total generated always equals the issued, redeemed and expired codes added together, plus any you cancelled. The tab is available for Active, Scheduled and Expired campaigns. Click Get Detailed Reports for more detail. The same figures can be exported as a CSV.
What your customers see
Each code has a redemption link. When a customer opens it, they land on your storefront with the discount already applied, so they don't need to type anything. Search results show which TLDs and products the discount covers. A TLD discounted to $0 shows a "Free" tag. Any other discount shows a different tag, so customers can tell it apart from your regular sale tag.
Customers can open the link or enter the code as often as they like before buying. A code is only used up when the purchase completes. If the code has expired, been cancelled or already been redeemed, the customer sees an error message.
If a promotional price and a code both apply to the same product, the customer gets whichever price is lower.
Troubleshooting
A customer says their code doesn't work.
Check the campaign's status. Codes from a Scheduled campaign don't work before the start date, and codes from a Paused or Expired campaign return an error. Then check the code's status on the Bulk Codes tab. A Redeemed or Cancelled code can't be used again. Also confirm the items in the customer's cart are within the campaign's eligible products.
I can't delete a campaign.
Active and Scheduled campaigns can't be deleted directly. Pause the campaign first, then delete it.
I can't change the discount type.
The discount type locks once the campaign is active. Create a new campaign if you need a different type. Duplicating won't help, because a copy keeps the original's discount type.
I generated a batch but the codes don't appear in my CSV from last week.
Each download reflects the full list as it stands now. Download the CSV again from the campaign to get every batch.
A code I issued through the API is missing from my own records.
Storefront returns the plain-text code only once, when it's generated. If you didn't save it, look the code up by its code ID, or cancel it and issue a new one.
Related articles
- Managing coupon codes for single shared codes
- Setting Up Promotional Pricing in Storefront for storefront-wide sales
- Selling in Multiple Currencies
- Reports
Updated about 1 hour ago