Class ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, PagingTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, QueryTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, SortableTrait<ByProjectKeyInStoreKeyByStoreKeyMeOrdersGet>, ClientRequestCommand<OrderPagedQueryResponse>, CreateHttpRequestCommand, HttpRequestCommand<OrderPagedQueryResponse>, RequestCommand<OrderPagedQueryResponse>

Retrieves Orders in a Store for the authenticated Customer or anonymous user.

A ResourceNotFound error is returned in the following scenarios:

  • If no Orders exist that match the provided query predicate.
  • If an 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.OrderPagedQueryResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .me()
            .orders()
            .get()
            .execute()