Access Denied for shopLocales Field

Topic summary

A developer is experiencing an access denied error when querying the shopLocales field in the Shopify API. The error indicates missing read_locales or read_markets_home access scopes.

Key Details:

  • The query works locally (GraphQL Explorer, local environment) but fails in deployed environments (development/staging/production)
  • Developer has already added the required scopes and reinstalled the app, but the issue persists

Proposed Solution:
Another developer who faced the same issue shared a working resolution:

  1. Add new scopes to the TOML configuration file
  2. Deploy the new app version using shopify app deploy and confirm all updates
  3. Reload the app in the browser to trigger Shopify’s approval prompt for the new scopes

This approach successfully granted access to the protected data. Multiple developers have confirmed experiencing this same issue.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

I’m encountering an issue while developing my app. I am trying to access the shopLocales field in the Shopify API, but I keep receiving the following error:

  • When I run the query locally (using the GraphQL Explorer or in my local environment), it works perfectly fine.
  • However, when I deploy the app to development/staging or production and make the same query, I receive the following error:

Error: Access denied for shopLocales field. Required access: read_locales access scope or read_markets_home access scope.

Steps I’ve Taken:1. Added read_locales and read_markets_home scopes to my app.

  1. Reinstalled the app to ensure the new scopes are applied.
1 Like

Just encountered the same issue on my app

Hi @akshat497

I faced with the same issue. I resolve following this steps:

  1. Add new scopes to TOML config file

  2. Deploy new app version using “shopify app deploy” and confirm the updates (including scopes new scopes)

  3. Reload the app in the web browser to shopify show you an approval button for new scopes.

Following this, I finally got access to locations data.

1 Like