Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello!
We have registered webhooks for updates on the following entities; `product`, `variant` and `orders`
We are also using metafields on these entities which are created / updated by third party apps on our store.
If a metafield is added (new data), or updated (value of existing key changed) does this trigger an update webhook message for the relevant entity?
Hi @itayb!
Any updates to a Shopify resource will trigger the relevant webhook to be sent, including when an object's metafields are set or updated. This can be easily observed by using the setMetafield mutation and listening for the webhook in your app or by using a service like Webhook.site.
Note that metafield data, being it's own resource, isn't returned in the webhook payload and requires a query to fetch it. So whether or not you see what the actual changes are depend on your app's access and whether or not the change was made on a private metafield.
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