This app is not approved to access REST endpoints with protected customer data

Hi everyone,

Today, my app received this error when using REST API to generate draft order.

HttpResponseError: Received an error response (403 Forbidden) from Shopify:
"[API] This app is not approved to access REST endpoints with protected customer data. See https://shopify.dev/apps/store/data-protection/protected-customer-data for more details."
If you report this error, please include this id: e4bb5c49-2a20-4328-b2d1-fa06341cceec
    at HttpResponseError.ShopifyError [as constructor] (/app/node_modules/@shopify/shopify-api/dist/error.js:13:28)
    at new HttpResponseError (/app/node_modules/@shopify/shopify-api/dist/error.js:95:28)
    at RestClient.

I don't know exactly what is the problem with my app after checking this article ([https://shopify.dev/apps/store/data-protection/protected-customer-data](https://shopify.dev/apps/store/data-protection/protected-customer-data)). Has anyone had a similar problem or is there any solution to help me? I am very grateful for that.

This is my app's scopes configuration:

```python
SCOPES=write_products,write_draft_orders,read_themes,write_themes,read_price_rules,read_discounts,read_customers
2 Likes

Hi,

Are you already using shopify API version 2022-10 ?

It has breaking changes.

As of version 2022-10, published, public apps that use Admin API resources must meet the protected customer data requirements.

1 Like

If you are using the latest API version it has new requirements for protected data. See the following documentation - https://shopify.dev/apps/store/data-protection/protected-customer-data

Hi, we are also having the same issue. And this is all of a sudden…

Also, we are using 2021-07 version…not the 2022-10 version but still started getting this error…

were you able to resolve it?

2021-07 is no longer supported. So you will default to the most recent

Having the same issue. Did you figure this one out by any chance?