Loading
Salesforce now sends email only from verified domains. Read More
Get Started with B2C Commerce
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure System-Generated Coupon Codes for B2C Commerce

          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.
          1. In Business Manager, from the App Launcher select Merchant Tools.
          2. Go to Site Preferences | Coupon Preferences.
          3. 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.

          1. Go to Online Marketing | Coupons.
          2. Click New.
          3. Enter an ID.
          4. Select if the coupon is case-sensitive. No is 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.
          5. In the coupon type, select System-Generated, and then enter the number of codes.
          6. Specify a coupon prefix.
            1. 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
          7. 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.
          8. Complete any additional configuration, and save your changes.

          Increase the System-Generated Codes for Existing Coupon IDs

          Increase the number of system-generated codes for an existing coupon ID.
          1. In the Coupons page, select the coupon code you want to modify.
          2. 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.
          3. Replicate the change from staging to production.
            The new codes become available for redemption with an export set to No.
           
          Loading
          Salesforce Help | Article