Shopify Removes priceRule Field from DraftOrderDiscountNotAppliedWarning in GraphQL Admin API 2026‑10
Update all DraftOrderDiscountNotAppliedWarning queries to replace priceRule with discountTitle and discountCode before upgrading to API 2026‑10.
Update all GraphQL queries that reference priceRule on DraftOrderDiscountNotAppliedWarning to use discountTitle and discountCode, and test against API version 2026‑10.
Summary
Starting with GraphQL Admin API version 2026‑10, Shopify is removing the deprecated priceRule field from the DraftOrderDiscountNotAppliedWarning object. This is a breaking change for any app that queries priceRule on that warning, which is returned by draftOrderCalculate, draftOrderCreate, and draftOrderUpdate mutations. The warning now exposes discount data directly, so apps should use discountTitle and discountCode instead of the legacy priceRule object. The priceRule field and the entire PriceRule type are eliminated from the public schema in 2026‑10 and later. Older API versions will still expose priceRule until they reach end‑of‑life. The new fields provide the same information: discountTitle replaces priceRule.title, and discountCode replaces priceRule.discountCodes.nodes.code. Apps must update their queries before upgrading to 2026‑10 to avoid runtime errors. This change simplifies the schema and removes an unused object from the public API.
Key changes
- priceRule field removed from DraftOrderDiscountNotAppliedWarning in 2026‑10
- priceRule object removed from public schema
- discountTitle replaces priceRule.title
- discountCode replaces priceRule.discountCodes.nodes.code
- apps must update queries before upgrading to 2026‑10
- older API versions still expose priceRule until EOL
- no legacy priceRule object needed
- schema simplified by eliminating unused type