Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

REST Admin API subscribed webhook topic [subscription_billing_attempts] fail

REST Admin API subscribed webhook topic [subscription_billing_attempts] fail

gardengenuis
Visitor
1 0 0

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"?

 

Reply 1 (1)

cdarne
Shopify Staff
30 5 14

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.