Why am I encountering webhooks issues in my staging environment?

Solved

Why am I encountering webhooks issues in my staging environment?

sel_jmc
Tourist
7 2 4

We have created a shopify app that creates a few webhooks on stores that install it, the user can also disable and reenable these webhooks.

 

We also have a few test environments: When testing on the first environment the webhooks are created, disabled and re-enabled all as expected. But on the 'Staging' environment, when the user tries to re-enable the webhooks we get this error:

 

"You do not have permission to create webhooks with orders/paid topic. This topic contains protected customer data. See https://shopify.dev/apps/store/data-protection for more details."
 
The scopes on each app environment are the same. Which is why im scratching my head with this one. Does anyone know what could potentially cause this issue?
 
**The re-enable / disable webhooks is done using the admin rest api calls.
Accepted Solution (1)

sel_jmc
Tourist
7 2 4

This is an accepted solution.

I have solved this, writing this comment for anyone else that comes across this issue.

 

Within the appsetup section for the app on the partner dashboard at the bottom you need to specify what 'sensitive customer data' you require as part of your app.

View solution in original post

Replies 2 (2)

sel_jmc
Tourist
7 2 4

This is an accepted solution.

I have solved this, writing this comment for anyone else that comes across this issue.

 

Within the appsetup section for the app on the partner dashboard at the bottom you need to specify what 'sensitive customer data' you require as part of your app.

LongPC
Shopify Partner
7 0 3

I have the same problem as you. Thanks for your solution