Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi there,
I'm trying to register for the following webhooks:
But I get a 422 error. Here's an example request:
{ "webhook": {
"address": "https://<REDACTED>/hub/shopify/webhook", "topic": "collection_listings/update", "format": "json" } }
And here's the error I get:
{ "errors": { "topic": [ "Invalid topic specified. Topics allowed: app\/uninstalled, carts\/create, carts\/update, checkouts\/create, checkouts\/delete, checkouts\/update, checkouts\/paid, collections\/create, collections\/delete, collections\/update, customer_groups\/create, customer_groups\/delete, customer_groups\/update, customers\/create, customers\/delete, customers\/disable, customers\/enable, customers\/update, order_transactions\/create, orders\/cancelled, orders\/create, orders\/delete, orders\/fulfilled, orders\/paid, orders\/partially_fulfilled, orders\/updated, products\/create, products\/delete, products\/update, refunds\/create, shop\/update, themes\/create, themes\/delete, themes\/publish, themes\/update, inventory_levels\/connect, inventory_levels\/update, inventory_levels\/disconnect, inventory_items\/create, inventory_items\/update, inventory_items\/delete, tender_transactions\/create, app_purchases_one_time\/update, app_subscriptions\/update" ] } }
The error message doesn't list any of the product_listing or collection_listings topics. Do I need some extra permissions to register for these webhooks?
Thanks,
Gary
Solved! Go to the solution
This is an accepted solution.
These topics are available only to Sales Channel SDK apps. More information here - https://help.shopify.com/en/api/reference/sales-channels/collectionlisting and here - https://help.shopify.com/en/api/guides/sales-channel-sdk
This is an accepted solution.
These topics are available only to Sales Channel SDK apps. More information here - https://help.shopify.com/en/api/reference/sales-channels/collectionlisting and here - https://help.shopify.com/en/api/guides/sales-channel-sdk
Ah, gotcha. Thanks!