Class ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead

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

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

A ResourceNotFound error is returned in the following scenarios:

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