Cancel High-Risk Orders and Notify Customer

6 min setup
No coding required
Runs automatically

Protect your store from fraud with automatic cancellation of high-risk orders, powered by Shopify’s fraud detection algorithm. This MESA workflow template cancels flagged orders, sends a cancellation email to the customer, and notifies the store owner to ensure accurate inventory management. Gain peace of mind by proactively addressing fraudulent transactions without manual intervention.

Shopify logo icon
Order Created
Get List of Order's Risks
Filter
Cancel Order
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

5 steps to start automatically protecting your store from fraudulent orders

Shopify logo icon

Order Created

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger captures every new order as it happens, giving you the fastest possible response time to identify and handle potentially fraudulent purchases before they can impact your business.

This step automatically monitors your Shopify store and triggers the workflow whenever a customer completes a purchase. The trigger captures all order details including customer information, payment method, shipping address, and order contents. No configuration is needed - it runs continuously in the background and passes the complete order data to the next step for fraud analysis.

Get List of Order's Risks

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step retrieves Shopify's built-in fraud analysis results, which use advanced algorithms to evaluate factors like payment patterns, shipping addresses, and customer behavior to determine if an order should be canceled.

This step automatically queries Shopify's fraud detection system to get all risk assessments associated with the new order. Shopify analyzes dozens of fraud indicators and returns a recommendation (like "CANCEL", "INVESTIGATE", or "ACCEPT") along with detailed risk scores. The step processes this data and makes it available for the filter condition in the next step, requiring no user configuration.

Filter

App connector: Filter • Time to complete: 0 minutes (Auto-configured)
Why this matters: This filter ensures only genuinely high-risk orders get automatically canceled, preventing false positives that could unnecessarily reject legitimate customers and hurt your sales.

This step evaluates the fraud recommendation from Shopify's risk analysis and only allows the workflow to continue if the recommendation equals "CANCEL". Orders marked as "INVESTIGATE" or "ACCEPT" will stop here and proceed through your normal fulfillment process. The filter acts as a safety gate, ensuring only orders with the highest fraud confidence levels trigger automatic cancellation and customer notification.

Cancel Order

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step immediately cancels the high-risk order and restocks inventory while automatically sending a professional cancellation email to the customer, preventing fraud losses while maintaining good customer service.

This step cancels the flagged order in Shopify with the reason set to "fraud" and enables email notification to the customer. The cancellation immediately stops payment processing, restocks all items back to available inventory, and sends an automated email explaining the cancellation. The system processes the cancellation and makes the updated order status available for the final notification step.

email icon

Send Email

App connector: Email • Time to complete: 2 minutes
Why this matters: This notification keeps you informed about every automatic cancellation so you can monitor fraud patterns, verify the system is working correctly, and manually review edge cases if needed.

This step sends you an email notification whenever an order gets automatically canceled for fraud risk. The email includes the order number, links directly to the canceled order in your Shopify admin for easy review, and confirms that inventory was restocked and the customer was notified. The notification goes to your shop's primary email address and provides all the context you need to track fraud prevention activity.

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

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

Get started →

Make it your own!

Customize this workflow even further:

Add order tags for tracking
Tag canceled orders with custom labels like "auto-canceled-fraud" to track fraud patterns and analyze which customer behaviors trigger cancellations most frequently.
Create customer segments for analysis
Build customer groups based on fraud risk factors to identify patterns in shipping addresses, payment methods, or purchase behaviors that correlate with fraudulent activity.
Set up Slack notifications for immediate alerts
Connect to Slack to instantly notify your team when high-risk orders get canceled, allowing for quick manual review of edge cases or unusual fraud patterns.
Store fraud data in tables for reporting
Save details about canceled orders, risk scores, and cancellation reasons in your own database to build comprehensive fraud analytics and improve your prevention strategies over time.

Common questions

What types of orders will this workflow automatically cancel?

Can I customize which fraud risk levels trigger automatic cancellation?

What happens to inventory and payments when an order gets canceled?

Ready to start automatically protecting your store from fraudulent orders?

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

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