Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
When I try to subscribe to the "carts/create" topic:
https://{{api_key}}:{{api_password}}@{{store_name}}.myshopify.com/admin/api/{{api_version}}/webhooks.json
{ "topic": "carts/create", "address": "https://callback-url.com", "format": "json" }
I get this message:
'Client error: resulted in a `422 Unprocessable Entity` response: {"errors":{"topic":["Invalid topic specified. Topics allowed: app\\/uninstalled, collections\\/create, collections\\/delete (truncated...) '
The "carts/create" topic is valid, so why am I getting this message ?
Solved! Go to the solution
This is an accepted solution.
Hi @strideapps,
Sounds like you don't have permission to create a webhook for that topic. Does your app have read_orders permission?
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi @strideapps,
Sounds like you don't have permission to create a webhook for that topic. Does your app have read_orders permission?
To learn more visit the Shopify Help Center or the Community Blog.