Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi,
I'm building a Micro Service to automate the registration of invoices from sales from Shopify.
I've set up one for purchases, which works as it should.
But now that i'm setting up another for refunds, it just keeps sending the same webhook to my endpoint over and over again.
How can this be resolved? Is it a bug from Shopify?
As far as i understand the webhooks, it should only be sent once - even though the endpoint doesn't receive the message, so I don't really understand what the problem is.. Other than a bug from Shopify's API?
Kind Regards
Martin
Solved! Go to the solution
This is an accepted solution.
Hi,
I'd suggest that you check if there's not a redirect or if the new endpoint is answering the webhook request with a 200 OK status code. Otherwise the webhook sender might think it failed to deliver and would retry it (https://shopify.dev/apps/webhooks/configuration/https#step-6-respond-to-the-webhook). You can also take a look at your webhook dashboard to have a view of the delivery report: https://shopify.dev/apps/webhooks/troubleshooting#view-deliveries.
I hope this helps you!
Cheers,
Cédric | Developper @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi,
I'd suggest that you check if there's not a redirect or if the new endpoint is answering the webhook request with a 200 OK status code. Otherwise the webhook sender might think it failed to deliver and would retry it (https://shopify.dev/apps/webhooks/configuration/https#step-6-respond-to-the-webhook). You can also take a look at your webhook dashboard to have a view of the delivery report: https://shopify.dev/apps/webhooks/troubleshooting#view-deliveries.
I hope this helps you!
Cheers,
Cédric | Developper @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.
This is exactly what information i needed!
Thank you! 🙂