Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hey there,
I want to send the data of the placed order to the Logistics API with the help of the Shopify Create Orders webhook.
I am working on a node and express template of Shopify.
Here is my code for getting data of the placed order. Whenever I click on the send test button of the Shopify store, the terminal shows me a "Failed to process webhook: Error: Could not validate request HMAC" error message.
The demo data will show in the terminal whenever I hit the "npm run Shopify webhook trigger" command.
How do I send the data of an order to a third-party logistics API?
Hi YNV,
It sounds like there's an issue with verifying the webhook's authenticity - it's possible that your shopify.processWebhooks
method above is not set up correctly to validate the HMAC of the incoming request.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
I got this type of response when I console that stuff. and I am writing the code in the index.js file as a separate route.