Shopify Flow/Fraud & Risk/Automate Fraud Prevention: Cancel Orders & Notify via Email Deny List
Revenue ImpactHigh Difficulty

Automate Fraud Prevention: Cancel Orders & Notify via Email Deny List

Automatically cancel fraudulent orders or trigger internal alerts when an order's email matches your custom deny list, saving time and preventing financial losses.

The Problem

Fraudulent orders aren't just a hit to your bottom line; they drain staff time through manual review, incur chargeback fees, and can even lead to inventory loss if not caught quickly. Manually cross-referencing suspicious emails against a list is tedious, prone to error, and reactive, leaving you vulnerable to repeat offenders.

What This Automation Solves

This Flow automates proactive fraud defense. When an "Order created" trigger fires, it instantly checks the order's email against your custom deny list stored in a Metaobject. Based on your defined "Action list" for that email, it will either "Cancel order" immediately, preventing fulfillment, or "Send internal email" to your team for further review, all without human intervention.

When to Use This Automation

  • You've identified specific email addresses repeatedly used for fraudulent purchases.
  • You want to instantly stop fulfillment of high-risk orders to prevent shipping costs and chargebacks.
  • Your team needs immediate alerts for suspicious orders originating from known problematic email addresses.

Workflow

  1. Trigger

    Step 1

    This workflow starts when a new order is created

  2. Action

    Step 2

    Get metaobjects where the email address matches

  3. Loop

    Step 3

    For each item returned from the fraud deny list, this will cancel the order if the action specified includes "cancel"

  4. Condition

    Step 4

    Action list is equal to Cancel

  5. Action

    Step 5

    Cancel order (Refund, Restock items)

  6. Condition

    Step 6

    Action list is equal to Notify

  7. Action

    Step 7

    Send email with the following subject: Order may be fraudulent {{order.name}}

Step-by-Step Setup

  1. 1

    Create a Metaobject definition for your "Fraud Deny List," including a field for "Email" and another for "Action List" (e.g., "Cancel," "Notify"). Populate it with known fraudulent emails.

  2. 2

    Configure the "Order created" trigger to initiate the workflow.

  3. 3

    Add the "Get metaobject entries" action to search your "Fraud Deny List" for matching order emails.

  4. 4

    Implement the "For each loop" and subsequent "Condition" steps to check the "Action list" field from your Metaobject entry.

  5. 5

    Set up the "Cancel order" action (with refund/restock options) or "Send internal email" action based on the condition's outcome.

Related Questions

How do I add emails to the deny list?
You update the deny list directly within your Shopify Admin under the Metaobjects section. Each entry typically contains the fraudulent email and the desired automated action (e.g., "Cancel").
Can this Flow refund the customer?
Yes, when configuring the "Cancel order" action in Flow, you have the option to process a full or partial refund and restock items, if applicable, directly within the workflow.
What if an email is on the deny list but shouldn't be?
You can easily remove or modify any entry in your Fraud Deny List Metaobject directly from your Shopify Admin, ensuring the Flow no longer acts on that specific email address.
Can I send a different notification if an order is flagged?
Absolutely. Instead of just email, you could use a "Send HTTP request" action to integrate with a CRM, Slack (if using a connector), or other internal tools for richer, channel-specific notifications.

Recommended Tools & Apps

Launch this automation

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

Open Shopify Flow

Merchant Insight

Don't just add emails; use the "Action List" field in your Metaobject to differentiate responses. For instance, some emails might always trigger a cancellation, while others might just send a "Notify" email to your team, giving you flexibil

Related Automations