Class ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet

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

Retrieves a Variant Projection by its key 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()
            .withKey("{key}")
            .get()
            .execute()