userTokenDetails [ 'NoAccess' ] for shopify webhooks

Shopify Partner
8 0 0

In Shopify for app mandatory webhooks such as Customer data request endpoint, Customer data erasure endpoint and Shop data erasure endpoint.

I have provided end points in partner dashbaord. 

While merchant clicks Request Customer data It calls my end point correctly.

while i try to get the req parameter in my function 
I got as **userTokenDetails [ 'NoAccess' ]** 

Even though, my app have order and customer permission

APP PERMISSIONS This app can access and modify your store‘s data.

Read products, variants, and collections

Read orders, transactions, and fulfillments

Read customer details and customer groups

Read price rules

Read all orders

This app has access to personal information such as:

Customer names, e-mail addresses, phone numbers, physical addresses, geolocations, IP addresses, and browser user agents