← All Shopify Updates
Shopify Update · Published April 17, 2026 · Source: Enhanced discounts support in the Shopify Functions Cart

Shopify Functions Now Access Detailed Discount Data in 2026-04 API

What Changed

Starting with GraphQL API version 2026-04, Shopify Functions have gained enhanced access to discount information across three distinct levels: cart-level discounts applied to the entire order, line item-level discounts tied to specific products, and delivery-level discounts allocated to shipping groups. This granular discount visibility enables functions that execute after discounts are calculated to retrieve complete and detailed discount information for more sophisticated cart operations.

Why This Matters

This update empowers developers to build smarter, more context-aware custom functions that can leverage full discount details in their logic. Previously, limited discount visibility made it difficult to create functions that needed to understand the complete discount picture—such as loyalty programs, custom promotions, or shipping optimizations that depend on knowing exactly which discounts apply where. With this enhancement, developers can now build more intelligent cart and checkout experiences that respond dynamically to discount scenarios.

What You Should Do

← More Shopify Updates