Tags: Cancel, Orders, Risk
This task cancels orders as soon as Shopify (or another risk-analysis app) determines it to be high risk. Optionally, this task can also auto-tag the order, email the customer, restock the inventory, and/or refund payment.
- View in the task library: tasks.mechanic.dev/automatically-cancel-high-risk-orders
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"cancellation_reason_to_set": null,
"ignore_unpaid_orders__boolean": null,
"refund_payment_for_cancelled_orders__boolean": null,
"restock_inventory_for_cancelled_orders__boolean": null,
"email_customer_when_cancelling__boolean": null,
"staff_note_for_timeline": null,
"add_this_order_tag_when_cancelling": ""
}
Learn about task options in Mechanic
shopify/orders/updated
Learn about event subscriptions in Mechanic
This task cancels orders as soon as Shopify (or another risk-analysis app) determines it to be high risk. Optionally, this task can also auto-tag the order, email the customer, restock the inventory, and/or refund payment.
Valid cancellation reasons to set:
- customer: The customer wanted to cancel the order.
- declined: Payment was declined.
- fraud: The order was fraudulent.
- inventory: There was insufficient inventory.
- staff: Staff made an error.
- other: The order was canceled for an unlisted reason.
NOTE: This task will not cancel orders that have been partially or fully fulfilled
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!