Class ByProjectKeyMeOrdersPost

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyMeOrdersPost>, Deprecatable201Trait<ByProjectKeyMeOrdersPost>, ErrorableTrait<ByProjectKeyMeOrdersPost>, ExpandableTrait<ByProjectKeyMeOrdersPost>, ClientRequestCommand<Order>, CreateHttpRequestCommand, HttpRequestCommand<Order>, RequestCommand<Order>

The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts Permission.

Creating an Order produces the OrderCreated Message.

Specific Error Codes:

  • OutOfStock
  • PriceChanged
  • DiscountCodeNonApplicable
  • AssociateMissingPermission


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .orders()
            .post(null)
            .execute()