How long does code generation take?
Discount Magic creates small batches of discount codes in seconds and the largest in a few hours, and you can keep working while a batch generates.
Last updated 6 days ago
Code generation in Discount Magic takes a few seconds for small batches and several hours for the largest ones.
Which plans include bulk code generation
Typical times
Discount Magic shows an Estimated time to save codes before you generate. These are the estimates for some example batch sizes:
Pasted and uploaded codes (Pro plan) take about as long as generated ones.
These times are estimates. The actual time can vary with how busy Shopify's servers are, so a batch may finish a little sooner or later than estimated.
Why code generation takes time
The time is set by Shopify. Shopify accepts new codes for a discount in groups of up to 250, and works through those groups one after another. That works out to about 50 codes per second.
Discount Magic is built to create codes as fast as Shopify allows: it sends each group the moment Shopify is ready for the next one. Shopify's limit applies to every app, so no app can create the codes for a discount faster than this.
The time depends on the number of codes, not on the code format.
Several batches at once
You can create several batches without waiting for each one to finish. Batches for the same discount are created one at a time, so Discount Magic queues the others and starts each one automatically. A queued batch shows as Pending on the discount's page. Batches for different discounts are created at the same time.
While you wait
You don't need to keep the page open. Codes keep being created in the background.
You can create your next batches straight away. Discount Magic queues each new batch and starts it as soon as the previous one finishes, so queuing them now gets them all created soonest.
On the discount's page, the Discount code batches section shows each batch's progress and the time remaining.
Each code is ready to use as soon as Shopify has created it, so the first codes can be used before the whole batch finishes. Whether a code works at checkout still depends on the discount's settings. For example, a discount set to start in the future won't work until its start date.
If no codes have been created for 10 minutes, the batch shows No recent progress. Code creation usually resumes on its own. If it doesn't, the batch is marked Stalled and you can retry it. See Batch statuses explained.
Large batches
For a batch of more than 100,000 codes, Discount Magic asks you to confirm with Generate a large batch of codes? and shows the estimated time before it starts.
Frequently asked questions
How long does it take to create 100,000 discount codes in Shopify?
About 35 minutes with Discount Magic. Shopify creates roughly 50 codes per second for a discount.
Can I make code generation faster?
No. Discount Magic already creates codes as fast as Shopify allows. The speed is set by Shopify, which takes the codes for a discount in groups of up to 250 and works through them one group at a time, and that limit applies to every app. Splitting the codes into several batches on the same discount doesn't help, because those batches are created one at a time.
Can customers use codes before the batch finishes?
Yes. Each code is ready to use as soon as Shopify has created it, as long as the discount's settings allow it. For example, the discount must be active and past its start date.
Do I need to keep Discount Magic open while codes generate?
No. Codes keep being created in the background, and you can check progress on the discount's page at any time.
Related articles
Was this helpful?
More in Discount batches
Discount code batchesImporting discount codesAdding more codes to a batchAuto-replenishStill need help? Ask the team