Readonly
actionOptional
Readonly
customCustom Fields for the Custom Line Item.
Optional
Readonly
externalAn external Tax Rate can be set if the Cart has External
TaxMode.
Optional
Readonly
keyUser-defined unique identifier of the Custom Line Item.
Readonly
moneyMoney value of the Custom Line Item. The value can be negative.
Readonly
nameName of the Custom Line Item.
Optional
Readonly
priceStandard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget
are applied to the Custom Line Item.External
, Cart Discounts are not considered on the Custom Line Item.Optional
Readonly
quantityNumber of Custom Line Items to add to the Cart.
Optional
Readonly
shippingContainer for Custom Line Item-specific addresses.
Readonly
slugUser-defined identifier used in a deep-link URL for the Custom Line Item.
It must match the pattern [a-zA-Z0-9_-]{2,256}
.
Optional
Readonly
taxUsed to select a Tax Rate when a Cart has the Platform
TaxMode.
If [TaxMode](ctp:api:type:TaxMode) is `Platform`, this field must not be empty.
If the Cart already contains a CustomLineItem with the same
slug
,name
,money
,taxCategory
,state
, and Custom Fields, then only the quantity of the existing Custom Line Item is increased. If CustomLineItemshippingDetails
are set, they are merged with thetargets
that already exist on the ItemShippingDetails of the Custom Line Item. In case of overlapping address keys the ItemShippingTargetquantity
is summed up.