Setting Up Bulk Discount Codes for a Discount Code Campaign
You can create a discount code campaign with a single code or thousands of unique codes. SHOPLINE supports both bulk auto-generation and bulk import, making it easy to run large-scale promotional activities.
This article explains how to bulk generate or import discount codes when creating a campaign, how to import additional codes later, and important rules to understand when working with large batches of discount codes.
Creating a Discount Code Campaign With Bulk Codes
Follow these steps to create a new campaign and add bulk discount codes:
- From your SHOPLINE admin panel, go to Discounts and click Create a discount.
- In the pop-up window, select a discount category.
-
On the settings page, choose Discount code as the discount type.
-
Next to the Discount code field, click the more icon (…) and choose Bulk generate or Import.
Notes:
- The first batch of discount codes can include up to 5,000 codes. Additional codes must be added using the Import feature, and each import also supports up to 5,000 codes.
- A single campaign can include up to 20,000 discount codes in total.
- Bulk generate: The system will generate unique discount codes based on the quantity you specify.
-
Import: Download the default import template, fill in your discount code details, and upload the completed file.
Notes:
- After uploading, the system will automatically detect how many codes can be successfully imported and how many will be excluded due to duplicates or formatting errors.
- The import template includes an example in Row 2, but the system always begins reading data from Row 3; therefore, always enter your actual discount codes starting from Row 3.
-
Click Generate or Import to start processing the discount codes. A progress notification will appear on the right side of the page. If you import more than 500 codes, go to Profile icon > Bulk processing to view detailed progress.
Important: If you are adding codes using the Import option, do not edit or delete the campaign during the import. Doing so will cause the import to fail, and the file cannot be used in any other campaign. - After all codes are added successfully, continue configuring the campaign. For detailed campaign settings, refer to articles in the "Setting Up Automatic Discounts" section.
Importing Additional Codes to an Existing Campaign
If you need to continue distributing new discount codes—such as adding new influencer batches, extending a promotion, or issuing more one-time customer rewards—you can import additional discount codes into an existing campaign without creating a new one. Follow these steps to configure:
| Note: This is a whitelisting feature and requires an access request. Please contact SHOPLINE Support if you need to enable this functionality. |
- Go to Discounts and select the discount code campaign you want to update.
-
In the basic campaign settings at the top, click View all.
-
On the code list page, click Import in the top-right corner.
-
In the pop-up window, upload your completed import file.
Notes:
- Upon file upload, the system will automatically detect any duplicate or invalid codes and exclude them.
- The import template includes an example in Row 2, but the system reads data only from Row 3, so always enter all discount codes starting from Row 3.
-
Click Import to start processing the codes. A progress banner will show the import status on the right side of the screen.
Important: Do not edit or delete the campaign during the import. Doing so will cause the import to fail, and the file cannot be used in any other campaign. - After the import is complete, refer to the "Reviewing Import Results" section to check the results.
Important Rules and System Behaviors for Bulk Code Import
These rules apply to both the first upload and subsequent imports into an existing campaign:
- Applicable Campaign Types: This feature is only available for discount code campaigns created in the Discounts module of the SHOPLINE admin panel and that contain multiple discount codes. Campaigns created through API or third-party apps will not display the import-related settings.
- Upload Frequency: Each import supports up to 5,000 discount codes. Avoid running multiple import tasks at the same time in different browser windows, as this may cause processing failures.
- Maximum Limit: A single campaign can include up to 20,000 discount codes. When the total exceeds 20,000, the Import button will no longer appear on the page accessed via the View all link in the discount settings.
- File Reuse Restrictions: If a file has already been uploaded to a specific campaign, the same file cannot be reused for another campaign unless the original campaign (containing those codes) has been deleted.
Reviewing Import Results
During the import, the page will display the number of discount codes that have been imported. After the file finishes processing, we recommend reviewing the import results following the steps below:
-
Click your profile icon in the upper-right corner and select Bulk processing.
-
From the list, locate and review your import task:
-
If all codes imported successfully, only an All records button will appear in the Export column.
Note: Failed imports will not be highlighted in All records. Please refer to Failed records to review them. - If some codes failed, a Failure history button will appear. Click it to download a file that shows which codes were not imported properly.
-