Class ByProjectKeyMeOrdersHead

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

Checks if one or more Orders exist for the provided query predicate for the authenticated Customer or anonymous user. Returns a 200 status if successful.

A Not Found error is returned in the following scenarios:

  • If no Orders exist that match the provided query predicate.
  • If one or more Orders exist but don't have either 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}")
            .me()
            .orders()
            .head()
            .execute()