Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getFacet

Endpoint for loading products and categories based on provided filters, as well as sorting and pagination options.

Signature

export declare function getFacet(
	context: SetupContext,
	params: GetFacetParams
): Promise<GetFacetResponse>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredGetFacetParamsFilters, sorting and pagination options

Returns

Paginated products data

Referenced Types

On this page