# Shopify removes priceRule from DraftOrderDiscountNotAppliedWarning in API version 2026-10

- **Provider:** Shopify
- **Endpoint:** `POST /admin/api/{version}/graphql.json`
- **Effective:** 2026-10-01
- **Severity:** high
- **Change:** field-rename
- **Status:** unverified (secondary reports only; SHAPI does not open fix PRs for it)

## What changed

As of Admin API version 2026-10, the deprecated priceRule field on DraftOrderDiscountNotAppliedWarning (returned by draftOrderCalculate, draftOrderCreate and draftOrderUpdate) is removed, and with it the PriceRule object from the public schema.

## What to do

Select discountTitle instead of priceRule { title } and discountCode instead of priceRule { discountCodes { nodes { code } } } on DraftOrderDiscountNotAppliedWarning.

## Sources

- Provider notice (2026-06-23): https://shopify.dev/changelog/remove-pricerule-from-draft-order-discount-warning

## Machine-readable

- Advisory: https://github.com/SriVarshini09/shapi-advisories/blob/main/advisories/shopify-draft-order-warning-price-rule-removed.json
- OSV: https://shapi.dev/osv/shopify-draft-order-warning-price-rule-removed.json
