`DraftOrderDiscountNotAppliedWarning.priceRule` removed in GraphQL Admin API 2026-10
Source: Shopify Dev Changelog
Shopify Removes priceRule Field from Draft Order Discount Warnings
Shopify is removing the priceRule field from the DraftOrderDiscountNotAppliedWarning object in GraphQL Admin API version 2026-10. The field has been deprecated and will no longer be available in queries starting with this API version.
Impact on Draft Order Mutations
The change affects apps that query the priceRule field when handling draft order discount warnings. These warnings are returned from several mutations including draftOrderCalculate, draftOrderCreate, and draftOrderUpdate. Apps currently selecting priceRule in these mutation responses will encounter breaking changes when upgrading to API version 2026-10.
Required Developer Action
Developers must update their GraphQL queries to remove references to the priceRule field before migrating to version 2026-10. Apps that continue to query this field after upgrading will experience errors in their draft order workflows.
This removal follows Shopify’s standard deprecation process for GraphQL Admin API fields. The DraftOrderDiscountNotAppliedWarning object will continue to function without the priceRule field, but apps relying on this data point need to identify alternative approaches for handling draft order discount validation.
Developers should audit their codebase for any queries selecting priceRule on DraftOrderDiscountNotAppliedWarning objects and plan updates accordingly. The change takes effect with the 2026-10 API version release.
Stay in the loop
Get Shopify ecosystem news and positioning insights for app founders.