Class ByProjectKeyMeActiveCartGet

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyMeActiveCartGet>, ErrorableTrait<ByProjectKeyMeActiveCartGet>, ExpandableTrait<ByProjectKeyMeActiveCartGet>, ClientRequestCommand<Cart>, CreateHttpRequestCommand, HttpRequestCommand<Cart>, RequestCommand<Cart>

Retrieves the Customer's most recently modified active Cart. 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 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}")
            .me()
            .activeCart()
            .get()
            .execute()