Skip to content
Shopware

getCategories

getCategories ​

Definition ​

Get a list of categories by provided search criteria.

Signature ​

ts
export async function getCategories(
  searchCriteria?: ShopwareSearchParams,
  contextInstance: ShopwareApiInstance = defaultInstance,
)

Parameters ​

NameTypeDescription
searchCriteria
ShopwareSearchParams
contextInstance
ShopwareApiInstance
instance of the api client (by default it's an Axios instance)

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz