Home > @vsf-enterprise/epcc-api > CatalogEndpoints > getProductsByHierarchy

# CatalogEndpoints.getProductsByHierarchy() method

Returns the products associated with the specified hierarchy in the catalog. The products must be in the live status.

Signature:

getProductsByHierarchy(context: ElasticPathIntegrationContext, params: GetProductsByHierarchyParams): Promise<ProductListResponse>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params GetProductsByHierarchyParams ID of the hierarchy and optional filter parameters can be passed in.

Returns:

Promise<ProductListResponse>