Hello everyone,
I’m working on a custom app and have a question regarding API access for order information.
My app needs to retrieve basic order details, specifically the product name, quantity, and date. To do this, I’m using the orders.json
endpoint with the following scopes:
'read_orders,read_inventory,read_locations,read_products'
When I make the API call, I receive the following error:
{ "errors": "[API] This app is not approved to access REST endpoints with protected customer data. See https://shopify.dev/docs/apps/launch/protected-customer-data for more details." }
I understand that this error is due to the presence of Protected Customer Data in the order object. I can resolve the error by requesting and receiving “Protected Customer Data Access” in the Partner Dashboard.
My question is this: Is it possible to access non-PII order data like line items (product name, quantity) without needing the “Protected Customer Data Access” approval?
I’m trying to avoid the merchant-facing message that appears during installation, as my app does not need to use or store any sensitive customer information like names, emails, or addresses.
Any guidance on whether this is the intended behavior or if there are alternative endpoints or methods would be greatly appreciated.