Stores to eCommerce Cart Conversion Table

To help with migration from the Stores Cart API to the eCommerce Cart and Checkout APIs, refer to the table below for field changes in name and/or location.

Certain information that used to be held in the Cart, is now kept in the Checkout object. These fields are marked in the table below, with more information available in the Stores Cart to eCommerce Checkout Conversion Table.

The address object used in the eCommerce APIs is slightly different to the one used in the Stores APIs. For more details, refer to the address object conversion table.

Fields marked with an asterisk (*) signify little to no change in semantics or service location.

Stores CarteCommerce Cart
id*id
statusAll carts in the eCommerce Cart API have a status value of INCOMPLETE. After a purchase, the cart is deleted and the Cart Deleted Webhook is triggered. Any attempt to retrieve it via the Get Cart endpoint will yield a 404 error code. In the Stores Cart API, the cart's status would change to COMPLETE after a purchase.
weightUnit*weightUnit
buyerNote*buyerNote
currency.codecurrency
currency.symbolNo longer returned. Instead, for every price returned, we also provide the formatted price.
convertedCurrency.codeconversionCurrency
convertedCurrency.symbolNo longer returned. Instead, for every converted price returned, we also provide the formatted converted price.
billingAddressBilling address is no longer kept in the Cart. This information is only kept in Checkout.
appliedCoupon.couponIdappliedDiscounts[i].coupon.id - The coupon is now an item in the appliedDiscounts array. To get it, search the appliedDiscounts array for the only populated coupon field.
appliedCoupon.codeappliedDiscounts[i].coupon.code - The coupon is now an item in the appliedDiscounts array. To get it, search the appliedDiscounts array for the only populated coupon field.
appliedCoupon.nameThis field is held only in the Checkout object under appliedDiscounts[i].coupon.name.
appliedCoupon.discountValueThis field is held only in the Checkout object under appliedDiscounts[i].coupon.amount.amount.
appliedCoupon.convertedDiscountValueThis field is held only in the Checkout object under appliedDiscounts[i].coupon.amount.convertedAmount.
appliedCoupon.couponTypeNo longer returned.
totalsFuture functionality will see this information made available in the eCommerce Cart API.
convertedTotalsFuture functionality will see this information made available in the eCommerce Cart API.
shippingInfoShipping information is now only kept in Checkout.
buyerInfo.id and buyerInfo.identityType: CONTACTbuyerInfo.contactId only.
buyerInfo.id and buyerInfo.identityType: VISITORbuyerInfo.visitorId only.
buyerInfo.id and buyerInfo.identityType: MEMBERbuyerInfo.memberId only.
buyerInfo.emailBuyer email is now only kept in Checkout.
buyerInfo.phoneBuyer phone is now only kept in Checkout.
buyerInfo.firstNameBuyer first name is now only kept in Checkout.
buyerInfo.lastNameBuyer last name is now only kept in Checkout.
lineItems[i].idlineItems[i].id - Note: this id is of type GUID. In the Stores Cart API, the lineItem.id is of type Int32.
lineItems[i].productIdlineItems[i].catalogReference.catalogItemId - See Stores Catalog eCommerce Integration for more information.
lineItems[i].namelineItems[i].productName.original
lineItems[i].quantitylineItems[i].quantity
lineItems[i].weightlineItems[i].physicalProperties.weight
lineItems[i].skulineItems[i].physicalProperties.sku
lineItems[i].lineItemType: "PHYSICAL"lineItems[i].itemType.preset: "PHYSICAL"
lineItems[i].lineItemType: "DIGITAL"lineItems[i].itemType.preset: "DIGITAL"
lineItems[i].lineItemType: "CUSTOM_AMOUNT_ITEM"lineItems[i].itemType.custom and lineItems[i].catalogReference is empty.
lineItems[i].noteslineItems[i].descriptionLines[i].plainText.original
lineItems[i].customTextFieldslineItems[i].descriptionLines
lineItems[i].mediaItem.mediaTypeAll line item media in the Cart API are images.
lineItems[i].mediaItem.urllineItems[i].media.url
lineItems[i].mediaItem.widthlineItems[i].media.width
lineItems[i].mediaItem.heightlineItems[i].media.height
lineItems[i].optionslineItems[i].descriptionLines - See Stores Catalog eCommerce Integration for more information.
lineItems[i].priceData.pricelineItems[i].price.amount
lineItems[i].priceData.totalPricelineItems[i].price.amount X lineItems[i].quantity
lineItems[i].convertedPriceData.pricelineItems[i].price.convertedAmount
lineItems[i].convertedPriceData.totalPricelineItems[i].price.convertedAmount X lineItems[i].quantity
Did this help?