How can I define a code pattern?

You can create two types of codes in Voucherify. Only the bulk codes can be customized:

  • Unique codes – created in the Campaign Manager by choosing Bulk codes.
  • Fixed codes – a single fixed code created in the Campaign Manager by choosing Standalone code. Here, you can add your own name of the code.

The customization allows you to configure the default character set, code length, pattern, postfix, and prefix.

Important!

When you create a new project, you can set the codes to be case sensitive or case insensitive. This setting cannot be modified later on! 

Contents

  1. Default character set
  2. Customize unique codes
  3. Customize fixed codes

Default character set

To define the default character set:

  1. Go to Project settings.
  2. In the General tab, go to the Application Information section.
  3. Choose your default character set from the drop-down list. You can choose from the following options:
    1. Alphabetic
    2. Alphabetic Lowercase
    3. Alphabetic Uppercase
    4. Numbers
    5. Custom – you can define your own character set in the text field next to the drop-down list

Note

This feature works only in the user interface. When a campaign is created through the API, the default character set is not used, only the one defined in the API request. If no character set is provided in the request, the alphanumeric character set is used. Depending on the settings, this character set is case sensitive or case insensitive.


Customize unique codes

In the Program size step of the Campaign Manager, scroll down to the Advanced code settings section.

In this section, you can define:

  • Character set – Click the drop-down list to choose the character set for the campaign. The default option can be defined in the Project settings
  • Code length – Enter the number of characters to be used in the code. This option cannot be used with the Pattern setting.
  • Pattern – Enter the code pattern. Use # as a placeholder for a random character. This option cannot be used with the Code length setting.
  • Prefix – Enter the string to be placed before the code.
  • Postfix – Enter the string to be placed after the code.

Customize fixed codes

In the  Program size step of the Campaign Manager, scroll down to the Advanced code settings section.

You can define your code by typing it into the respective field or define it in the Customize unique codes section above.

Click the Generate code button to the right of the Custom code field to generate a random code. This button also generates random codes in accordance with the Advanced code settings.

You can use all letters of the English alphabet, Arabic numerals, and special characters in your codes. However, we recommend keeping your codes legible by excluding commonly confused characters (e.g., 0 and O) and using popular characters (e.g., avoid ¶, §, <}, etc.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us