Cart Object


Create and manage an eCommerce cart

Properties
idstringformat GUID

Cart ID.


lineItemsArray <LineItem>Read-onlyminItems 1maxItems 300

Line items.


buyerNotestringmaxLength 1000

Buyer note left by the customer.


buyerInfoBuyerInfo

Buyer information.


currencystringRead-onlyformat CURRENCY

The site's default currency, in three-letter ISO-4217 alphabetic format.


conversionCurrencystringRead-onlyformat CURRENCY

The currency selected by the buyer during the purchase flow, in three-letter ISO-4217 alphabetic format.


buyerLanguagestringRead-only

Language for communication with the buyer. Defaults to the site language.

For a site that supports multiple languages, this is the language the buyer selected.


siteLanguagestringRead-only

Site language in which original values are displayed.


taxIncludedInPricesbooleanRead-only

Whether tax is included in line item prices.


weightUnitstringRead-only

Weight measurement unit - defaults to site's weight unit.


checkoutIdstringRead-onlyformat GUID

ID of the checkout that originated from this cart.


appliedDiscountsArray <CartDiscount>Read-only

Cart discounts.


createdDatestringRead-onlyformat date-time

Date and time the cart was created.


updatedDatestringRead-onlyformat date-time

Date and time the cart was updated.


contactInfoContactInfo

Contact info.


overrideCheckoutUrlstringmaxLength 1000

overrideCheckoutUrl allows the flexibility to redirect customers to a customized checkout page.

This field overrides the checkoutUrl in a cart or checkout. checkoutUrl is used in the Abandoned Checkout API to send customers back to their checkouts. By default, a checkoutUrl generates for a checkout and directs to a standard Wix checkout page. When overrideCheckoutUrl has a value, it will replace and set the value of checkoutUrl.


purchaseFlowIdstringRead-onlyformat GUID

Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.


selectedShippingOptionSelectedShippingOption

Selected shipping option.


businessLocationIdstringbetaformat GUID

The business location ID associated with the cart.

To learn more, see the Locations API.


paymentCurrencystringRead-onlybetaformat CURRENCY

Currency used for payment, in three-letter ISO-4217 alphabetic format.

Did this help?