Create Order (POST)

Use the Create Order API to create an order from a cart ID. When you provide both the inputs, the cart ID takes precedence. This API runs in synchronous mode to support only one order. The API takes a cart ID as a request and creates an order from a webcart as per the requested resource.

Resource 

1/connect/consumer/checkout

Resource Example 

1https://YOUR_INSTANCE.salesforce.com/services/data/68.0/connect/consumer/checkout

Where, YOUR_INSTANCE is a variable.

Available Version 

66.0

HTTP Methods 

POST

Request Parameters for POST 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
cartIDStringId of the cart.Required66.0

Request Body for POST 

JSON Example 

1{
2"cartId": "0a6xx000000039BAAQ",
3}

Response Body for POST 

1[
2    {
3  "errors": [],
4  "orderId": "801xx000003GlM3AAK"
5}