Class ByProjectKeyMeShoppingListsByIDHead

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

Checks if a ShoppingList exists for a given id. Returns a 200 OK status if successful.

A ResourceNotFound error is returned in the following scenarios:

  • If no ShoppingList exists for the given id.
  • If a ShoppingList exists but does not contain either an anonymousId that matches the anonymous_id:{id} scope, or a customer with id value that matches the customer:{id} scope.


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