Webhook not valid, but api explicitly tells me to try that one

I’m trying to subscribe to webhooks so I can know when a Merchant purchases my app. However I keep getting issues subscribing to subscription related webhooks. For example:

topic: [

‘Invalid topic specified: subscription_billing_attempts/success. Does it exist? Is there a missing access scope? Topics allowed: app/uninstalled, collections/create, collections/delete, collections/update, products/create, products/delete, products/update, shop/update, app_purchases_one_time/update, app_subscriptions/update, domains/create, domains/update, domains/destroy, selling_plan_groups/create, selling_plan_groups/update, selling_plan_groups/delete, bulk_operations/finish\n’

]

I’m assuming i’m missing an access scope, ok so i’ll try a different one. So it tells me to try app_subscriptions/update explicitly in that response, and when I do i get:

{ errors: ‘Could not find the webhook topic app_subscriptions/update’ }

Did we change the name of the webhook and not update the api nor documentation? Or am I missing something?

Hey @Alex312 , thanks for getting in touch, this is certainly odd. I was able to to some testing on my end and could successfully set up the app_subscriptions/update webhook in my test environment. I can’t say if this is the case here, but one reason you could see that error returned on your end is that your app is using an older version of our webhook API. Could you try using the 2022-04 version of the API and your app’s authorization credentials using a client like Postman and seeing if that works?

If it still doesn’t work, another benefit of using an API client is that we’d be able to take a faster look at any Request IDs that are sent through our response headers since these are shared through the client’s UI. If you still see the error after trying an updated API version either through your app directly or through an API client, please share an X-Request-ID and we’d be happy to take a deeper look into this with you.

Hope this helps provide some troubleshooting steps for you - cheers!

Hello,

That property is not available in this response as it responds with a 404. My previous 401 issues did have it, but not this one.

This is what i’m sending:

url: ‘https://digitile-developer-store.myshopify.com/admin/api/2022-04/webhooks.json’,

data: ‘{“webhook”:{“address”:“https://172-58-19-11.ngrok.io/api/shopify/webhooks”,“topic”:“app_subscriptions/update”,“format”:“json”}}’

The other two i’m subscribing to (app/uninstalled and shop/update) go through fine and are sending webhooks that i am responding too. Only this app_subscriptions/update is giving me problems. Also today I have been given subscription access from the partner dashboard, and I am requesting access while authenticating before I request for this webhook.