---
title: >-
  DraftOrderDiscountNotAppliedWarning.priceRule removed in GraphQL Admin API
  2026-10 - 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/remove-pricerule-from-draft-order-discount-warning
  md: >-
    https://shopify.dev/changelog/remove-pricerule-from-draft-order-discount-warning.md
metadata:
  effectiveApiVersion: 2026-10
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Breaking API Change
    handle: breaking-api-change
  indicatesActionRequired: true
  createdAt: '2026-06-22T21:37:02-04:00'
  postedAt: '2026-06-23T14:00:00-04:00'
  updatedAt: '2026-06-23T13:58:24-04:00'
  effectiveAt: '2026-07-21T12:00:00-04:00'
---

June 23, 2026

Tags:

* Action Required
* Admin GraphQL API
* 2026-10

# `DraftOrderDiscountNotAppliedWarning.priceRule` removed in GraphQL Admin API 2026-10

Starting with GraphQL Admin API version `2026-10`, the deprecated `priceRule` field on the [`DraftOrderDiscountNotAppliedWarning`](https://shopify.dev/docs/api/admin-graphql/2026-10/objects/DraftOrderDiscountNotAppliedWarning) object is removed.

This is a breaking change for apps that query `priceRule` on `DraftOrderDiscountNotAppliedWarning`, which is returned in draft order discount warnings from mutations such as [`draftOrderCalculate`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/draftOrderCalculate), `draftOrderCreate`, and `draftOrderUpdate`. If your app selects `priceRule` in these responses, you must update those queries before upgrading to `2026-10`.

The warning already exposes the relevant discount data directly, so you no longer need the legacy `priceRule` object. Use the following fields instead:

* [`discountTitle`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrderDiscountNotAppliedWarning#field-DraftOrderDiscountNotAppliedWarning.fields.discountTitle) — the title of the discount that couldn’t be applied. Use this instead of `priceRule { title }`.
* [`discountCode`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrderDiscountNotAppliedWarning#field-DraftOrderDiscountNotAppliedWarning.fields.discountCode) — the code of the discount that couldn’t be applied. Use this instead of `priceRule { discountCodes { nodes { code } } }`.

Update any query that reads `priceRule` from this warning to select `discountTitle` and `discountCode` instead.

Before:

```graphql
... on DraftOrderDiscountNotAppliedWarning {
  priceRule {
    title
    discountCodes(first: 1) {
      nodes {
        code
      }
    }
  }
}
```

After:

```graphql
... on DraftOrderDiscountNotAppliedWarning {
  discountTitle
  discountCode
}
```

`DraftOrderDiscountNotAppliedWarning` was the only place where the legacy `PriceRule` object was reachable from the public GraphQL Admin API. As a result, removing `priceRule` also removes the `PriceRule` object and its related types from the public schema in `2026-10` and later.

Older supported API versions continue to expose `priceRule` on `DraftOrderDiscountNotAppliedWarning` until those versions reach end of life.

Learn more about the [`DraftOrderDiscountNotAppliedWarning`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DraftOrderDiscountNotAppliedWarning) object.
