commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store Order → Create Order in Store

AI-generated

Summary

Create a new order in a specified store within the commercetools platform using a cart as the basis.

Inputs

  • Store Order Key (required) — Key identifying the store order resource.
  • Store Key (required) — Key identifying the store in which to create the order.
  • Cart › Id — ID of the cart to create the order from.
  • Cart › Type Id — Type ID of the cart to be used for order creation.

Output shape

a JSON object representing the newly created store order

The returned JSON contains details of the created order in the specified store. Errors during creation will cause operation failure unless 'Continue On Fail' is active, in which case error details are provided per item.

Examples

Example 1: Create a new order in a store from a specified cart

Set the 'Store Order Key' to the target order key, 'Store Key' to the target store, and optionally provide the Cart Id and Cart Type Id to base the order on an existing cart.

Links

Discussion