[ { "label": "When a draft order is created, transition it to a real order", "trigger_type": [ "draft_order_created" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "4": { "type": "debug", "settings": { "token_object_type": "draft_order", "action_label": "", "title": "", "body": "Converting Drafting order {{ draft_order.name }} to sales order", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 10, "target_key": "draft_order" }, "3": { "type": "shopify_api_request", "settings": { "token_object_type": "draft_order", "label": "convert draft order to a sales order pending payment", "method": "PUT", "path": "draft_orders\/{{ draft_order.id }}\/complete", "data": "{\r\n\"payment_pending\":false\r\n}", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "run_once": 0 }, "weight": 20, "target_key": "draft_order" } } } }, "shared_workflow_id": 24650 }, "description": "Converts a draft order into an order. Add your own conditions based on business rules such as if the order is from a specific customer, or if the order is from a specific sales channel, or if the order has specific tags." } ]