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. 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 |
| 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 |