[ { "label": "Email a Dispute (Chargeback) reminder report", "trigger_type": [ "http_request_schedule" ], "object_type": "http_request", "app_id": "triggers", "settings": { "priority": 50, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "shopify_api_request", "settings": { "token_object_type": "http_request", "label": "", "method": "GET", "path": "shopify_payments\/disputes", "data": "{\"status\": \"needs_response\"}\r\n", "response_handle": "handle_response", "response_object_type": "", "parent_data": "", "workflow_actions": [], "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "exported_workflow": { "label": "Send Email If Needed", "trigger_type": [ "manual" ], "object_type": "http_response", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "http_response.twig_condition", "settings": { "title": "chargebacks that need responses exist", "value": "{% if http_response.json.disputes is not empty %}\r\nTRUE\r\n{% endif %}", "token_object_type": "http_response", "condition_type": "AND" }, "weight": 999 } }, "actions": { "4": { "type": "email", "settings": { "token_object_type": "http_response", "to": "{{ workflow_vars[\"send_email_to\"].value }}", "cc": "", "bcc": "", "reply_to": "", "subject": "{{shop.name}}: Dispute Response(s) Needed", "plain_text": "0", "body": "\r\n \r\n \r\n \r\n
Order<\/th>\r\n Customer<\/th>\r\n Evidence Due<\/th>\r\n Amount<\/th>\r\n <\/tr>\r\n {% for dispute in http_response.json.disputes %}\r\n {% set order = load(\"order\", dispute.order_id) %}\r\n {% set customer_info = order.customer.first_name ~ \" \" ~ order.customer.last_name ~ \" \" ~ order.contact_email %}\r\n {% set customer_info = customer_info | trim %}\r\n
{{ order.name }}<\/a><\/td>\r\n {{ customer_info }}<\/td>\r\n {{ dispute.evidence_due_by| date(\"l, F jS g:i A\") }}<\/td>\r\n {{ format_money(shop, dispute.amount) }}<\/td>\r\n <\/tr>\r\n {% endfor %}\r\n
Learn more<\/a><\/td><\/tr>\r\n <\/tbody>\r\n<\/table>", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 1029, "target_key": "http_response", "disabled": false } } } } } } }, "weight": 999, "target_key": "http_request" } } } }, "shared_workflow_id": 83057 }, "description": "Sends a report of open disputes (chargebacks) that require a response. Workflow runs on a schedule of your choosing. By default the workflow will send an email to the store's email address. ", "variables": { "send_email_to": { "label": "Send Email To", "machine_name": "send_email_to", "type": "triggers_text", "settings": { "can_be_disabled": true, "disabled": false, "attributes": { "width": null, "bulk_ops_editable": 0, "input_instructions": "Enter the email address to send the report to", "description": "" }, "weight": 5, "validations": [], "conditions": [] } } } } ]