Hello,
I have a headless store, and when I try to query quantityAvailable, I get this error: “message”: “Access denied for quantityAvailable field. Required access: unauthenticated_read_product_inventory access scope.”
But when I check the storefront api settings, I can see that it is checked. Plus all the other queries work fine. only the quantityAvailable is giving this error.
Hi @SarunasDev ,
Thanks for your post. We’re not able to replicate that error message in a test store using the product query as below unless the unauthenticated_read_product_inventory scope is actually missing:
{
product(id: “gid://shopify/Product/123456”) {
id
title
variants(first: 10) {
nodes {
quantityAvailable
}
}
}
}
So if you’re sure the app making the query has that scope on the store in question please reach out directly to Support and include details about the shop and app involved as well as the specific query being used so that it can be investigated further.
Thanks and hope you have a great day