Class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet,VariantAttributes>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, ProjectionselectingvariantTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, SupplychannelfilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, VariantattributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDVariantAttributesGet>, ClientRequestCommand<VariantAttributes>, CreateHttpRequestCommand, HttpRequestCommand<VariantAttributes>, RequestCommand<VariantAttributes>

Returns a lightweight representation of all Variants for a Product, including only the requested variant-level Attributes and minimal availability data, scoped to a specific Store.

Designed for building attribute selectors on product detail pages (PDPs) with large numbers of variants. Only available for Projects with productCatalogModel set to Modular.

Product-level Attributes are omitted from the response.

Required access scopes:

  • To retrieve the current representation of published Products (published data), the view_published_products:{projectKey} and view_products:{projectKey}:{storeKey} scope is required.
  • To retrieve the staged representation of Products (draft data), the API Client must have the view_products:{projectKey} and view_products:{projectKey}:{storeKey} scope.


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant_attributes.VariantAttributes>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .productProjections()
            .withId("{ID}")
            .variantAttributes()
            .get()
            .withFilterAttributes(filterAttributes)
            .execute()