Class ByProjectKeyInStoreKeyByStoreKeyMeActiveCartHead

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

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

A ResourceNotFound error is returned in the following scenarios:

  • If no active Cart exists in a Store.
  • 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 contain a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.


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