Getting the error message "the requested scopes are not eligible for expansion"

Solved

Getting the error message "the requested scopes are not eligible for expansion"

bljd369
Tourist
5 0 4

I tried consuming the API admin/request_granular_access_scopes.json to add the below scopes

"read_products",
"write_products",
"read_product_listings",
"write_product_listings"

Then I got the below error message.

{'errors': {'requested_scopes': 'Requested scopes ["read_products", "write_products", "read_product_listings", "write_product_listings"] are not eligible for expansion.'}}.

May I know how to add scopes so that I can update the products using the update API for products. Actually, ours is a fulfillment app. The reason for using the "update products" API is that, we were asked to update our fulfillment workflow before April 1st. As part of updating the fulfillment workflow, we want to update all the products with the newly created fulfilment service , however when we dont have scopes like read_products and write_products, but when Im trying to add the scopes using the API admin/request_granular_access_scopes.json, I am getting the error "requested scopes are not eligible for expansion". Can someone please help me here.

Accepted Solution (1)

garyrgilbert
Shopify Partner
425 41 178

This is an accepted solution.

 

Hi There,

 

the request granular access scopes endpoint is only for app that are migrating from using just the read/write_fulfillments to the new fulfillment system, and only for those scopes that pertain directly to fulfillment.

 

In order to expand the scopes of your public app you need to redirect the merchants through the oauth flow with the complete list of all the scopes you want access to.

 

/admin/oauth/authorize?client_id=[clientid]&scope=[complete list of all scopes you want access to]&redirect_uri=
 
 Cheers,
 
Gary
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 2 (2)

garyrgilbert
Shopify Partner
425 41 178

This is an accepted solution.

 

Hi There,

 

the request granular access scopes endpoint is only for app that are migrating from using just the read/write_fulfillments to the new fulfillment system, and only for those scopes that pertain directly to fulfillment.

 

In order to expand the scopes of your public app you need to redirect the merchants through the oauth flow with the complete list of all the scopes you want access to.

 

/admin/oauth/authorize?client_id=[clientid]&scope=[complete list of all scopes you want access to]&redirect_uri=
 
 Cheers,
 
Gary
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
bljd369
Tourist
5 0 4

Thanks Gary :), we will try redirecting the  merchants through the oauth flow