Class ByProjectKeyInStoreKeyByStoreKeyMeActiveCartGet

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

Retrieves the Customer's most recently modified active Cart in a Store. Returns a 200 OK status if successful.

Carts with Merchant or Quote CartOrigin are ignored.

A ResourceNotFound error is returned in the following scenarios:

  • If no active Cart exists.
  • If an active Cart exists but does not have a store specified, or the store field references a different Store.
  • If an active Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.


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