Class ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead

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

Checks if an Order exists for a given Query Predicate in a Store. Returns a 200 OK status if successful.

A ResourceNotFound error is returned in the following scenarios:

  • If no Orders exist in the Store that match the Query Predicate.
  • If an Order matches the Query Predicate, but no store is specified, or the store field references a different Store.
  • If an Order matches the Query Predicate, 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}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .me()
            .orders()
            .head()
            .execute()