---
title: Deprecating Price Rules GraphQL API - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: 'https://shopify.dev/changelog/deprecating-price-rules-graphql-api'
  md: 'https://shopify.dev/changelog/deprecating-price-rules-graphql-api.md'
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Deprecation Announcement
    handle: deprecation
  indicatesActionRequired: true
  createdAt: '2023-02-22T12:30:24-05:00'
  postedAt: '2023-02-23T13:00:00-05:00'
  updatedAt: '2024-02-02T10:57:45-05:00'
  effectiveAt: '2023-02-23T13:00:00-05:00'
---

February 23, 2023

Tags:

* Action Required
* API

# Deprecating Price Rules GraphQL API

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:

* [`priceRule`](https://shopify.dev/api/admin-graphql/latest/queries/priceRule)
* [`priceRules`](https://shopify.dev/api/admin-graphql/latest/queries/priceRules)

Affected mutations:

* [`priceRuleActivate`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleActivate)
* [`priceRuleCreate`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleCreate)
* [`priceRuleDeactivate`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleDeactivate)
* [`priceRuleDelete`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleDelete)
* [`priceRuleDiscountCodeCreate`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleDiscountCodeCreate)
* [`priceRuleDiscountCodeUpdate`](https://shopify.dev/api/admin-graphql/latest/mutations/priceRuleDiscountCodeUpdate)
* [`priceRuleUpdate`](https://shopify.dev/api/admin-graphql/latest/mutations/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](https://shopify.dev/) below:

* [Create automatic discounts](https://shopify.dev/apps/discounts/automatic)
* [Create code discounts](https://shopify.dev/apps/discounts/code)
* [Manage existing discounts](https://shopify.dev/apps/discounts/existing)
