[ { "label": "Send data to a 3rd Party API", "trigger_type": [ "http_request_post" ], "object_type": "http_request", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "shopify_api_request", "settings": { "token_object_type": "http_request", "label": "get order count", "method": "GET", "path": "orders\/count", "data": "", "response_handle": "handle_response", "response_object_type": "", "parent_data": "", "workflow_actions": [], "twig": "{{ response | debug }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "exported_workflow": { "label": "HTTP Response subworkflow", "trigger_type": [ "manual" ], "object_type": "http_response", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "http_request", "settings": { "token_object_type": "http_response", "method": "POST", "url": "https:\/\/api.jsonbin.io\/b\/5fa2f3fda03d4a3bab0ccd43", "headers": "Content-Type:application\/json\r\n", "data": "{\r\n \"count\": \"{{ http_response.json.count }}\"\r\n}", "response_handle": "", "parent_data": "", "workflow_actions": [], "twig": "{{ response | debug }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "http_response" } } } } } } }, "weight": 999, "target_key": "http_request" } } } }, "instructions": "To get started, review the service documentation to validate that the endpoint and required payload are correct.\r\n\r\nHere's a quick link on [how to set up and implement the HTTP request](https:\/\/arigato.docs.bonify.io\/article\/463-http-request-action)\r\n\r\n**Pro tip \ud83d\udca1 You may need to consider API consumption requirements, such as rate limiting and throttling. Some APIs also provide a limited number of calls.**", "shared_workflow_id": 28026 }, "description": "This automation serves as an example of integrating Arigato Automation with an external service that exposes an API endpoint. The workflow enables merchants to make external HTTP requests to the service and process the response payload from the endpoint. This automation proves valuable in cases where the Shopify store integrates with other systems, such as inventory and finance systems.\r\n\r\nPro tip To ensure the workflow functions correctly, verify that the external service API is accessible and that the HTTP request payload is correct." } ]