Send unique discount or coupon codes in emails and SMS messages

❗️ Important
This feature is only accessible to our Enterprise users using API or one of our compatible plugins. You can connect only one online store per account to the eCommerce dashboard. 

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.

coupon-code_example-email_EN-US.png

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
  • 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:

  • Format: CSV
  • Size: maximum 2MB
  • Separator: comma separated data
ecommerce_csv-doc-example_EN-US.png

Depending on your eCommerce platform, the procedure to generate a coupon code file can differ: 

Shopify and WooCommerce API

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:

  1. Log in to your Shopify or WooCommerce platform.
  2. Install the coupon code generator app compatible with your eCommerce platform.
  3. Define your coupon code terms and conditions of use and format.
  4. Generate your coupon codes in bulk.
  5. Export your coupon codes in a .csv file. 
  6. Once you have exported your coupon codes in a .csv file, import it into Brevo.

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 

  1. From your Brevo account, access E-commerce > Coupon collections and click Create a coupon collection
  2. 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.
  3. 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. 
  4. 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. 
  5. Optional: Toggle the Receive a notification before I run out of coupons option to define thresholds at which you want to be notified: 
    1. 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. 
    2. 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. 
      ecommerce_coupon-code-creation_EN-US.png
  6. Click Continue.
  7. Browse files on your computer, and upload the one containing your coupon codes. 
    ecommerce_select-coupon-code-file_EN-US.gif
  8. 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.
  9. Select the column that contains your coupon codes. 
  10. Click Upload coupons.
    ecommerce_select-code-column_EN-US.png

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 & Drop Editor HTML editor
  1. Drag and drop different content blocks to design your email.
  2. 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.
  3. From the Which attribute would you like to insert? drop-down list, click Data feeds
  4. Click the name of your coupon code collection created in Step 2, here 20offall, and click coupon.
    coupon_add-variable_en-us.png
  5. Click Insert. A placeholder is inserted in your email design. 
  6. 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.

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
coupon_dde-variable_en-us.png coupon_html-variable_en-us.png
Email received by one of your recipients
coupon_dde-example_en-us.png

📱 SMS

  1. Create an SMS campaign or an automation with the new editor that contains the Send an SMS step. 
  2. In the Message or Content field, enter your SMS content. 
  3. Copy the following placeholder:
    {{feed.couponname.coupon}}
  4. 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.
  5. 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
sms_coupon-code_en-us.png sms_coupon-code-ex_en-us.png

🧪 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

🪫 If I run out of coupon codes, can I upload more?

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.

ecommerce_upload-more-coupons_EN-US.png

✍️ Can I edit my coupon collection expiry date and settings?

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 pen-edit-icon.png  next to its name. You will access the same settings as when you created your coupon collection

🗑️ Can I delete unused or expired coupon collections?

No, you cannot delete your unused or expired coupon collections at the moment.

⏭️ What's next? 

🤔 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.

💬 Was this article helpful?

3 out of 7 found this helpful