Class ByProjectKeyCartsCustomerIdByCustomerIdGet

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdGet,Cart>
com.commercetools.api.client.ByProjectKeyCartsCustomerIdByCustomerIdGet
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyCartsCustomerIdByCustomerIdGet>, ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdGet>, ExpandableTrait<ByProjectKeyCartsCustomerIdByCustomerIdGet>, ClientRequestCommand<Cart>, CreateHttpRequestCommand, HttpRequestCommand<Cart>, RequestCommand<Cart>

Retrieves the most recently modified active Cart of a Customer with CartOrigin Customer. If no active Cart exists, this method returns a ResourceNotFound error.

To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.



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