Newer Version Available
ConnectApi.CartItemInput
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| cartDeliveryGroupId | String | ID of the cart delivery group. | Optional | 59.0 |
| customFields | List<SObject> | Array of sObjects and custom fields for the sObjects. Standard fields are ignored. The custom fields must already be defined for the sObject. Currently, only the CartItem sObject is supported. Field-level security rules from the shopper profile are applied to the custom fields. The rules are applied for registered shoppers and for the guest shopper profile. The custom fields can be of type Checkbox, Currency, Date, Email, LongTextArea, Number, Percent, Phone, Text, TextArea, Url, Address, or Location. The customFields property isn't supported in stores built on an Aura template. See Create a Cart and Cart Item with Custom Fields in a Commerce Store. | Optional | 61.0 |
| productId | String | ID of the product. | Required when adding an item to a cart Not supported when updating a cart item |
49.0 |
| productSellingModelId | String | Reserved for future use. | Optional | 59.0 |
| quantity | String | Quantity of the cart item. Use a value that can be converted to BigDecimal. | Required | 49.0 |
| subscriptionTerm | Integer | Reserved for future use. | Optional | 59.0 |
| subType | ConnectApi.CartItemSubType | Subtype of item in a cart.Possible values are:
|
Optional | 64.0 |
| type | ConnectApi.CartItemType | Type of item in a cart.
Value is Product.
|
Required when adding an item to a cart Not supported when updating a cart item |
49.0 |