Class ByProjectKeyProductProjectionsByIDGet

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

Retrieves the projected representation of a Product by its ID.

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()
            .withId("{ID}")
            .get()
            .execute()