Tags: Cancel, Orders, Risk
This task auto-cancels incoming orders when it finds all of a certain set of risk assessment facts. Risk assessment facts must match exactly, so double-check your configuration! 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-orders-with-certain-risk-indicators
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"required_risk_assessment_facts__array_required": null,
"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": null
}Learn about task options in Mechanic
shopify/orders/updatedLearn about event subscriptions in Mechanic
This task auto-cancels incoming orders when it finds all of a certain set of risk assessment facts. Risk assessment facts must match exactly, so double-check your configuration! 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!