Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Webhooks being fired multiple times

Webhooks being fired multiple times

jSmiller
New Member
4 0 0

Hi everyone!

I set up a webhook subscription for checkout creations and I'm testing them in a local environment with the help of ngrok.

I create a single checkout from postman with the storefront API and I see the webhook firing up to six times on my local server log. I plan to use this webhook to fire another event and I don't want this to fire multiple times per checkout creation.

Is there a reason why the webhook is firing multiple times from shopify or a way to limit this behavior?

Reply 1 (1)

james-langille
Shopify Staff (Retired)
70 15 28

Hello, @jSmiller,

Typically webhooks will fire from Shopify multiple times when we don't receive a valid response to the webhook. This retry helps us ensure that webhooks are delivered successfully in the face of unexpected situations. See https://shopify.dev/tutorials/manage-webhooks#creating-an-endpoint-for-webhooks for more information (particularly under the "Responding to a webhook" section), and let us know if you are still experiencing problems.

To learn more visit the Shopify Help Center or the Community Blog.