Optional ReadonlyanonymousOptional ReadonlybillingBilling address associated with the Cart.
Optional ReadonlybusinessResourceIdentifier to the Business Unit the Cart should belong to. When the customerId of the Cart is also set, the Customer must be an Associate of the Business Unit. Only available for B2B-enabled Projects.
Optional ReadonlycountryUsed for Line Item price selection.
If used for Create Cart in Store, the provided country must be one of the Store's countries.
ReadonlycurrencyCurrency the Cart uses.
Optional ReadonlycustomCustom Fields for the Cart.
Optional ReadonlycustomerEmail address of the Customer that the Cart belongs to.
Optional ReadonlycustomerResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.
You can set either a `customerId` or a `customerGroup`.
If the Customer referenced in `customerId` belongs to a Customer Group then `customerGroup` is set automatically.
Optional Readonlycustomerid of the Customer that the Cart belongs to.
Optional ReadonlycustomCustom Line Items to add to the Cart.
Optional ReadonlycustomCustom Shipping Methods for a Cart with Multiple ShippingMode.
Optional ReadonlydeleteNumber of days after the last modification before a Cart is deleted. If not provided, the default value for this field configured in Project settings is assigned.
Create a [ChangeSubscription](ctp:api:type:ChangeSubscription) for Carts to receive a [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload) upon deletion of the Cart.
Optional Readonlydiscountcode of the existing DiscountCodes to add to the Cart.
Optional ReadonlyexternalExternal Tax Rate for the shippingMethod if the Cart has External TaxMode.
Optional ReadonlyinventoryDetermines how stock quantities are tracked for Line Items in the Cart.
Optional ReadonlyitemMultiple shipping addresses of the Cart. Each address must contain a key that is unique in this Cart.
The keys are used by LineItems to reference these addresses under their shippingDetails.
For Carts with `Single` [ShippingMode](ctp:api:type:ShippingMode): eligible Shipping Methods or applicable Tax Rates are determined by the address `shippingAddress`, and not `itemShippingAddresses`.
Optional ReadonlykeyUser-defined unique identifier for the Cart.
Optional ReadonlylineLine Items to add to the Cart.
Optional ReadonlylocaleLanguages of the Cart. Can only contain languages supported by the Project.
Optional ReadonlyoriginIndicates how the Cart was created.
Optional ReadonlypriceDetermines how the total prices on LineItems and CustomLineItems are rounded when calculated. If not set, the default value configured in the Project is used.
Optional ReadonlyshippingShipping Methods for a Cart with Multiple ShippingMode.
Optional ReadonlyshippingShipping address for a Cart with Single ShippingMode. Determines eligible ShippingMethod rates and Tax Rates of Line Items.
Must be one of the itemShippingAddresses when that field is also provided.
Optional ReadonlyshippingShipping Method for a Cart with Single ShippingMode. If the referenced ShippingMethod has a predicate that does not match the Cart, an InvalidOperation error is returned when creating a Cart.
Optional ReadonlyshippingSingle, only a single Shipping Method can be added to the Cart.
Multiple, multiple Shipping Methods can be added to the Cart.Optional ReadonlyshippingUsed as an input to select a ShippingRatePriceTier.
The data type of this field depends on the shippingRateInputType.type configured in the Project:
- If `CartClassification`, it must be [ClassificationShippingRateInputDraft](ctp:api:type:ClassificationShippingRateInputDraft).
- If `CartScore`, it must be [ScoreShippingRateInputDraft](ctp:api:type:ScoreShippingRateInputDraft).
- If `CartValue`, it cannot be set.
Optional ReadonlystoreResourceIdentifier to the Store the Cart should belong to. Once set, it cannot be updated.
Optional ReadonlytaxDetermines how taxes are calculated for taxedPrice.
Optional ReadonlytaxDetermines how Tax Rates are set.
Optional ReadonlytaxDetermines how monetary values are rounded when calculating taxes for taxedPrice. If not set, the default value configured in the Project is used.
Anonymous session associated with the Cart.