Class ByProjectKeyInStoreKeyByStoreKeyCartsPost

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

Creates a Cart in the Store specified by storeKey. When using this endpoint the Cart's store field is always set to the Store specified in the path parameter. If the referenced ShippingMethod in the CartDraft has a predicate that does not match, an InvalidOperation error is returned.



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