Webhooks being fired multiple times

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)

Shopify Staff (Retired)
70 15 27

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.