Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
hi, all
I'm using the REST Admin API. When I create a webhook billing envent with topic[subscription_billing_attempts/success], the api return error ["Invalid topic specified: subscription_billing_attempts/success. Does it exist? Is there a missing access scope? ]
My question is "what access scope needed for webhook billing envent via REST API"?
Hi,
This looks like a valid topic. And you'll need the "read_own_subscription_contracts" scope to be able to subscribe for it. The GraphQL doc has more details about the scopes requirements (https://shopify.dev/api/admin-graphql/2021-10/enums/WebhookSubscriptionTopic#section-values-SUBSCRIP...) if you need it for other topics.
Cheers,
Cédric | Developper @ Shopify
To learn more visit the Shopify Help Center or the Community Blog.