Class ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet,Cart>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdGet>, io.vrap.rmf.base.client.ClientRequestCommand<Cart>, io.vrap.rmf.base.client.RequestCommand<Cart>

Retrieves the recently modified active Cart of a Customer with CartOrigin Customer. If no active Cart exists, a ResourceNotFound error is returned.

If the Cart exists in the Project but does not have the store field, or the store field references a different Store, a ResourceNotFound error is returned.

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}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .carts()
            .withCustomerId("{customerId}")
            .get()
            .execute()