Image
Arigato Automation
+
Send an HTTP request

Relay Shopify webhook with custom payload in Shopify by using Arigato Automation

Simplify the process of relaying webhooks from Shopify to another system by leveraging Arigato Automation, saving you the hassle of setting up an entire server and serving as a significant time-saver for sending order data to external systems.

This example automation is triggered when an order is paid, but you can choose a different trigger if you'd like. It checks if the order contains your special product. If the product is found in the order, it sends a POST request to the URL of your choice, relaying the Shopify webhook with your own payload. The headers and the body data of the POST are fully configurable.

This example is an ideal starting point for any Shopify integration project that would normally require setting up a server just to manipulate Shopify webhook payload data before sending it to your own system or a third-party system. Instead of setting up and maintaining a server for such a simple task, you could easily change the payload into the format you need using the Arigato Automation app before sending it on to its final endpoint.

Testing your relayed webhook

To test this workflow, we recommend the handy tool at https://webhook.site which allows you to send it data that is displayed in real time. This is incredibly helpful for debugging. 

For testing, in the app, set up your POST URL to use the URL that the webhook.site tool assigns to you. Then, using our Test Center, trigger the action. You'll immediately see your payload posted on the testing website.

Formatting Your Payload

Usually, you'll want to send the payload as JSON, or sometimes as form data instead of JSON. Remember, Arigato Automation has a filter to convert object data to JSON. Here is an example where we simply build up an array of data and then convert it to JSON when we print it. Our example simply creates an array of all the SKUs in an order and prints the array as JSON.

{% set myarray = [] %}
{% for line_item in order.line_items %}
{% set myarray = myarray|merge([{ 'sku': line_item.sku }]) %}
{% endfor %}
{{ myarray | to_json }}

 

When an order is paid
+
Send an HTTP request
=
Workflow Completed

More Workflow Ideas

Create custom workflows to overcome unique challenges

Make your own flexible automations that conform to your needs with our easy-to-use workflow builder. 

Start now

Image

Craft the perfect message with dynamic content

Insert dynamic content from your Shopify store just about anywhere in the app.

Start Now

Image

Preview your work as you go

Pick a test item and see exactly what your work will look like when it goes live. 

Start Now

Image

Keep your trains running on time with scheduled workflows

Relax, Arigato will get those repeat tasks done while you sleep.

Start Now

Image

Roll up your sleeves and whip up a little (or a lot) of custom code

Zero in on exactly what you want out of the app with infinite possibilities in Custom Actions, HTTP Requests, Shopify Graph QL & Admin API requests.

Start Now

REVIEWS

Millions of Actions Served

See what other merchants have to say about how Arigato and the Bonify Team save them time & money and reduce headaches. 

See All Reviews

An absolute key app for us. Not only can you select the item/ order/ object you're interested in seeing (and get a full breakdown of the fields contained), but the preview of the information you're testing/ trying to output is essential to ensure an automation runs as intended!

Fairfax & Favor

I cannot rave enough about the Arigato automation app - it is an absolute must-have for any Shopify store looking to simplify operations. It has automated so many of our tasks, from sending B2B email notifications and updating customer data to managing inventory, creating custom metafields, updating collections, generating reports, the list goes on & on.

House of Léon

When I began using the Arigato Automation app, it was evident that this tool was a game-changer. Designed with utmost precision, it effortlessly bridges the gap between complex tasks and simplified automation, making it an indispensable ally for anyone looking to streamline their operations.

Jeans4you.shop

200% recommended! Seriously, you never know you needed Arigato until you actually use it. It is one of the most versatile and powerful tool on Shopify.

Patisserie La Lune

Ready to get started?

Sign up today for a 14 day free trial. Our world class support team is at your service. 

Get for Shopify