Discounts - Codes tab

The Codes tab is where you will set up the codes that site visitors will enter at checkout in order to apply a discount to their cart. Discounts do not auto-apply when discount conditions are met, so a code must be supplied to site visitors in order for them to receive the discount.

You will have options to create codes manually (one by one) using the Quick Add button, import codes from existing file (CSV or XLSX), or generating codes automatically.

This feature is not activated on all sites. If you don't see this feature in Spark, contact Saffire Support.


Spark location: Commerce > Discounts > Add Discount


Initial Setup |  Discount tab | Add-on tab | Qualifiers tab | Limits tab Waive fees tab | Codes tab

When creating discount codes, we recommend choosing something simple yet unique. Adding a year to the code will prevent conflicts with future or past discount codes.

Example: RODEOBOGO25

Allowed Characters & Code Length

Discount codes may contain any alpha-numeric characters, as well as the following standard characters: @ . - _ ! ( ) + = # $ % & / \. Codes may not contain spaces. Using special characters allows you a great amount of flexibility in what can be set up, such as codes for email addresses.

Sample of codes that can be created

Quick Add

To easily add codes to your discount, you can enter the code into the textbox and click the Quick Add button to add them to the list. You'll then see the popup of Code successfully added.


Bulk Add: Create

If you are wanting to generate discount codes and you don't have a list of pre-existing codes, you can create them by:

  1. Click on the Bulk Add button
  2. Switch to the Create tab
  3. Enter the quantity of codes you need to create and determine what the Code Length should be (between 6 to 50 characters)
  4. Click Save

These new codes will be listed on the page if you need to export them or see their usage.

When generating discount codes, an additional option is available in Advanced to add a prefix automatically to every code. Open Show Advanced Options at the bottom of the page and enter the desired prefix.


Bulk Add: Import

If you have a list of discount codes that you'd like to be added to your newly build Discount, you can add them by:

  1. Click the Bulk Add button
  2. Switch to the Import tab
  3. Upload a single column file of your codes
  4. Click Save

These new codes will be listed on the page if you need to export them or see their usage.


NOTE: This import can be either a CSV or an XLSX file and should include only a single column of codes, no added header.


Code Creation Errors

Quick Add Errors

If you are trying to Quick Add a code that already exists (either on the same Discount or another one on your site), then you will receive the following error:

If you need to move this code to this new discount, you can Deactivate & Delete the code from wherever else it was used.

Import Errors

If you import a list of codes and there are any codes that already exist in that import, you will receive an error on the bottom of the Add Codes popup similar to the example below:

This will also immediately download an XLSX file with two columns of all of the problem Codes and the Reason why they haven't been imported.


Move or Reuse Codes

We recommend adding a year indicator to your codes so that you are able to track them more easily, so it usually is not necessary to reuse a code from one year to the next. In some cases, however, it may be necessary to move a code from one discount to another. This can be done by deactivating and then deleting the code from the discount it is currently on, then adding it to a new discount.

  1. Open the discount that currently has the code you need and go to the Codes tab.
  2. Hover over the code(s) you want to reuse and select Deactivate. For multiples, you can click the checkbox and use the left-hand dropdown to select Deactivate.

  3. Change the view from Active to Inactive.

  4. Hover over the code you want to reuse and selecte Delete

  5. The code is now free to reuse. You can go back to the other discount and enter the code under the Codes tab.

Search Codes

If you have multiple pages of codes, it may be difficult to find one code to edit. The search bar allows you to quickly find the code you need.


Export Codes

Discount codes can be exported as a spreadsheet in case you need to share them or save them for your records. The export includes usage data for each code.




Previous Step: Waive Fees Tab