The scope is there however I keep getting the error. I wonder Is it a cache thing or?
Trying to integrating via private APP using API, I called this endpoint and got below error.
Endpoint: GET https://{key}:{password}@{some-shop}.myshopify.com/admin/api/2019-07/product_listings/count.json
X-Request-Id: 3c73a779-8e0c-4fb9-8414-df9f3f548372
Response:
{
"errors": "[API] This action requires merchant approval for read_product_listings scope."
}
Endpoint: GET https://{key}:{password}@{some-shop}.myshopify.com/admin/oauth/access_scopes.json
X-Request-Id: 03ebf850-9f19-475a-aa49-8fba032087c4
Response:
{
"access_scopes": [
{
"handle": "write_products"
},
{
"handle": "read_product_listings"
},
{
"handle": "read_product_tags"
},
{
"handle": "read_product_inventory"
},
{
"handle": "write_customers"
},
{
"handle": "write_checkouts"
},
{
"handle": "read_content"
},
{
"handle": "read_products"
},
{
"handle": "read_customers"
},
{
"handle": "read_checkouts"
}
]
}
Solved! Go to the solution
Hey @SeanZ,
The /admin/oauth/access_scopes.json endpoint should only be used by public apps that authenticate through Oauth. If you're using a private app, you can toggle the permissions from the private app's page in the admin.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi JB,
Thanks for the reply. Any chance you could help to look into these two requests? I am so confused for they should either both work or neither of them works. However, now product_listings/count.json returns an error but product_listings/product_ids.json works perfectly. Changing API versions doesn't help.
I am not the store owner but one of his sales channel partners. And he seems to be sure that the key/password/scope are correct.
Endpoint: GET https://{key}:{password}@{some-shop}.myshopify.com/admin/api/2019-07/product_listings/count.json
X-Request-Id: e3a84eb6-6ab5-4df8-91a6-9c9c8d992792
Response:
{
"errors": "[API] This action requires merchant approval for read_product_listings scope."
}
Endpoint: GET https://{key}:{password}@{some-shop}.myshopify.com/admin/api/2019-07/product_listings/product_ids.json
X-Request-Id: 23d3d65b-c1e0-450a-b764-5639bff5f0b0
Response:
{
"product_ids": [
4476366291028,
...
]
}
User | Count |
---|---|
13 | |
12 | |
7 | |
6 | |
5 |