How to find product assignments to categories through the API?

It is unclear from the API documentation on how to find category assignments for products through the API.

My goals is to GET from an API what products are assigned to a category (or what categories is a product or products assigned to). Is there an API for this?

1 Like

Hi matthew.b,
Products and categories are related to each other via intermediate entity ProductCategory. You can send a GET request to get the list of category assignments which are related to the category ProductCategory api/v1/Category/:id/productCategories. From the answer you can get the ID of products.

1 Like