[ { "version": 1, "label": "Send an email to yourself when a customer refunds an order over $100", "trigger_type": [ "refund_created" ], "object_type": "refund", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "refund.total_refund_amount", "settings": { "operator": "gt", "value": "100", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Has High Refund Order" }, "weight": 999, "target_key": "refund.order.customer" }, { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "Contact Customer regarding order refunded totaling {{ refund.total_refund_amount }}", "plain_text": "1", "body": "A refund was just processed for {{ refund.total_refund_amount }}. Please contact the Customer as soon as possible for any feedback regarding the product they purchased.\r\n\r\n{{ refund.order.customer.first_name }}\r\n{{ refund.order.customer.last_name }}\r\n{{ refund.order.phone }}\r\n{{ refund.order.email }}\r\n\r\nView Refunded Order: {{ shopify_admin_link(refund.order, {resource: 'orders'}) }}\r\n\r\nThe customer has also been tagged with \"Has High Refund Order\"." }, "weight": 999, "target_key": "refund" }, { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "High Refund Order" }, "weight": 999, "target_key": "refund.order" } ] } ] }, "description": "This automation is triggered when a new refund is initiated by a customer in your store, it can help you to keep track of high refund requests by tagging the orders as well as the customer who created the request. The workflow works by checking if the refund amount is greater that $100 and then sends the store owner an email and also tags the customer and the order." } ]