Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Uncaught ScopeNotGrantedError: Using shipping address requires having shipping address permissions g

Uncaught ScopeNotGrantedError: Using shipping address requires having shipping address permissions g

TuanDangA
Shopify Partner
17 0 7

hi everyone, I'm working on a checkout extension to update the shipping address, and I came across this error, can anyone help here?

Reply 1 (1)

lizk
Shopify Staff
246 58 79

Hi there 👋

You will need to update the access scopes your app is using to be allowed to access the shipping address information. 

In the shopify.app.toml file for your app, update the scopes.

[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "read_customers"

 

As a reminder to have access to customer information, you will need to have level 2 access to protected customer data. For testing on development stores you in your partner account fill out the first page of the the form requesting access to the customers scope, and it should be automatically accepted.

To learn more visit the Shopify Help Center or the Community Blog.