Global Action: Custom Action
The Custom Action feature in Arigato expands the versatility of the app by enabling merchants to execute actions that are not available by default within the app.
With Custom Actions, you can define unique tasks that accommodate specific needs of your Shopify store operations. This could range from making custom requests to the Shopify APIs, sending data to external APIs, interacting with other apps, or performing complex calculations.
Reach out to our Support team if you have any questions or need advice. We can accommodate building most Custom Actions for you, at no extra cost.
Configuring the Action
This Action requires precise syntax and understanding of the Arigato app capabilities. Comprehensive documentation is available within the Code Reference in the app.
Field Name | Description |
---|---|
Custom Label | A descriptive name for the Custom Action. |
Custom Twig Code | The Twig code to execute as part of this Action. Must use RUN_ACTION , QUEUE_WORKFLOW or QUEUE_ACTION functions. |
Example of a Custom Action using Twig:
{% set my_custom_data = "Some Value" %} {% do RUN_ACTION("log", { title: "Test Message", body: my_custom_data }) %}
Another example, sending a custom HTTP request:
{% set result = RUN_ACTION("http_request", { method: "GET", url: "https://api.my-custom-api.org/v1/resource", data: {key: "value"}, allow_error_codes: [404], headers: { "Content-Type": "application/json", "Authorization": "Bearer {{ shop.database.my_api_key }}" } }) %}
Additional Examples & Documentation
Complete documentation is available within the Code Reference section in the app.