Skip to content

Cart

Cart

The cart object represents the buyer’s cart.

const instance = new MyClass();

Properties

PropertyType
checkoutUrl?string
costCartCost
discountCodesCartDiscountCodes[]
idstring
linesCartLine[]
totalQuantitynumber
updatedAtstring

CartBuyerIdentity

The buyer identity object represents the buyer’s identity.

Properties

PropertyType
countryCode?string
customer?Customer
deliveryAddressPreferencesMailingAddress[]
email?string
phone?string
purchasingCompany?PurchasingCompany
walletPreferencesstring[]

CartCost

Properties

PropertyType
subtotalAmountMoney

CartDiscountCodes

Properties

PropertyType
applicableboolean
codestring

CartLineCost

Properties

PropertyType
amountPerQuantity?Money
compareAtAmountPerQuantity?Money
totalAmount?Money

CartLine

type CartLine: object;

Type declaration

NameTypeDescription
attributesAttribute[]-
costCartLineCost-
idstring-
isOptimisticboolean-
merchandiseProductVariant-
merchandiseIdstringThe ID of the merchandise that the buyer intends to purchase.
productIdstring-
quantitynumberThe quantity of the merchandise.
sellingPlanIdstringThe ID of the selling plan that the merchandise is being purchased with.
slugstring-

Company

type Company: object;

Type declaration

NameType
createdAtstring
externalIdstring
idstring
namestring
updatedAtstring

CompanyContact

type CompanyContact: object;

Type declaration

NameType
createdAtstring
idstring
localestring
titlestring
updatedAtstring

CompanyLocation

type CompanyLocation: object;

Type declaration

NameType
createdAtstring
externalIdstring
idstring
localestring
namestring
updatedAtstring

OptimisticCartLine

type OptimisticCartLine: CartLine & object;

The cart line object represents a line in the buyer’s cart.

const instance = new MyClass();

Type declaration

NameType
selectedVariantunknown

PurchasingCompany

type PurchasingCompany: object;

Type declaration

NameType
companyCompany
contactCompanyContact
locationCompanyLocation