Reads Shopify's risk assessment on every new order and tags 'review-risk' when the recommendation is INVESTIGATE or CANCEL, so your team checks it before fulfillment.
async def run(ctx): order = ctx.event.order risk = await ctx.orders.risk_assessment(order.id)
How do you flag high-risk orders on Shopify automatically?
To flag high-risk orders on Shopify automatically, this template reads Shopify's own risk assessment on every new order and tags orders review-risk when the recommendation is investigate or cancel, so your team checks them before fulfillment picks them up. Shopify already computes this signal on every order; the template turns it from a field someone might open into a workflow that stops the parcel. Orders below the risk bar flow through untouched, at full speed.
Fraud checks done by memory fail on busy days, which is exactly when fraud arrives. The tag creates a queue: fulfillment filters it out, support works through it, and a cancelled order costs a refund instead of product plus shipping plus a chargeback fee. Running on the order-creation event, it also shows which recent orders would have been flagged, so the bar gets calibrated on your own history before it gates anything.
Last updated August 24, 2026
If you run a sharper version of this template, or something it inspired, send it in. We review every application and publish the good ones, credited to you or your agency.
AI writes real Python or TypeScript, a dry run rehearses it, you approve, it deploys.
Free plan · no card · 🇪🇺 EU data residency