A unique coupon code, also called a dynamic coupon code, is a promotional code that can only be used once on an eCommerce website and is unique for each client.
The Coupon collections dashboard allows you to import your coupon codes from your eCommerce platform to Brevo and include them in your emails and SMS messages. Each of your campaign recipients will be assigned their own unique coupon code that can only be used once. This strategy helps secure your campaign budget and prevent fraud, such as the reuse and distribution of promotional code. Additionally, unique coupon codes typically perform better and are easier to track since they are individually assigned. |
Before you start
- Brevo does not generate unique coupon codes for you. It only allows you to use them in your communications sent via Brevo.
-
Create the campaign or template in which you want to add a coupon code:
Emails SMS - Create an SMS campaign
- Create an automation with the new editor and insert a Send an SMS step
-
If you already have a file containing coupon codes:
- Ensure the file is saved in a CSV format with a maximum size of 2MB and each data separated with a comma.
-
Ensure that the coupon codes in the file are synced with your eCommerce platform so that they work on Brevo.
If your file meets the above requirements, you can directly follow the procedure from Step 2: Create your coupon code collection on Brevo.
📁 Step 1: Generate a file containing your coupon codes
To create your coupon code collection on Brevo, you have to generate a file containing a list of coupon codes for your eCommerce platform and save them in a .csv file.
The coupon code file must meet the following requirements:
|
Depending on your eCommerce platform, the procedure to generate a coupon code file can differ:
Use a coupon code generator app to generate coupon codes in bulk and automatically sync your coupon codes with your eCommerce platform:
Shopify | WooCommerce |
To generate coupon codes in bulk:
- Log in to your Shopify or WooCommerce platform.
- Install the coupon code generator app compatible with your eCommerce platform.
- Define your coupon code terms and conditions of use and format.
- Generate your coupon codes in bulk.
- Export your coupon codes in a .csv file.
- Once you have exported your coupon codes in a .csv file, import it into Brevo.
Ask your developer to create and sync your coupon codes with your eCommerce platform.
Once your coupon codes are generated and saved in a file, you can create the coupon code collection on your Brevo account ⬇️.
📥 Step 2: Import your coupon codes in Brevo
- From your Brevo account, access E-commerce > Coupon collections and click Create a coupon collection.
- Give your coupon collection a short name. It cannot contain spaces and cannot be edited later. In this use case, we will name it 20offall.
- Enter a fallback coupon code that will be used if you run out of coupons or if your coupon expires. In this use case, we will use N/A.
This fallback coupon code will be sent to your recipients instead of a coupon code to indicate that the maximum number of coupon codes has been reached or that the code is no longer valid. - Optional: Toggle the Define an expiry date for this collection option and select a date at which your coupon collection code will no longer be valid.
- Optional: Toggle the Receive a notification before I run out of coupons option to define thresholds at which you want to be notified:
- To receive a notification before your coupons run out, check the first option and enter the threshold at which you want to be notified. For example, enter 1000 to be notified when you have 1000 coupons left.
- To receive a notification before your coupon collection expires, check the second option and enter the number of days before the expiry date when you want to be notified. For example, enter 20 to receive a notification 20 days before your coupon collection expires.
- Click Continue.
-
Browse files on your computer, and upload the one containing your coupon codes.
- We automatically detect the header and columns in your file. If your first row is a header column, ensure it has been automatically detected as such by our system. Otherwise, toggle First row is a column header.
- Select the column that contains your coupon codes.
- Click Upload coupons.
Your coupon collection can be found in your Coupon collections dashboard. Depending on the number of coupon codes to upload, the process may take some time.
Once all your coupons have been imported, you can add them to your emails or SMS messages ⬇️.
🏷️ Step 3: Insert a coupon code in your emails or SMS messages
Check the procedure corresponding to the type of communication you want to use to share your unique coupon code:
📧 Emails
Create an email campaign or a template and access the Design step. Depending on the design tool you chose, the steps to include coupon codes in your email are different:
- Drag and drop different content blocks to design your email.
- In a Text content block, place your cursor where you want to insert your coupon code and click the double curly brackets {} Add variable icon in the toolbar. The Add variable modal opens.
- From the Which attribute would you like to insert? drop-down list, click Data feeds.
- Click the name of your coupon code collection created in Step 2, here 20offall, and click coupon.
- Click Insert. A placeholder is inserted in your email design.
- Optional: Click the placeholder to apply advanced filters, such as uppercase to your coupon code, for example. To learn more, check our dedicated article Modify the formatting of your placeholders with filters.
- Design your email in HTML.
- Copy the following placeholder:
{{feed.couponname.coupon}} - Place your cursor where you want to insert your coupon code and paste the placeholder you just copied where you want your coupon code to display in your email.
- In this placeholder, leave coupon as is and replace couponname with the exact name of your coupon collection as it appears in the Collection name column on the Coupon collection page. In this use case, it is 20offall.
- Optional: Apply advanced filters to apply uppercase to your coupon code, for example. To learn more, check our dedicated article Modify the formatting of your placeholders with filters.
Congratulations! 🎉 You have inserted your coupon code variable in your email. It will be replaced at the time of sending with a coupon code from your coupon code collection.
Drag & Drop Editor | HTML editor |
---|---|
Email received by one of your recipients | |
📱 SMS
- Create an SMS campaign or an automation with the new editor that contains the Send an SMS step.
- In the Message or Content field, enter your SMS content.
- Copy the following placeholder:
{{feed.couponname.coupon}} - Place your cursor where you want to insert your coupon code and paste the placeholder you just copied where you want your coupon code to display in your email. We recommend adding the last two curly brackets only after replacing the values.
- In this placeholder, leave coupon as is and replace couponname with the exact name of your coupon collection as it appears in the Collection name column on the Coupon collection page. In this use case, it is 20offall.
Congratulations! 🎉 You have inserted your coupon code variable in your SMS. It will be replaced at the time of sending with a coupon code from your coupon code collection.
SMS in the editor | SMS received by one of your recipients |
---|---|
🧪 Step 4: Test your email
To ensure that your email content will display correctly in your recipients' inboxes, we highly recommend testing your email template. The best way to test an email with variables is to send a test email. To learn more, check our dedicated article Preview and test your email campaign.
❓ FAQs
Yes, if you run out of coupons, go to your Coupon collections dashboard and click Upload more next to the coupon collection you want to reload. Follow the procedure to Upload your coupon codes file to Brevo.
Yes, you can edit all the settings of your coupon collection at any time except for its name as it is used in your email campaign design code. To edit your coupon collection settings, click the pen icon next to its name. You will access the same settings as when you created your coupon collection.
No, you cannot delete your unused or expired coupon collections at the moment.
⏭️ What's next?
- Discover our eCommerce Dashboard
- eCommerce settings
- Analyze your revenue with our eCommerce dashboard
- Check your product performance with our eCommerce dashboard
- Use an external data feed to send up-to-date or personalized email campaigns
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.
If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.