Class ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString

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<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString,Order>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString>, Deprecatable201Trait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPostString>, 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
  • CountryNotConfiguredInStore
  • AssociateMissingPermission


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