Class ByProjectKeyMeOrdersPostString

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyMeOrdersPostString,Order>
com.commercetools.api.client.ByProjectKeyMeOrdersPostString
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyMeOrdersPostString>, Deprecatable201Trait<ByProjectKeyMeOrdersPostString>, ErrorableTrait<ByProjectKeyMeOrdersPostString>, ExpandableTrait<ByProjectKeyMeOrdersPostString>, io.vrap.rmf.base.client.ClientRequestCommand<Order>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.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("")
            .execute()