Class ByProjectKeyInStoreKeyByStoreKeyOrdersQuotesPost

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersQuotesPost>, ClientRequestCommand<Order>, CreateHttpRequestCommand, HttpRequestCommand<Order>, RequestCommand<Order>

Creates an Order from a Quote in a Store. The referenced Quote must have the Pending state and must be valid (not past the validTo date); otherwise, an InvalidOperation error is returned.

Produces the OrderCreated Message.

Specific Error Codes:

  • OutOfStock
  • InvalidItemShippingDetails
  • InvalidOperation
  • CountryNotConfiguredInStore


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