I am receiving the error message “This app is not approved to access REST endpoints with protected customer data.” in the REST API when querying the orders endpoint.
I do not need the protected data from the response so I am happy to filter it out using the “fields” parameter. However this does not seem to make any difference.
Am I performing the query correctly to filter it out? Does this error message occur regardless of whether I filter the fields or not?
➜ ~ curl -X GET "https://mystore.myshopify.com/admin/api/2023-04/orders.json?fields=id,line_items" \
-H "X-Shopify-Access-Token: shpua_accesstoken"
{"errors":"[API] This app is not approved to access REST endpoints with protected customer data. See https:\/\/partners.shopify.com\/2977720\/apps\/46125842433\/customer_data for more details."}