Class ByProjectKeyMeCartsByIDHead

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

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists.

A ResourceNotFound error is returned in the following scenarios:

  • If no Cart exists for a given id.
  • If the 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.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .carts()
            .withId("{ID}")
            .head()
            .execute()