I have created an order webhooks for my store. so that if anyone order is created, the webhook should be triggered and it should hit my destination URL once. But in my case, If one order is created, the webhook is triggered multiple 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.
Is there any way to increase the waiting time of webhooks so that it should wait for particular seconds ie 10s or 15s to get status from the address URL, then it should be triggered again.
Any solutions or ideas are accepted.
Thanks in advance!
If you strip back all your code and return a 200, does the webhook only fire once? If so, consider returning a 200 and then processing the request. Otherwise, can you provide shop details?