Logo
Salesforce Developers API Documentation

Create/Start checkout

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

Starts a checkout for the cart identified by the variable _cartId. Sets the checkout identifier in the variable _checkoutId.

 

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//checkouts/' -H 'Content-Type: application/json' -d '{"cartId":"current"}'

ENDPOINTS