Class ByProjectKeyOrdersImportPostString

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

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

Importing an Order produces the Order Imported Message.

Specific Error Codes:

  • OutOfStock
  • CountryNotConfiguredInStore


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