Home > @vsf-enterprise/sap-commerce-webservices-sdk > CatalogsApi > getCategories
CatalogsApi.getCategories() method
Returns information about a specified category that exists in a catalog version available for the current base store. Get information about catagory in a catalog version
Signature:
getCategories(baseSiteId: string, catalogId: string, catalogVersionId: string, categoryId: string, fields?: string, options?: any): Promise<import("axios").AxiosResponse<CategoryHierarchy>>;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| baseSiteId | string | Base site identifier | 
| catalogId | string | Catalog identifier | 
| catalogVersionId | string | Catalog version identifier | 
| categoryId | string | Category identifier | 
| fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL | 
| options | any | Override http request option. | 
Returns:
Promise<import("axios").AxiosResponse<CategoryHierarchy>>
Exceptions
{RequiredError} CatalogsApi