Tags:
- Storefront GraphQL API
- 2026-07
New discount fields in the Storefront API's cart types
As of API version 2026-07, several changes have been introduced to the discount fields and amounts in the Storefront API.
What's changed
Deprecated Fields:
- The
field is deprecated. Useandinstead. - The
field is deprecated. Useinstead. Note: thevaluefield onincorrectly returns the per-line allocated amount rather than the configured discount amount (for example, a $10 fixed discount allocated as $4 to one line showsvalue: $4). The newfield returns the correct value.
New Fields:
: Lists all discounts (for example, product, shipping, and order) currently applied to the cart.: Returns the discount application with the correct configured discount value and concrete type information. For example, a $10 fixed discount will showvalue: $10regardless of how it's allocated across lines. Access type-specific fields using GraphQL fragments, for example.: Shows the total discount amount allocated across the entire cart. For instance, if a 10% discount splits as $4 on line A and $6 on line B, both lines will show.: Displays the discounts allocated to the delivery group.
New Argument:
: Theargument lets you request either only product-level discounts or all discounts allocated to the cart line. It defaults totruefor backward compatibility.
What you need to do
- Update queries to use
instead offor reading all discount applications on a cart. - Replace
withfor accurate discount values and type-specific fields. - Move product allocation queries to
. - Move shipping allocation queries to
. - Test your discount calculations with percentage, fixed amount, and free shipping discounts.
Was this section helpful?