Invalid topic error when registering for product_listing or collection_listings webhooks

Solved

Invalid topic error when registering for product_listing or collection_listings webhooks

GaryMadden
Shopify Partner
15 1 1

Hi there,

 

I'm trying to register for the following webhooks:

  • collection_listings/add
  • collection_listings/remove
  • collection_listings/update
  • product_listings/add
  • product_listings/remove
  • product_listings/update

 

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

Accepted Solution (1)

Visely-Team
Shopify Partner
1843 210 488

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

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog

View solution in original post

Replies 2 (2)

Visely-Team
Shopify Partner
1843 210 488

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

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
GaryMadden
Shopify Partner
15 1 1

Ah, gotcha. Thanks!