Class ByProjectKeyVariantProjectionsGet

All Implemented Interfaces:
AttributefilteringTrait<ByProjectKeyVariantProjectionsGet>, Deprecatable200Trait<ByProjectKeyVariantProjectionsGet>, ErrorableTrait<ByProjectKeyVariantProjectionsGet>, ExpandableTrait<ByProjectKeyVariantProjectionsGet>, LocaleprojectingTrait<ByProjectKeyVariantProjectionsGet>, PagingTrait<ByProjectKeyVariantProjectionsGet>, PriceselectingTrait<ByProjectKeyVariantProjectionsGet>, ProjectionselectingvariantTrait<ByProjectKeyVariantProjectionsGet>, QueryTrait<ByProjectKeyVariantProjectionsGet>, SortableTrait<ByProjectKeyVariantProjectionsGet>, ClientRequestCommand<VariantProjectionPagedQueryResponse>, CreateHttpRequestCommand, HttpRequestCommand<VariantProjectionPagedQueryResponse>, RequestCommand<VariantProjectionPagedQueryResponse>

Queries Variant Projections matching the provided predicates.

By default, this endpoint returns the current representation where variants are published.

Required access scopes:

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

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



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant.VariantProjectionPagedQueryResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .variantProjections()
            .get()
            .execute()