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 57 70

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.