[ { "label": "Resend account invite email after 3 days", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "order.customer.state", "settings": { "operator": "any", "value": { "disabled": "disabled", "invited": 0, "enabled": 0, "declined": 0 }, "condition_type": "AND" }, "weight": 10 }, "2": { "field": "order.delay", "settings": { "wait": "259200", "custom_wait": "", "check_date": { "submit": "Check Date" }, "token_browser": "{{ Browse Tokens }}", "token_object_type": "order", "condition_type": "AND" }, "weight": 20 }, "3": { "field": "order.customer.state", "settings": { "operator": "none", "value": { "enabled": "enabled", "declined": "declined", "disabled": 0, "invited": 0 }, "condition_type": "AND" }, "weight": 30 } }, "actions": { "1": { "type": "shopify_api_request", "settings": { "wait": "0", "custom_wait": "", "label": "Send account invite", "method": "POST", "path": "customers\/{{ order.customer.id }}\/send_invite", "data": "", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "token_object_type": "order" }, "weight": 40, "target_key": "order" } } } }, "shared_workflow_id": 11631 }, "description": "This automation is fired when an order is raised, it checks to see if the customer has accepted the account invite and if the account is pending after three days, sends a follow-up invite." } ]