Class ByProjectKeyMeOrdersQuotesPostString

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

public class ByProjectKeyMeOrdersQuotesPostString extends StringBodyApiMethod<ByProjectKeyMeOrdersQuotesPostString,Order> implements ErrorableTrait<ByProjectKeyMeOrdersQuotesPostString>

Creates an Order from a Quote for the authenticated Customer. To create B2B Orders, the Customer must have the CreateMyOrdersFromMyQuotes Permission.

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
  • CountryNotConfiguredInStore
  • AssociateMissingPermission


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