Class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersQuotesPost

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

Creates an Order from a Quote in a BusinessUnit.

The Quote must reference the same Business Unit as the businessUnitKey path parameter, must have the Pending state, and must be valid (not past the validTo date). If these criteria are not met, an InvalidOperation error is returned.

Specific Error Codes:

  • InvalidItemShippingDetails
  • OutOfStock


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .asAssociate()
            .withAssociateIdValue("{associateId}")
            .inBusinessUnitKeyWithBusinessUnitKeyValue("{businessUnitKey}")
            .orders()
            .orderQuote()
            .post(null)
            .execute()