Menu
Create Orders
Create an order.
POST
/organizations/{organizationId}/ordersUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Create Orders action (under Orders (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{createOrders.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"billingAddress": null,
"currency": "USD",
"orderTotal": 39.27,
"paymentInstruments": [
{
"paymentMethodId": "PAYPAL",
"paymentTransaction": null
}
],
"productItems": [
{
"basePrice": 34.32,
"grossPrice": 34.32,
"netPrice": 30.32,
"productId": "apple-ipod-classic",
"quantity": 3,
"shipmentId": "shipment00001",
"tax": 4,
"brand": "brand0001",
"itemText": "Green Umbrella",
"optionItems": [
{
"basePrice": 49.99,
"grossPrice": 99.99,
"netPrice": 49.99,
"tax": 0.19,
"optionId": "consoleWarranty",
"optionValueId": "000",
"productId": "apple-ipod-classic",
"itemText": "Extended Warranty - None",
"taxBasis": 50,
"priceAdjustments": [
{
"grossPrice": null,
"netPrice": null,
"tax": null,
"amount": null,
"basePrice": null,
"itemText": null,
"reasonCode": null,
"taxBasis": null
}
]
}
],
"priceAdjustments": [
{
"grossPrice": -6,
"netPrice": -5,
"tax": 1,
"amount": 6,
"basePrice": -6,
"itemText": "6 Dollar off.",
"reasonCode": "Special Offer.",
"taxBasis": -5
}
],
"productName": "green umbrella"
}
],
"shipments": [
{
"shipmentId": "shipment00001",
"shippingMethod": "EXPRESS",
"shippingAddress": null,
"shippingTotal": 4.95,
"taxTotal": 0.75
}
],
"taxTotal": 0,
"businessType": "b2c",
"channelType": "instagramcommerce",
"customerLocale": "en_US",
"orderNo": "ORDER_000000001",
"orderPriceAdjustments": [
{
"grossPrice": -6,
"netPrice": -5,
"tax": 1,
"amount": 6,
"basePrice": -6,
"itemText": "6 Dollar off.",
"reasonCode": "Special Offer.",
"taxBasis": -5
}
]
}
Response
Returns 201 with a any. Read it in later steps with {{createOrders.response.data.<field>}}.
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?