New discount fields in the Storefront API's cart types
Shopify developer change
MerchantDiff detected this entry in Shopify's official developer changelog on April 10, 2026.
This Shopify update is categorized as API, Deprecation announcement, Storefront API, 2026-07.
What changed
Deprecated Fields: The cart.discountAllocations field is deprecated. Use cart.lines[].discountAllocations(lineLevelOnly: false) and cart.deliveryGroups[].discountAllocations instead. The cartDiscountAllocation.discountApplication field is deprecated. Use sourceDiscountApplication instead. Note: the value field on discountApplication incorrectly returns the per-line allocated amount rather than the configured discount amount (for example, a $10 fixed discount allocated as $4 to one line shows value: $4).
Who is affected
Apps that create, manage, or depend on Shopify discount functionality should review this change.
What action may be needed
Update queries to use cart.discountApplications instead of cart.discountAllocations for reading all discount applications on a cart. Replace cartDiscountAllocation.discountApplication with sourceDiscountApplication for accurate discount values and type-specific fields. Move product allocation queries to cart.lines[].discountAllocations(lineLevelOnly: false). Move shipping allocation queries to cart.deliveryGroups[].discountAllocations.
Use the official Shopify entry below as the source of truth for technical implementation details, affected APIs, migration instructions and deadlines.
Want the actionable version?
MerchantDiff monitors Shopify API changes, deprecations, deadlines and ecosystem updates, then turns them into developer-focused release intelligence: what changed, who is affected and what action may be needed.
Get MerchantDiff →