How it works

Follow these 4 simple 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.

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.

Frequently asked questions

Can I monitor multiple different discount codes with one workflow?
No, each workflow instance tracks one specific discount code. To monitor multiple codes, you'll need to create separate workflow instances - one for each discount code you want to track. This gives you better control over notifications and allows different team members to receive alerts for their specific campaigns.
Will this workflow catch discount codes that are applied automatically by other apps?
Yes, the workflow detects any discount code present in the order data, regardless of how it was applied - whether manually entered by customers, automatically applied by apps, or added through other promotional tools.
What happens if a customer uses multiple discount codes in one order?
The loop will process each discount code individually, so if your target code is among them, you'll receive the notification. However, if multiple discount codes you're monitoring are used in the same order, you may receive multiple email notifications for that single purchase.
What is a template?
MESA templates are fully pre-configured workflows built and vetted by Shopify Experts. Unlike competitor templates that provide basic scaffolds requiring extensive setup, MESA templates come with all data variables properly mapped, required fields configured, and steps ready to activate. You can turn them on immediately and start automating.
Can I customize a template?
Absolutely! While our templates work out-of-the-box, every step can be personalized to match your exact business requirements. Add conditional logic, integrate additional apps, or build more sophisticated workflows. MESA's templates provide a solid foundation that you can expand as needed.
Are templates free?
Yes! Our entire library of expert-built, production-ready templates is free to use. Unlike platforms that charge for premium templates or provide only basic scaffolds, MESA gives you access to hundreds of fully-configured, vetted workflows at no additional cost.

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

Join thousands who've automated their work and saved an average of 3.5 hours every week.

Start with this template — It's free
7-day free trial • 4 min setup • Cancel anytime