Get webhook with metafields using shopify.app.toml

Following this guide, we can create webhook topics with the shopify.app.toml.

However I can’t find a way to include metafields in the webhook payload, similar to metafieldNamespaces in the webhookSubscriptionsCreate API.

There is a vague reference in the documentation but I can’t make it work. Could you clarify if the feature exists, and if so how does it work ?

Unfortunately I don’t think it’s possible to use metafieldNamespaces when creating webhooks through shopify.app.toml.

Here’s a table showing the differences between the two methods of creating webhooks where it says they’ve not supported. I don’t know of any way around this besides using the GraphQL API to create your webhooks.

Best,
Daniel

1 Like