ConnectApi.CartInput

A cart.

PropertyTypeDescriptionRequired or OptionalAvailable Version
currencyIsoCodeStringCurrency ISO code of the cart.Optional57.0
customFieldsList<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 WebCart 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.Optional61.0
effective​AccountIdStringID of the buyer account or guest buyer profile for which the request is made.If unspecified, the default value is determined from context.Optional49.0
isSecondaryBooleanSpecifies whether the cart is secondary (true) or not (false).If unspecified, defaults to false.Optional53.0
nameStringName of the cart. The name can have up to 250 Unicode characters. Avoid using special characters in the cart name, including \"'<>@!$#&%\{[]}.
If unspecified, a cart name is generated automatically using the pattern, Untitled Cart - [Date] [Time].
Optional49.0
orderOwnerIdStringID of the owner of the order.Optional58.0
typeConnectApi.​CartTypeType of cart. Vaues are:
  • Cart—Cart created by a customer.
  • PayNowReadOnly—Clone of a Template cart that the customer can check out with using the Pay Now feature.
  • Template—Cart created by an internal user.
If unspecified, defaults to Cart.
Optional49.0
typeAsStringStringType of the cart provided as a string.Optional59.0