Back to Developer changelog

Changes to Cart and CartLine on Storefront API

API

Effective June 15, 2022

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.