Class ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet

All Implemented Interfaces:
AttributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, ProjectionselectingvariantTrait<ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet>, ClientRequestCommand<VariantProjection>, CreateHttpRequestCommand, HttpRequestCommand<VariantProjection>, RequestCommand<VariantProjection>

Retrieves a Variant Projection by its ID in the specified Store.

Only returns Variants belonging to Products distributed through the Store's configured channels.

Required access scopes:

  • To retrieve the current representation, the view_published_products:{projectKey} scope is required.

  • To retrieve the staged representation, the API Client must have the view_products:{projectKey} scope.

  • To access Variant Projections in the context of a Store, the view_products:{projectKey}:{storeKey} scope is required.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant.VariantProjection>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .variantProjections()
            .withId("{ID}")
            .get()
            .execute()