Class ByProjectKeyMeOrdersByIDGet

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyMeOrdersByIDGet>, ErrorableTrait<ByProjectKeyMeOrdersByIDGet>, ExpandableTrait<ByProjectKeyMeOrdersByIDGet>, ClientRequestCommand<Order>, CreateHttpRequestCommand, HttpRequestCommand<Order>, RequestCommand<Order>

Returns an Order for a given id. Returns a 200 OK status if successful.

A ResourceNotFound error is returned in the following scenarios:

  • If no Order exists for the given id.
  • If the Order exists but does not have either a customerId that matches the customer:{id} scope, or an anonymousId that matches the anonymous_id:{id} scope.


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .orders()
            .withId("{ID}")
            .get()
            .execute()