Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi,
I have an API that has not had a problem for many months, it processes a webhook that is setup in Admin on Order Fulfillment to process the order (sends an email, adds a row to a table etc).
Recently, if an order (webhook) is received that has more than one item (ie 2 x different product items of any quantity), everything is processed correctly on my server (email, database updates etc), but I think there must be an issue with the response to Shopify, as Shopify retries.
As far as I can see, this is only a problem with orders that have more than one item, and it has only been a problem recently.
Thanks,
Hi @uk256 👋
As noted in our webhooks best practices doc here, duplicate webhook events should be ignored and can be detect by looking for identical `X-Shopify-Webhook-Id` headers. For any other issues with webhooks created via the Admin UI (rather than Admin API), please connect with support here for further assistance.
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks for the context!
For webhooks created from the Admin UI, it would be best to get in contact using an authenticated account with access to merchant's store so that the team can investigate further.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
I have a ticket open. Maybe it’s not with the right team, as no one is investigating, the response is that duplicates are possible. Which isn’t really the cause / issue here as such.