Send an Email When a Specific Discount is Used

4 min setup
No coding required
Runs automatically

Get notified the instant someone uses a specific discount code on your store. This workflow sends you an email alert whenever a customer applies a chosen promo code at checkout. It's perfect for tracking exclusive or influencer codes, monitoring VIP offers, and seeing which deals drive the most sales. Stay on top of your marketing campaigns without constantly refreshing your dashboard.

Shopify logo icon
Order Created
Retrieve Shop
Loop Over Discount Codes
email icon
Send Email

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

How it works

4 steps to start receiving email notifications when customers use your specific discount codes

Shopify logo icon

Order Created

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger monitors every new order in your Shopify store to catch discount code usage in real-time, ensuring you never miss when a customer uses your targeted promotional codes.

When a customer completes an order in your store, this trigger automatically captures all the order details including customer information, products purchased, and any discount codes applied. The trigger runs instantly when orders are created and passes all order data to the next step for processing. No configuration is needed - it connects directly to your Shopify store and monitors all incoming orders.

Retrieve Shop

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step fetches your store's basic information needed to build proper links in the notification email, ensuring recipients can click directly to view orders and customers in your Shopify admin.

This action automatically retrieves your shop details like your myshopify domain name, which gets used later to create working admin links in the email notification. The step runs without any input from you and gathers essential store information that makes the notification email more functional. All shop data gets passed to subsequent steps where it's formatted into clickable admin links.

Loop Over Discount Codes

App connector: Loop • Time to complete: 1 minute
Why this matters: This loop filters through all discount codes applied to the order and only processes the specific code you want to monitor, preventing unnecessary notifications for other promotional codes.

The loop examines each discount code used in the order and compares it against the specific code you define in the template field "Which discount code should MESA watch for?". You'll enter the exact promo code text you want to track (like "SAVE20" or "NEWCUSTOMER"). Only when a matching discount code is found will the workflow continue to send the email notification. This filtering ensures you only get alerts for the promotional campaigns you're actively monitoring.

email icon

Send Email

App connector: Email • Time to complete: 1 minute
Why this matters: This action delivers a detailed notification containing all relevant order and discount information to your specified email address, giving you immediate visibility into discount code performance.

The email action sends a comprehensive notification including order details, customer information, discount specifics, and direct links to your Shopify admin. You'll configure the recipient email address in the template field "What email address should receive the alert?". The email includes order number, customer details, discount amount, product list, and payment totals. Admin links are automatically generated so you can view the full order and customer profile with one click.

Ready to set this up? It only takes 4 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Track multiple discount codes simultaneously
Set up separate instances of this workflow for different promotional campaigns, each monitoring its own discount code and sending notifications to different team members or email addresses.
Add Slack notifications for team visibility
Extend the workflow by adding a Slack step after the email notification to post discount usage alerts in your marketing or sales channels for real-time team awareness.
Store discount performance in spreadsheets
Connect a Google Sheets action to automatically log each discount usage with order details, building a comprehensive database for analyzing promotional campaign effectiveness over time.
Create customer follow-up sequences
Add email marketing steps to automatically enroll customers who use specific discount codes into targeted follow-up campaigns or loyalty programs based on their promotional behavior.

Common questions

Can I monitor multiple different discount codes with one workflow?

Will this workflow catch discount codes that are applied automatically by other apps?

What happens if a customer uses multiple discount codes in one order?

Ready to start receiving email notifications when customers use your specific discount codes?

7-day free trial • 4 min setup • Cancel anytime

Need help? Our automation experts will help you personalize this workflow for free. Contact support