Order Payment Webhook Phantom Runs

Hi all,

I’m using the Order Payment webhook and in my logs I can see executions that have fired on orders that have already been marked as paid.

None of the webhooks failed so I can’t see why it would be doing any reruns, but I also can’t see any documentation on this so I’m hoping someone might be able to shed some light on this.

Thanks

Hey @Joshua_Haley

A couple of quick questions.

How are you responding to the webhook? Specifically, are you doing any processing before returning a response, or do you immediately return 200 and queue the work for background processing? The reason I ask is it may be re-sent if not responded fast enough.

Even with a fast response though, occasional duplicates are expected. We have documentation here on how to handle those: Ignore duplicate webhooks

Hi Kyle,

I’m not doing anything additional in Shopify once the webhook has fired. The webhook is linked to an external apps script file which is triggering some updates in my database.

Thanks for proving that documentation, I will look at implementing the recommendations given.

Thank you

1 Like