Tags: Cancel, Orders, SKU
Useful for enforcing order limits on the backend, use this task to ensure that orders with too many of certain products will be automatically cancelled.
- View in the task library: tasks.mechanic.dev/auto-cancel-orders-with-too-many-of-a-certain-sku
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"skus_to_watch_for__required_array": null,
"quantity_threshold_for_cancellation__number_required": null,
"send_cancellation_email_to_customer__boolean": false,
"attempt_to_refund_or_void_payment_in_full__boolean": false,
"reason_for_cancellation__required": "other"
}
Learn about task options in Mechanic
shopify/orders/create
Learn about event subscriptions in Mechanic
Useful for enforcing order limits on the backend, use this task to ensure that orders with too many of certain products will be automatically cancelled.
Configure the product SKUs to monitor on the left and the quantities that will trigger a cancellation on the right. Optionally, choose whether to email the customer, refund the payment, or restock the inventory upon cancellation. The configured cancellation reason must be one of - 'customer', 'declined', 'fraud', 'inventory', 'other', or 'staff'.
Notes:
- SKUs are case-sensitive!
- Any refunds generated by this task will be for the maximum amount, for the order being cancelled.
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!