Category Service

Back

Overview

Categories are used to organize products into logical hierarchies. They support parent-child relationships and are used for navigation, filtering, reporting and merchandising.

All category operations are tenant-aware and scoped to the current tenant.


Endpoints

Back to Catalog

GET

/api/v1/Category/GetCategoryById/{id}

Returns a single category by its numeric identifier.

Behavior:

Authorization:


GET

/api/v1/Category/GetCategoryByCode/{code}

Returns a single category by its unique code.

Behavior:

Authorization:


GET

/api/v1/Category/GetAllCategories

Returns all categories filtered by parent and active status.

Query parameters:

Behavior:

Authorization:


POST

/api/v1/Category/AddNewCategory

Creates a new category.

Request body:

Behavior:

Errors:

Authorization:


PUT

/api/v1/Category/UpdateCategoryById/{id}

Updates an existing category.

Request:

Behavior:

Errors:

Authorization:


DELETE

/api/v1/Category/DeleteCategoryById/{id}

Deletes a category by its identifier.

Behavior:

Errors:

Authorization:


Notes