---
title: Changes to Cart and CartLine on Storefront API - 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/changes-to-cart-and-cartline-on-storefront-api'
  md: >-
    https://shopify.dev/changelog/changes-to-cart-and-cartline-on-storefront-api.md
metadata:
  effectiveApiVersion: 2022-07
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2022-06-15T09:58:51-04:00'
  postedAt: '2022-06-15T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:34-05:00'
  effectiveAt: '2022-06-15T00:00:00-04:00'
---

June 15, 2022

Tags:

* API
* 2022-07

# Changes to Cart and CartLine on Storefront API

As part of the GraphQL Storefront API 2022-07 API release, the following are changes to have been made to the `Cart` and `CartLine` object:

* New `attribute` field with a `key` argument
* `estimatedCost` is renamed to `cost` on `Cart`.
* `estimatedCost` is renamed to `cost` on `CartLine`.
* Add `subtotalAmountEstimated`, `totalAmountEstimated`, `totalTaxAmountEstimated`, `totalDutyAmountEstimated` to `CartCost`
* `amount` is renamed to `amountPerQuantity` on `CartLineCost`.
* `compareAtAmount` is renamed to `compareAtAmountPerQuantity` on `CartLineCost`.

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