ConnectApi.PromotionCartItemInput

Item in a cart during promotion evaluation.

PropertyTypeDescriptionRequired or OptionalAvailable Version
cartDelivery​GroupIdStringID of the cart delivery group.Required when evaluating shipping promotions57.0
cartIdStringID of the cart.Optional57.0
idStringID of the cart item. Must be unique across all items in the cart.Required57.0
itemDescriptionStringDescription of the cart item.Optional57.0
itemNameStringName of the cart item.Optional57.0
listPriceStringList price of the cart item.Optional57.0
product2IdStringProduct ID of the cart item.Required if sku isn’t specified57.0
quantityStringNumber of items in the cart.Required57.0
salesPriceStringSales price of the cart item. This is the price per quantity and the value used to compute the discount. If salesPrice and totalLineBaseAmount are specified, totalLineBaseAmount is used.Required if totalLineBaseAmount isn’t specified57.0
skuStringStock keeping unit (SKU) of the cart item.Required if product2Id isn’t specified57.0
subTypeConnectApi.​CartItemSubTypeSubtype of item in a cart.Possible values are:
  • Bonus—A bonus product.
  • Gift—A gift product.
Optional64.0
totalLineBase​AmountStringTotal amount for the cart item, equal to sales price multiplied by quantity. This value is used to compute the discount. If salesPrice and totalLineBaseAmount are specified, totalLineBaseAmount is used.Required if salesPrice isn’t specified57.0
totalListBase​AmountStringTotal amount for the cart item based on list price and quantity.Optional57.0
typeConnectApi.​CartItemTypeValues are:
  • DeliveryCharge
  • Product
Required when evaluating shipping promotions57.0

See Also