Product Category Service

Back to Catalog

Overview

The Product Category module manages the many-to-many relationship between Products and Categories.

It defines how products are assigned to categories and enables:

This module does not manage category definitions or product data itself. It only manages the relationship between them.

All operations are tenant-aware and fully audited.


Endpoints

Back to Catalog

GET

/api/v1/ProductCategory/GetAllProductsByCategoryId/{categoryId}

Returns a list of product IDs assigned to a given category.

Behavior:

Response:

Authorization:


POST

/api/v1/ProductCategory/AddNewProductCategory

Creates a relationship between a product and a category.

Query parameters:

Behavior:

Errors:

Authorization:


DELETE

/api/v1/ProductCategory/DeleteProductCategoriesByProductId/{productId}

Removes all categories assigned to a specific product.

Behavior:

Errors:

Authorization:


DELETE

/api/v1/ProductCategory/DeleteProductCategoriesByCategoryId/{categoryId}

Removes all products assigned to a specific category.

Behavior:

Errors:

Authorization:


Notes