Re: Need help with adding event "subscription_billing_attempts/challenge" in webhooks in a

Need help with adding event "subscription_billing_attempts/challenge" in webhooks in admin panel

WDS
Shopify Partner
9 0 0

We are using this code

curl -d '{"webhook":{"topic":"subscription_billing_attempts\/challenged","address":"https:\/\/9232-193-138-245-92.ngrok.io\/","format":"json","fields":["id","note"]}}' -X POST "https://stor.myshopify.com/admin/api/2021-10/webhooks.json" -H "X-Shopify-Access-Token: {access_token}"

Instead of {access_token} wу are using password from private app , but in this case we are getting this error: {"error":"Required parameter missing or invalid"} , what can be the cause?

If {access_token} is not a password from private app , so then where can we het {access_token}?

Reply 1 (1)

diegolippel
Shopify Staff
19 4 6

Hi there!

 

I'm not sure if the authentication is the problem here, the error message could be suggesting that there is something else causing the issue.

 

In case it really is the authentication, these links might help you get to the proper token:

https://shopify.dev/api/admin-rest#authentication

https://shopify.dev/apps/auth

 

I hope these help you, otherwise let us know.

To learn more visit the Shopify Help Center or the Community Blog.