# Duplicate Webhook Received

**URL:** <https://community.shopify.dev/t/duplicate-webhook-received/14148>\
**Category:** Webhooks and Events\
**Tags:** troubleshooting\
**Created:** [April 24, 2025, 11:00am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148 "2025-04-24T11:00:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@Developer](https://community.shopify.dev/u/Developer)\
**Post date:** [April 24, 2025, 11:00am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/1 "2025-04-24T11:00:12Z")

</div>

Hi Everyone, We were working on webhooks but were occasionally receiving duplicate webhooks. What is the response waiting time for webhooks?

---

<div class="post-metadata">

**Author:** ![Dylan](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/dylan/32/90_2.png) [@Dylan](https://community.shopify.dev/u/Dylan)\
**Post date:** [April 24, 2025, 2:00pm UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/2 "2025-04-24T14:00:51Z")

</div>

Yes, it’s possible that Shopify might send duplicate webhooks. This is unexpected but possible behavior.

If you want, you can use the `X-Shopify-Event-Id` header in the webhook request to differentiate between duplicate events:

> **[About webhooks](https://shopify.dev/docs/apps/build/webhooks#handling-duplicate-webhooks)**
>
> Use event data delivered through webhooks to stay in sync with Shopify or execute code after a specific event occurs in a shop.

However, I personally just make my subscribing webhook handler routes idempotent so I don’t have to worry about multiple redundant events.

---

<div class="post-metadata">

**Author:** ![kyle\_liu](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyle_liu/32/14392_2.png) [@kyle\_liu](https://community.shopify.dev/u/kyle_liu)\
**Post date:** [April 25, 2025, 1:47am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/3 "2025-04-25T01:47:33Z")

</div>

Hi @Developer

You can verify duplicate webhooks based on the webhook\_id: “X-Shopify-Webhook-Id”

 ![图片](https://global.discourse-cdn.com/shopifycommunity/original/2X/0/0a2d2eb72560e1bc21150e0f63fc1d41945bc782.png)

---

<div class="post-metadata">

**Author:** ![Developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@Developer](https://community.shopify.dev/u/Developer)\
**Post date:** [April 25, 2025, 4:13am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/4 "2025-04-25T04:13:42Z")

</div>

Hi @kyle_liu and @Dylan, Thanks for the help. I also wanted to know the waiting time for a webhook sent from Shopify’s end. At our end, it might take 10 seconds or about 20 seconds to process and return a response as 200, because previously I saw in docs referring to waiting time as 5 seconds but could not find it in docs now.

---

<div class="post-metadata">

**Author:** ![Eric\_Han](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/eric_han/32/802_2.png) [@Eric\_Han](https://community.shopify.dev/u/Eric_Han)\
**Post date:** [April 25, 2025, 5:19am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/5 "2025-04-25T05:19:42Z")

</div>

you can save the webhook first and return it. The backend service of your application will then slowly process the saved messages.

---

<div class="post-metadata">

**Author:** ![kyle\_liu](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyle_liu/32/14392_2.png) [@kyle\_liu](https://community.shopify.dev/u/kyle_liu)\
**Post date:** [April 25, 2025, 5:50am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/6 "2025-04-25T05:50:48Z")

</div>

The previous document is no longer available, but based on my webhook records, the conclusion is as follows: retry 8 times, with retry intervals of 1 second, 1 minute, 2 minutes, 5 minutes, 22 minutes, 30 minutes, 1 hour, 2 hours.

 ![图片](https://global.discourse-cdn.com/shopifycommunity/original/2X/6/613311f43571dc4ba9504a9769b65794ec55041c.png)

---

<div class="post-metadata">

**Author:** ![Eric\_Han](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/eric_han/32/802_2.png) [@Eric\_Han](https://community.shopify.dev/u/Eric_Han)\
**Post date:** [April 25, 2025, 5:58am UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/7 "2025-04-25T05:58:10Z")

</div>

your right.response time should be within 5 secs

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/2/25c69d3f72c247326e83507d604d63d031605dc7.png)

---

<div class="post-metadata">

**Author:** ![Taj\_Bowness](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Taj\_Bowness](https://community.shopify.dev/u/Taj_Bowness)\
**Post date:** [September 23, 2025, 10:23pm UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/8 "2025-09-23T22:23:48Z")

</div>

> [@Dylan](#):
>
> However, I personally just make my subscribing webhook handler routes idempotent so I don’t have to worry about multiple redundant events.

Hey @Dylan, how do you go about doing that? Do you store the webhooks id in a table and check if it hasn’t been stored yet before processing?

---

<div class="post-metadata">

**Author:** ![Dylan](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/dylan/32/90_2.png) [@Dylan](https://community.shopify.dev/u/Dylan)\
**Post date:** [September 24, 2025, 2:34pm UTC](https://community.shopify.dev/t/duplicate-webhook-received/14148/9 "2025-09-24T14:34:48Z")

</div>

Sure, you could do it that way.

But instead I prefer to design any individual webhook or background job to run multiple times and still produce the same output. You can take it a step further and add a guard that checks the current state of your database or 3rd party API and skip processing if there is no action required.

From the [MDN docs:](https://developer.mozilla.org/en-US/docs/Glossary/Idempotent)

> An HTTP method is **idempotent** if the intended effect on the server of making a single request is the same as the effect of making several identical requests.

An idempotent operation can be repeated an arbitrary number of times and the result will be the same as if it had been done only once.
