Class ByProjectKeyMeActiveCartHead

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyMeActiveCartHead>, ErrorableTrait<ByProjectKeyMeActiveCartHead>, ClientRequestCommand<JsonNode>, CreateHttpRequestCommand, HttpRequestCommand<JsonNode>, RequestCommand<JsonNode>

Checks if an active Cart exists. Returns a 200 OK status if successful.

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 an anonymousId that matches the anonymous_id:{id} scope.


   CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .activeCart()
            .head()
            .execute()