[ { "label": "Capture partial payments for orders partially paid with gift cards", "trigger_type": [ "order_updated", "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "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": 999 } }, "actions": { "1": { "type": "shopify_api_request", "settings": { "label": "Load existing order transactions", "method": "GET", "path": "orders\/{{ order.id }}\/transactions", "data": "", "parent_data": "", "response_handle": "handle_objects", "response_object_type": "transaction", "exported_workflow": { "label": "Transaction subworkflow", "trigger_type": [ "manual" ], "object_type": "transaction", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "transaction.kind", "settings": { "operator": "any", "value": { "authorization": "authorization", "capture": 0, "sale": 0, "void": 0, "refund": 0 }, "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "shopify_api_request", "settings": { "wait": "0", "run_once": 0, "custom_wait": "", "label": "Capture Payment", "method": "POST", "path": "orders\/{{ transaction.order_id }}\/transactions", "data": "{\r\n\"transaction\":{\r\n\"amount\":\"{{ transaction.amount }}\",\r\n\"kind\":\"capture\",\r\n\"parent_id\":\"{{ transaction.id }}\"\r\n}\r\n}", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "token_object_type": "transaction" }, "weight": 999, "target_key": "transaction" } } } } } } }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 32310 }, "description": "This automation allows you to automatically capture payments for partial payments, normally when a gift card is used." } ]