Protected customer data (Development strategy)

I currently have an app that’s live on the app store.

I’m using an older API version and am going to take the time to update to the latest API version (2022-10).

My app has a function that allows the user to create a draft order… However, with the new API version I get an error when trying to do that which says:

This app is not approved to access the DraftOrder object. See https://partners.shopify.com/[partnerId]/apps/[appId]/customer_data for more details.

Okay fine I filled out the request form and will wait for approval.

However, I use a development strategy which involves running a duplicate app in my Partner’s dashboard that uses the same permissions - called “App Name (Testing)”

Then in my development environment I am using the API keys that come from this app. This way it lets me make breaking changes to my app without affecting customers. And I can use ngrok to view changes on my Development store.

My question is, how can I get access for my “App Name (Testing)”? Since, when I fill out the request form it tells me;

Your protected customer data access will be reviewed with your App Store Listing.

But I don’t want to submit an App Store Listing for this app, as it is just my dev one…

Anyone else run into this? Are there other development strategies that people use?

Hi there!

Only apps that are distributed on the App Store need to submit their access for review.

For test Apps or iff you’re installing on a development store, select your data use in step 1 to access protected customer data, in the Partner Dashboard and your App should be automatically granted.

Hi Lizk,

Thanks for your response! I guess I needed to just try to use the API once I actually completed the form.

Seems to be working for me. Thanks again!

Hey, I’m facing the same issue. Have written about what all I’ve tried here:
https://community.shopify.com/topic/1802075

Hi Liz, I have a published app that needs to migrate to access protected customer data.

I currently use a ‘test’ app copy (or staging app) to test features before I deploy them to my published app.

Partner support is telling me that I cannot get access to protected data until an app is published and approved — so I don’t see a way that I can test anything unless I just deploy code to my published app without testing it first. This seems totally anti-developer.

Per your response “For test Apps or iff you’re installing on a development store, select your data use in step 1 to access protected customer data, in the Partner Dashboard and your App should be automatically granted.” — partner support does not confirm this and has told me that my test apps cannot be granted access.

So…I’m totally confused about what to do. Can you help?

Hi :waving_hand:

Please see the following documentation regarding access to protected custom data for development stores.

To access customer data in development, select the data and fields you’re using in the Partner Dashboard. You don’t need to submit your request for review for unpublished testing apps or apps that are installed only on development stores.

https://shopify.dev/docs/apps/store/data-protection/protected-customer-data

Hi,

The proposed solution does not work for me. I completed Step 1 and selected the data I want, clicked save for Step 1, and skipped Step 2. (Still, the “Request access” button for “Protected customer data access” on the app settings page exists.) I installed the app( after saving step 1) on a development server, and reinstall it on another one, and the required permission doesn’t show up on the “grant access” page. And the call still gives this error message:

“errors”: “[API] This action requires merchant approval for read_customers scope.”

Where is this documented?

How long did the data permissions approval take?

Same - For now I literally have to make our app use 2022-07 in development and 2022-10 in production. This is obviously not sustainable

Actually it worked

I’m facing the same issue. What is the exact process after selecting options on Step 1?

I’m trying to use countryCode and am not able to from useShippingAddress API.

I’m trying to recreate ‘Extension APIs’ example from https://shopify.dev/docs/api/checkout-ui-extensions

"To access customer data in development, select the data and fields you’re using in the Partner Dashboard. You don’t need to submit your request for review for unpublished testing apps or apps that are installed only on development stores."

Did you still have this issue?

I currently am hitting this error

{“errors”:“[API] This app is not approved to access REST endpoints with protected customer data. See https://partners.shopify.com/3213068/apps/65857814529/customer_data for more details.”}

even after completing Step 1, and reinstalling my app on the development store

Hey Asamlaksa, were you able to find a solution? I am struggling with the same issue.