Newer Version Available

This content describes an older version of this product. View Latest

Commerce Webstore Carts

Create a cart.

Buyers with read access to carts can create and delete carts.

Resource
1/commerce/webstores/webstoreId/carts
Available version
49.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
<cart>
JSON example
1{
2   "name":"My Cart",
3   "type":"Cart"
4}
Properties
Name Type Description Required or Optional Available Version
currencyIsoCode String Currency ISO code of the cart. Optional 57.0
effective​AccountId String ID of the buyer account or guest buyer profile for which the request is made. If unspecified, the default value is determined from context. Optional 49.0
isSecondary Boolean Specifies whether the cart is secondary (true) or not (false). If unspecified, defaults to false. Optional 53.0
name String Name of the cart. The name can have up to 250 Unicode characters. If unspecified, defaults to the generated name. Optional 49.0
type String Type of cart. Value is Cart. If unspecified, defaults to Cart. Optional 49.0
Response body for POST
Cart Summary