"write_price_rules" scope issue

Hi,

I’m facing wiered issue. Basically, i was using the priceRule GraphQL query in my app. And this query works on all stores except one. For that store its giving below error:

GraphQL Errors: [
{
message: ‘Access denied for priceRuleCreate field. Required access: write_price_rules access scope.’,
locations: [ [Object] ],
path: [ ‘priceRuleCreate’ ],
extensions: {
code: ‘ACCESS_DENIED’,
documentation: ‘Shopify API access scopes’,
requiredAccess: ‘write_price_rules access scope.’
}
}
]

Now, when I checked list of accessScopes for that stores for my app it had “'write_price_rules” already in the list but still it was giving the error. Now im confused where is the issue?


Seems silly but this gets me all of the time.

Are you certain you’re referring the same Shopify access token for this priceRuleCreate mutation as the access scope check query?

Would you be able to share your full mutation to see if we can replicate?

It’s worth noting as well that the priceRuleCreate mutation is only available for a short time (just under 2 more weeks from today) as it was removed in 2024-10.

Hey @Murgesh_Ekunde, Are you still experiencing this issue, or can I mark this as solved?

Hi,

We shifted to “Discounts” graphql, so issue is solved now.
Thank you