Logo
Salesforce Developers API Documentation

Create a cart

POST {{orgUrl}}/services/data/v{{apiVersion}}/commerce/webstores/{{webstoreId}}/carts

Creates a Cart and sets the variable _cartId.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST '/services/data/v57.0/commerce/webstores//carts' -H 'Content-Type: application/json' -d '{"name":"My Cart","type":"Cart"}'

ENDPOINTS