Skip to content
Get started

Generate codes

Select a discount, then choose Generate codes. The form creates a job: a set of unique codes that CodeBulk imports into the discount in the background.

Field Values Default
Count 1 to 1,000,000 1
Charset Alphabetic (A–Z), Numeric (0–9) or Alphanumeric (0–9 and A–Z) Alphanumeric
Length 2 to 20. Counts the random characters only, not the prefix, suffix or job ID 8
Prefix Optional, up to 15 characters empty
Suffix Optional, up to 15 characters empty
Include Job ID (recommended) On or off on
Title Up to 100 characters, for your reference the discount’s title and the job ID

The Example beside the form shows a sample code built from the current settings. Reset puts the fields back to their defaults.

Each code is prefix + random characters + job ID + suffix, all in uppercase. The codes in one job are always unique: CodeBulk keeps drawing until it has as many distinct codes as you asked for.

The job ID is the number of sets your store has created, written in base 36: the first job is 0, then 1, 2 and so on.

A job can use at most half of all the possible codes for its length and charset. For example, 4 numeric characters allow up to 5,000 codes. See How many codes can I make?