Parameters
No parameters required
This endpoint takes no path, query, header or body parameters.
Returns categories that have at least one non-deleted product assigned as their main category, sorted by product count DESC (then name ASC). Also returns the count of products with no main category and the grand total. Intended for the product-list filter dropdown.
No parameters required
This endpoint takes no path, query, header or body parameters.
1 status code documented
itemsobject[]RequiredCategories with at least one product, sorted by count DESC.
codestringRequiredCategory code (used as filter value).
namestringRequiredCategory display name.
productCountnumberRequiredNumber of non-deleted products with this main category.
noCategoryCountnumberRequiredNumber of non-deleted products with main_category_id IS NULL.
totalCountnumberRequiredTotal number of non-deleted products in the organisation.
{
"items": [
{
"code": "example_code",
"name": "example_name",
"productCount": 0
}
],
"noCategoryCount": 0,
"totalCount": 0
}GET /bff/product-category/list-with-counts
curl -X GET "https://api.bizkithub.com/bff/product-category/list-with-counts" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.