Deprecating Price Rules GraphQL API
API
Effective February 23, 2023
Action required
We are deprecating Price Rule GraphQL queries & mutations. Use Discounts GraphQL queries & mutations instead.
You will need to migrate to the new endpoints by April of 2024 when we will remove access to these resources.
Certain features, such as Automatic Discounts, and Shopify Functions-backed Discounts, are not supported by these Price Rule endpoints. This migration will allow you to access all the latest features, including ones coming in the future.
Affected queries:
Affected mutations:
priceRuleActivate
priceRuleCreate
priceRuleDeactivate
priceRuleDelete
priceRuleDiscountCodeCreate
priceRuleDiscountCodeUpdate
priceRuleUpdate
To get up to date, make sure you no longer use the affected queries & mutations listed above. To replace them, use the Discounts queries & mutations found on Shopify.dev below: