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.
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 akey
argument -
estimatedCost
is renamed tocost
onCart
. -
estimatedCost
is renamed tocost
onCartLine
. - Add
subtotalAmountEstimated
,totalAmountEstimated
,totalTaxAmountEstimated
,totalDutyAmountEstimated
toCartCost
-
amount
is renamed toamountPerQuantity
onCartLineCost
. -
compareAtAmount
is renamed tocompareAtAmountPerQuantity
onCartLineCost
.
Learn more about the Cart
object on Shopify.dev.