--- title: >- Enhanced discounts support in the Shopify Functions Cart - Shopify developer changelog description: >- Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: >- https://shopify.dev/changelog/enhanced-discounts-support-in-the-shopify-functions-cart md: >- https://shopify.dev/changelog/enhanced-discounts-support-in-the-shopify-functions-cart.md metadata: effectiveApiVersion: 2026-04 affectedApi: - displayName: Functions handle: functions-api primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2026-02-23T15:15:37-05:00' postedAt: '2026-03-02T12:00:00-05:00' updatedAt: '2026-02-27T12:53:16-05:00' effectiveAt: '2026-02-24T12:00:00-05:00' --- March 2, 2026 Tags: * Functions * 2026-04 # Enhanced discounts support in the Shopify Functions Cart As of GraphQL API version `2026-04`, Shopify Functions can now access detailed discount information at three levels: 1. **Cart-level**: All discount applications on the cart. 2. **Line item-level**: Discounts allocated to specific line items. 3. **Delivery-level**: Discounts allocated to delivery groups. Based on the [function execution order](https://shopify.dev/docs/api/functions/2026-04#function-execution-order-in-checkout), only functions that execute after discounts can see complete discount information. Learn more about [function inputs](https://shopify.dev/docs/api/functions/2026-04#graphql-schema-and-versioning).