Shopify Flow/Notifications & Internal Alerts/Get Instant Alerts When a Specific Discount Code Is Used
Team VisibilityLow Difficulty

Get Instant Alerts When a Specific Discount Code Is Used

Automatically receive an email notification whenever a specific, pre-defined discount code is successfully applied to a customer's order, ensuring real-time usage tracking.

The Problem

Launching a high-stakes campaign or a limited-time offer with a unique discount code means you need to know its real-time performance. Manually checking orders for specific code usage is incredibly time-consuming, prone to missed data, and prevents immediate action on successful conversions or potential misuse. You risk slow follow-ups or campaign adjustments.

What This Automation Solves

This Shopify Flow eliminates manual checks by starting with the 'Order created' trigger, scanning every new order. A subsequent 'Condition' then precisely checks if the 'Order discount code is equal to [YourDiscountCode]', instantly filtering for your target. Finally, the 'Send internal email' action delivers a real-time alert directly to your inbox, automating crucial tracking and enabling swift action.

When to Use This Automation

  • Monitoring a high-value influencer or affiliate campaign's performance.
  • Tracking early bird access codes for exclusive product launches or limited inventory items.
  • Detecting potential misuse or unauthorized sharing of a sensitive or single-use discount code.

Workflow

  1. Trigger

    Step 1

    Starts when an order is created

  2. Condition

    Step 2

    Condition checking if the specific discount code was used

  3. Action

    Step 3

    Send email to youremail@store.com

Step-by-Step Setup

  1. 1

    Start with the 'Order created' trigger.

  2. 2

    Add a 'Condition' and select 'Order discount code'. Set it to 'is equal to' your exact code (e.g., 'PARTNER20OFF').

  3. 3

    Add the 'Send internal email' action, entering the recipient email (e.g., 'marketing@yourstore.com') for your alert.

Related Questions

Can I track multiple specific discount codes in a single Flow?
Yes, you can track multiple codes by adding an 'OR' group within your 'Condition'. This allows you to check if the discount code 'is equal to' Code A OR 'is equal to' Code B.
How can I include order details in the notification email?
In the 'Send internal email' action, use Liquid variables in the email body, such as `{{ order.order_number }}`, `{{ order.customer.email }}`, or `{{ order.total_price }}` to provide immediate context.
What if I want to send this alert to a team communication channel like Slack?
Absolutely. Instead of the 'Send internal email' action, use the 'Send Slack message' action. You'll need to have the Slack connector installed and configured within Shopify Flow.
Can I only be notified if a specific discount code is used by a new customer?
Yes, add an additional 'Condition' before the discount code check. Use 'Customer' > 'Orders count' and set it to 'is equal to' 1 to filter for first-time purchasers only.

Recommended Tools & Apps

Launch this automation

Open Shopify Flow and use this page as your setup blueprint.

Open Shopify Flow

Merchant Insight

For time-sensitive promotions, consider integrating a Slack notification instead of email. The immediacy of a Slack alert can reduce response time for high-value partner codes or potential fraud detection, keeping your team agile.

Related Automations