Class ByProjectKeyMeGet

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

Returns a Customer for a given Query Predicate. Returns a 200 OK status if successful.

A ResourceNotFound error is returned in the following scenarios:

  • If no Customer exists for the given Query Predicate.
  • If a Customer exists for the given Query Predicate, but does not have an id value that matches the customer:{id} scope.


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.Customer>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .get()
            .execute()