Class ByProjectKeyCartsPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCartsPost>, ErrorableTrait<ByProjectKeyCartsPost>, ExpandableTrait<ByProjectKeyCartsPost>, ClientRequestCommand<Cart>, CreateHttpRequestCommand, HttpRequestCommand<Cart>, RequestCommand<Cart>

Creating a Cart fails with an InvalidOperation error if the ShippingMethod referenced in the CartDraft has a predicate that does not match the Cart.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
            .withProjectKey("{projectKey}")
            .carts()
            .post(null)
            .execute()