[ { "label": "Auto capture within 7 days, before expiration", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 50, "condition_groups": [ { "conditions": { "7": { "field": "order.delay", "settings": { "wait": "518400", "cw_timezone": "America\/New_York", "custom_wait": "", "check_date": [], "token_object_type": "order", "condition_type": "AND" }, "weight": -1000 }, "4": { "field": "order.financial_status", "settings": { "operator": "any", "value": { "authorized": "authorized", "pending": 0, "partially_paid": 0, "paid": 0, "partially_refunded": 0, "refunded": 0, "voided": 0 }, "condition_type": "AND" }, "weight": 10 }, "6": { "field": "order.fulfillment_status", "settings": { "operator": "any", "value": { "null": "null", "fulfilled": 0, "partial": 0, "restocked": 0 }, "condition_type": "AND" }, "weight": 30 } }, "actions": { "2": { "type": "order_capture_payment", "settings": { "wait": "0", "custom_wait": "" }, "weight": 70, "target_key": "order" }, "1": { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "AUTOCAPTURED", "token_object_type": "order" }, "weight": 80, "target_key": null } } } ], "shared_workflow_id": 47065 }, "description": "The workflow is fired when an order is created. The automation waits out for 7 days and if the order is authorized, captures the payment and tags the order with 'Auto captured'" } ]