Developer changelog

Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.

Get updates by RSS

Changes to Cart and CartLine on Storefront API

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.