Access Denied for shopLocales Field

Access Denied for shopLocales Field

akshat497
Shopify Partner
1 0 1

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.
  2. Reinstalled the app to ensure the new scopes are applied.

 

Replies 2 (2)

Jean2
Shopify Partner
1 0 0

Just encountered the same issue on my app

UmbrellaDigital
Shopify Partner
3 0 1

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.

Umbrella Digital Team