What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Webhook keep sending the same message

Solved

Webhook keep sending the same message

BrigooAdmin
Visitor
2 0 0

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

Accepted Solution (1)

cdarne
Shopify Staff
30 5 14

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.

View solution in original post

Replies 2 (2)

cdarne
Shopify Staff
30 5 14

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.

BrigooAdmin
Visitor
2 0 0

This is exactly what information i needed!

 

Thank you! 🙂