[ { "label": "Cancel an order and email me if the order risk level is high to prevent fraud", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": { "1": { "field": "order.delay", "settings": { "wait": "600", "cw_timezone": "America\/New_York", "custom_wait": "", "check_date": [], "token_object_type": "order", "condition_type": "AND" }, "weight": -1000 }, "0": { "field": "order.risks.recommendation", "settings": { "multiple": "any", "operator": "any", "value": { "cancel": "cancel", "investigate": 0, "accept": 0 }, "condition_type": "AND" }, "weight": 999 } }, "actions": [ { "type": "order_cancel", "settings": { "wait": "0", "custom_wait": "", "reason": "fraud", "restock": 1, "notify_customer": 0 }, "weight": 999, "target_key": "order" }, { "type": "email", "settings": { "wait": "0", "run_once": 0, "custom_wait": "", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "{{ order.name }}: High Risk Order Cancelled ", "plain_text": "0", "body": "Hi there,\r\n\r\nJust a heads up, the Arigato app automatically cancelled this order because it was identified as high risk.\r\n\r\n{{ shopify_admin_link(order, {resource: 'orders'}) }}", "token_object_type": "order" }, "weight": 999, "target_key": "order" }, { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Possible Scammer" }, "weight": 999, "target_key": "order.customer" } ] } ], "instructions": "This workflow utilizes a 10 minute delay after the order is placed. The delay is recommended since \r\norder risks can take a few minutes to be calculated by Shopify. ", "shared_workflow_id": 652 }, "description": "This workflow fires after an order is paid. The workflow checks the order risks provided by Shopify and if the order risk is high, the order is automatically cancelled, the customer is automatically tagged and the store is notified via email. " } ]