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

# CatalogEndpoints.getHierarchies() method

Returns all hierarchies from the catalog.

Signature:

getHierarchies(context: ElasticPathIntegrationContext, params: GetHierarchiesParams): Promise<Hierarchy[]>;

# Parameters

Parameter Type Description
context ElasticPathIntegrationContext An auto-generated value prepended to the method as a first parameter.
params GetHierarchiesParams Optional id filter can be passed in.

Returns:

Promise<Hierarchy[]>