Class ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDGet

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

Returns an Order 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.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .me()
            .orders()
            .withId("{ID}")
            .get()
            .execute()