---
title: >-
  Storefront API Cart discountAllocations field now includes delivery discounts
  - 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/storefront-api-cart-discountallocations-field-now-includes-delivery-discounts
  md: >-
    https://shopify.dev/changelog/storefront-api-cart-discountallocations-field-now-includes-delivery-discounts.md
metadata:
  effectiveApiVersion: 2024-07
  affectedApi:
    - displayName: Storefront GraphQL API
      handle: storefront-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2024-05-15T13:47:35-04:00'
  postedAt: '2024-06-30T13:37:00-04:00'
  updatedAt: '2024-05-23T14:42:49-04:00'
  effectiveAt: '2024-06-30T13:37:00-04:00'
---

June 30, 2024

Tags:

* Storefront GraphQL API
* 2024-07

# Storefront API Cart `discountAllocations` field now includes delivery discounts

As part of the 2024-07 release, delivery-related discounts into the Storefront API's Cart `discountAllocations` field and a new `targetType` field have been added to differentiate the type of discount. The merchandise and delivery discounts are reflected in the `totalAmount` of the Cart.

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