The My Orders endpoint intentionally provides no write access to the fields on an Order. This provides extra security in scenarios when the client application must communicate directly with the commercetools API on behalf of a customer, such as commerce in a mobile application.
Responses are equal to the responses on the order endpoint, but requests differ. Orders can not be changed via this endpoint once created, and
orderNumber can not be set.
id- String - Required
The unique ID of the cart from which an order is created.
version- Number - Required
Get Order by ID
Response Representation: Order
where- Query Predicate - Optional
sort- Sort - Optional
expand- Expansion - Optional
limit- Number - Optional
offset- Number - Optional
Create Order from a Cart
Creates an order from a Cart. The cart must have a shipping address set which is used for the tax calculation.
The cart data is copied to the created order.
Specific Error Codes:
This method produces the OrderCreated message.