[ { "label": "Create a sales order from draft order", "trigger_type": [ "draft_order_created" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "condition_groups": { "1": { "conditions": [], "actions": { "4": { "type": "debug", "settings": { "wait": "0", "custom_wait": "", "action_label": "", "title": "", "body": "Converting Drafting order {{ draft_order.name }} to sales order", "token_object_type": "draft_order" }, "weight": 10, "target_key": "draft_order" }, "3": { "type": "shopify_api_request", "settings": { "wait": "0", "custom_wait": "", "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": [], "token_object_type": "draft_order" }, "weight": 20, "target_key": "draft_order" } } } }, "shared_workflow_id": 24650 } } ]