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
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.