You are here:
Configure System-Generated Coupon Codes for B2C Commerce
To auto-generate codes, first set the coupon code preferences, then configure the code settings. After you generate the codes, specify the coupons redemption conditions.
Specify System-Generated Code Preferences
Before you create system-generated codes, set global preferences that impact all system-generated codes. Take these guidelines into consideration.
- Avoid recognizable or offensive words in a code, by setting Include vowels and Y to No, which is the default for new sites.
- Include dashes in codes to reduce errors caused when shoppers manually enter codes. These codes can be ones that you distribute via email, ads, or print. Exclude dashes if codes are applied via auto-apply link, copy-and-paste flows, or APIs, or you want simpler validation logic.
- Avoid code lengths that are too short, which result in fewer generated codes The system can only generate unique codes. If your code length is short, the pool of possible combinations is less. Fewer than 12 characters can quickly reach limits for large campaigns.
- Understand the impact of coupon code formats. If code formats differ by only a vowel or dash, the system can generate two codes for multiple coupons. For example, if you change a preexisting preference of 16-character codes with dashes to 16-character codes without dashes, you get two coupons with different formats. If you enable both coupons, and a shopper redeems only one, the newer coupon is considered as the owner of the code.
- In Business Manager, from the App Launcher select Merchant Tools.
- Go to .
-
Set the global preferences for all system-generated codes, and apply your
changes.
For new codes, saved changes are effective immediately.
Generate System Coupon Codes
After specifying global preferences, generate the system codes.
- Go to .
- Click New.
- Enter an ID.
-
Select if the coupon is case-sensitive.
Nois the default.When B2C Commerce looks up a coupon code, it uses the site's default locale for character conversion. If you change the default locale, any existing case-insensitive codes with locale-specific characters, such as the Turkish letter i can stop working or behave inconsistently. - In the coupon type, select System-Generated, and then enter the number of codes.
-
Specify a coupon prefix.
-
To add a prefix for coupon codes, limit the prefix to these
characters:
Prefix Type Valid Characters Numbers 0123456789 Upper and lowercase letters abcdefghifjklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Special characters $ % / () [] {} = ? .
_ * + ~ # & @
Space Space character
-
To add a prefix for coupon codes, limit the prefix to these
characters:
-
Save your changes.
The Edit Coupon page opens. From this page, configure general settings, including the number and time frame for coupon redemptions, assign coupons to campaigns, and view redeemed coupons.
- Complete any additional configuration, and save your changes.
Increase the System-Generated Codes for Existing Coupon IDs
- In the Coupons page, select the coupon code you want to modify.
-
Increase the value for Number of Codes.
Enter a number higher than the number of codes available in production so you don’t run out of codes.
-
Replicate the change from staging to production.
The new codes become available for redemption with an export set to No.

