I have created product webhooks for my store. so that if anyone product is created, sometimes the webhook is triggered two times, though it successively hit my destination URL. Even I have returned the response as HTTP 200 OK status to Shopify.
In Shopify, they have specified that they will trigger webhooks again within less than 5s when it didn't get a response.
In my case, I return a response in less than 5 sec.
Solved! Go to the solution
Hey @Piyush_Diwaker1, thanks for clarifying.
In that case, would you be able to provide the X-Shopify-Webhook-Id for both separate payloads that you are receiving? With those I would be happy to take a closer look.
I have created a product with multiple variants and webhook invoke twice.
First for product creation 'X-Shopify-Webhook-Id': 'b3b945fc-70ee-446a-8b11-9e490125819f' & Second for product update 'X-Shopify-Webhook-Id': '828262df-76d7-481f-ba40-3d0013addf90'.
But webhook for product update invoke without product update operation.
This is an accepted solution.
Thanks for sharing those, I was able to take a closer look on our end and wanted to update you here.
In cases when you 1) create a product (product/create) and assign a publication status 2) publish that product (product/update) there would be a trigger for both of these webhooks. This is actually expected functionality, even when processed through a single payload. More insights can be found in our webhook metrics tracking resource, which goes over locating delivery logs as well as linking some other useful webhook related docs and tools.