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://yourInstance.salesforce.com/services/data/68.0/connect/consumer/checkout

Available Version

66.0

HTTP Methods

POST

Request Parameters for POST

Parameter Name Type Description Required or Optional Available Version
cartID String Id of the cart. Required 66.0

Request Body for POST

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

Response Body

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