Search.../

Stores to eCommerce Cart Conversion Table

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

Certain information that used to be held in the Cart is now kept in the Checkout. These properties are indicated 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 is completed (order.paymentStatus property value is PAID), the cart is deleted and the onCartDeleted() event is triggered. Any attempt to retrieve it via the getCart() function will fail. 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 in checkout.priceSummary and/or order.priceSummary.
billingAddressBilling address is now kept in the Checkout and Order.
appliedCoupon.couponIdappliedDiscounts[i].coupon._id - The coupon is now an item in the appliedDiscounts array. To get it, search the appliedDiscounts array for the 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 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.couponTypeNo longer returned.
totalsAll totals properties are available by using the estimateCurrentCartTotals() function, or by passing the cart ID to the Cart API's estimateTotals() function, under priceSummary in the response.
shippingInfoAll shippingInfo properties are available by using the estimateCurrentCartTotals() function, or by passing the cart ID to the Cart API's estimateTotals() function.
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.id and buyerInfo.identityType: ADMINThis identity is no longer supported.
buyerInfo.emailBuyer email is now kept in Checkout.
buyerInfo.phoneBuyer phone is now kept in Checkout.
buyerInfo.firstNameBuyer first name is now kept in Checkout.
buyerInfo.lastNameBuyer last name is now 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
lineItems[i].namelineItems[i].productName.translated
lineItems[i].quantity*lineItems[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
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

Was this helpful?