How to test the Shopify Trigger Order Created event?

Describe the problem/error/question

I’m new to n8n and I try to setup a Shopify Trigger for the event “Order Created”.

I would like now to test this event without creating a real order in my Shopify instance.

As far as I understand I could use the Test URL from the “Webhooks URLs” section:

But when I execute the step for Listening on the event and execute a POST request to this given URL, it does not catch the event. In my http client I see a success message “Webhook call received”.

In my POST request I simply send some JSON in the body and set the Content-Type header to application/json.

Do I misunderstand something or do I need to configure something additional?

Thanks for your help!

Information on your n8n setup

  • n8n version: 2.1.2
  • Running via n8n Cloud

Ok, I have found the solution.

To make it work you need to make sure that you pass the proper http headers according to the Shopify Trigger n8n implementation, see:

https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Shopify/ShopifyTrigger.node.ts#L411

Also you need to set your proper client secret value. This can be found in your Shopify Dev Dashboard.

And you need to make sure that you compute correctly your hmac-sha256 value using your Shopify App client secret from your Dev Dashboard.

In my case I had also issues with newline handling. Finally I just put my json into one line removing all newlines and whitespaces.

Then it worked :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.