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)
Check your code
bash
npx shapi-cli scan .shapi scan lists the call sites this change affects; shapi fix repairs them test-first when the advisory has an automatic fix. All advisories · Markdown · OSV · JSON