Tags:
- Action Required
- Admin GraphQL API
- 2026-10
DraftOrderDiscountNotAppliedWarning.priceRule removed in GraphQL Admin API 2026-10
DraftOrderDiscountNotAppliedWarning.priceRule removed in GraphQL Admin API 2026-10Starting with GraphQL Admin API version 2026-10, the deprecated field on the object is removed.
This is a breaking change for apps that query on , which is returned in draft order discount warnings from mutations such as , , and . If your app selects 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 object. Use the following fields instead:
— the title of the discount that couldn’t be applied. Use this instead of.— the code of the discount that couldn’t be applied. Use this instead of.
Update any query that reads from this warning to select and instead.
Before:
... on DraftOrderDiscountNotAppliedWarning {
priceRule {
title
discountCodes(first: 1) {
nodes {
code
}
}
}
}
After:
... on DraftOrderDiscountNotAppliedWarning {
discountTitle
discountCode
}
was the only place where the legacy object was reachable from the public GraphQL Admin API. As a result, removing also removes the object and its related types from the public schema in 2026-10 and later.
Older supported API versions continue to expose on until those versions reach end of life.