678c01635b715fd22fadf156b785a42b8688d0783d5426303205ebee2bde3300:{"__metadata":{"version":0.1},"root":{"steps":[{"step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","step_position":[720,60],"config_field_values":[{"config_field_id":"condition","value":"{\"uuid\":\"d7989e27-f698-11ef-89b6-f951642c6e47\",\"lhs\":{\"uuid\":\"d7989e20-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e27-f698-11ef-89b6-f951642c6e47\",\"array_path\":{\"uuid\":\"d7989e21-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e20-f698-11ef-89b6-f951642c6e47\",\"value\":\"order.risk.assessments\",\"comparison_value_type\":\"EnvironmentValue\"},\"array_item_key\":{\"uuid\":\"d7989e22-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e20-f698-11ef-89b6-f951642c6e47\",\"value\":\"assessments_item\",\"comparison_value_type\":\"EnvironmentValue\"},\"operation\":{\"uuid\":\"d7989e23-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e20-f698-11ef-89b6-f951642c6e47\",\"lhs\":{\"uuid\":\"d7989e24-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e23-f698-11ef-89b6-f951642c6e47\",\"lhs\":{\"uuid\":\"d7989e25-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e24-f698-11ef-89b6-f951642c6e47\",\"value\":\"assessments_item.riskLevel\",\"comparison_value_type\":\"EnvironmentValue\",\"full_environment_path\":\"assessments_item.riskLevel\"},\"rhs\":{\"uuid\":\"d8bc84b0-f698-11ef-89b6-f951642c6e47\",\"parent_uuid\":\"d7989e24-f698-11ef-89b6-f951642c6e47\",\"value\":\"HIGH\",\"comparison_value_type\":\"LiteralValue\"},\"value_type\":\"EnvironmentEnumDefinition:RiskAssessmentResult\",\"operator\":\"==\",\"operation_type\":\"Comparison\"},\"operator\":\"AND\",\"operation_type\":\"LogicalExpression\"},\"operator\":\"ANY\",\"operation_type\":\"ArrayExpression\"},\"operator\":\"OR\",\"operation_type\":\"LogicalExpression\"}"}],"task_id":"shopify::flow::condition","task_version":"0.1","task_type":"CONDITION","description":null,"note":null,"name":null},{"step_id":"4bbd9e51-7dac-47fe-a3e4-1cf235b04f15","step_position":[1180,380],"config_field_values":[{"config_field_id":"address","value":"[ENTER_YOUR_EMAIL_ADDRESS]"},{"config_field_id":"subject","value":"The order {{order.name}} was cancelled due to high risk"},{"config_field_id":"message","value":"The automation flow has automatically canceled order {{order.name}}. The items in the order have been restocked, and the customer has been informed via your standard order cancellation email template.\n\nOrder link: https://{{shop.myshopifyDomain}}/admin/orders/{{order.id}}\n\nPlease note that the items in the order have already been restocked. View all orders that have been canceled by this automation: https://{{shop.myshopifyDomain}}/admin/orders?query=&tag=High+risk+cancelled"}],"task_id":"shopify::flow::send_email","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"210acf33-6334-446c-a34b-fc53c16955ad","step_position":[1180,200],"config_field_values":[{"config_field_id":"customer_id","value":"order.customer.id"},{"config_field_id":"tags","value":"[\"High risk\"]"}],"task_id":"shopify::admin::add_customer_tags","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"77012a06-f3de-4789-a974-a299d4c673d9","step_position":[1180,-140],"config_field_values":[{"config_field_id":"order_id","value":"order.id"},{"config_field_id":"tags","value":"[\"High risk cancelled\"]"}],"task_id":"shopify::admin::add_order_tags","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"f0bed5b0-388c-11ef-9f0e-e5535a330e1f","step_position":[380,60],"config_field_values":[{"config_field_id":"wait_duration","value":"{\"amount\":\"3\",\"unit\":\"minutes\"}"}],"task_id":"shopify::flow::wait","task_version":"0.1","task_type":"WAIT","description":null,"note":null,"name":null},{"step_id":"d562c670-7011-11ef-af44-5f7010c5c162","step_position":[1180,640],"config_field_values":[{"config_field_id":"order_id","value":"order.id"}],"task_id":"shopify::admin::capture_payment","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"2cec4470-e24f-11ef-93ee-95a2947e7819","step_position":[1180,20],"config_field_values":[{"config_field_id":"order_id","value":"order.id"},{"config_field_id":"reason","value":"FRAUD"},{"config_field_id":"notify_customer","value":"true"},{"config_field_id":"refund","value":"true"},{"config_field_id":"restock","value":"true"},{"config_field_id":"staff_note","value":"Cancelled because Shopify marked this order as high risk"}],"task_id":"shopify::admin::cancel_order","task_version":"1.0","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"c38267e0-f698-11ef-89b6-f951642c6e47","step_position":[40,60],"config_field_values":[],"task_id":"shopify::admin::order_created","task_version":"0.1","task_type":"TRIGGER","description":null,"note":null,"name":null}],"links":[{"from_step_id":"f0bed5b0-388c-11ef-9f0e-e5535a330e1f","from_port_id":"output","to_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","to_port_id":"input"},{"from_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","from_port_id":"false","to_step_id":"d562c670-7011-11ef-af44-5f7010c5c162","to_port_id":"input"},{"from_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","from_port_id":"true","to_step_id":"77012a06-f3de-4789-a974-a299d4c673d9","to_port_id":"input"},{"from_step_id":"c38267e0-f698-11ef-89b6-f951642c6e47","from_port_id":"output","to_step_id":"f0bed5b0-388c-11ef-9f0e-e5535a330e1f","to_port_id":"input"},{"from_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","from_port_id":"true","to_step_id":"2cec4470-e24f-11ef-93ee-95a2947e7819","to_port_id":"input"},{"from_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","from_port_id":"true","to_step_id":"210acf33-6334-446c-a34b-fc53c16955ad","to_port_id":"input"},{"from_step_id":"7e33a7dd-d614-42a8-a1b3-affbc40b2d80","from_port_id":"true","to_step_id":"4bbd9e51-7dac-47fe-a3e4-1cf235b04f15","to_port_id":"input"}],"patched_fields":[],"workflow_name":"Capture Payment & Cancel and restock high risk orders"}}