Class ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead

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

Checks if a ShoppingList exists with the provided id for the authenticated Customer or anonymous user in a Store. Returns a 200 status if successful.

A Not Found error is returned in the following scenarios:

  • If no ShoppingList matches the provided id in a Store.
  • If a ShoppingList matches the provided id but does not have a store specified, or the store field references a different Store.
  • If a ShoppingList matches the provided id in a Store 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}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .me()
            .shoppingLists()
            .withId("{ID}")
            .head()
            .execute()