priceRules graphQL getting ACCESS_DENIED

Solved

priceRules graphQL getting ACCESS_DENIED

Lekha1
Tourist
5 1 1

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.

Accepted Solution (1)
Lekha1
Tourist
5 1 1

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.

View solution in original post

Replies 2 (2)

Alan
Shopify Staff
129 15 24

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

Lekha1
Tourist
5 1 1

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.