---
title: >-
  New Cart.discountAllocations field and change in CartLine.discountAllocations
  - 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/new-cart-discountallocations-field-and-change-in-cartline-discountallocations
  md: >-
    https://shopify.dev/changelog/new-cart-discountallocations-field-and-change-in-cartline-discountallocations.md
metadata:
  effectiveApiVersion: 2022-07
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2022-06-15T09:39:22-04:00'
  postedAt: '2022-07-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:34-05:00'
  effectiveAt: '2022-07-01T00:00:00-04:00'
---

July 1, 2022

Tags:

* API
* 2022-07

# New `Cart.discountAllocations` field and change in `CartLine.discountAllocations`

As part of the GraphQL Storefront API 2022-07 API release, we are changing how `discountAllocations` on `Cart` and `CartLine` are returned.

* `Cart.discountAllocations` returns discount allocations that are applied to the entire `Cart`.

`CartLine.discountAllocations` now only returns discount allocations that are applied to the specific `CartLine`.

`CartLine.total` reflects the line total with only line-level discounts applied, not discounts applied to the entire `Cart`.

Learn more about the `Cart` object on [Shopify.dev](https://shopify.dev/api/storefront/unstable/objects/Cart#top).
