Class ByProjectKeyProductProjectionsKeyByKeyGet

All Implemented Interfaces:
AttributefilteringTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, Deprecatable200Trait<ByProjectKeyProductProjectionsKeyByKeyGet>, ErrorableTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, ExpandableRequest<ByProjectKeyProductProjectionsKeyByKeyGet,ProductProjectionExpansionBuilderDsl>, ExpandableTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, LocaleprojectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, PriceselectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, ProductProjectionExpansionMixin<ByProjectKeyProductProjectionsKeyByKeyGet>, ProjectionselectingTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, StoreprojectingtailoringTrait<ByProjectKeyProductProjectionsKeyByKeyGet>, ClientRequestCommand<ProductProjection>, CreateHttpRequestCommand, HttpRequestCommand<ProductProjection>, RequestCommand<ProductProjection>

Retrieves the projected representation of a Product by its Key.

By default, this endpoint returns the current representation of Products where the published flag is true. If a Product is unpublished (published=false), the endpoint returns a Not Found error.

Required access scopes:

  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} scope is required.

  • To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the view_products:{projectKey} scope.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.product.ProductProjection>> result = apiRoot
            .withProjectKey("{projectKey}")
            .productProjections()
            .withKey("{key}")
            .get()
            .execute()