A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
When I am trying to access priceRules graphiql, I am getting the error as
"errors": [
{
"message": "Access denied for priceRules field.",
"locations": [
{
"line": 5,
"column": 3
}
],
"path": [
"priceRules"
],
"extensions": {
"code": "ACCESS_DENIED",
"documentation": "https://shopify.dev/api/usage/access-scopes"
}
}
But when I check the access scopes, its already enabled. Please suggest me how to fix this.
Solved! Go to the solution
This is an accepted solution.
Hi,
Thank you for your help. Issue resolved, when installing the grapiql app we need to specify the privileges and there the priceRules permission was missing. Reinstall the app with privileges resolved the issue.
Hi @Lekha1. The best first step in cases like this is to check that the right app is being used when making the query - if you're able to confirm the app key corresponds with the app title and the scopes are correct, could you please fill out the Report an Issue form found under the Partners Support section? Any additional information you can provide around this issue would be very helpful, such as an x-request ID.
Alan | API 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
This is an accepted solution.
Hi,
Thank you for your help. Issue resolved, when installing the grapiql app we need to specify the privileges and there the priceRules permission was missing. Reinstall the app with privileges resolved the issue.