BizKitHub
DocsAPI ReferenceProduct/bff/product/product-detail-category
getProductAdmin BFF

/bff/product/product-detail-category

Returns the main category and all sub-categories associated with a product. Includes both the directly assigned main category and categories linked via the relation table.

ProductgetBffProductProduct-detail-category

Parameters

1 query

Query parameters

· 1
codestringRequired

Product code.

Examplemy-product

Response schema

1 status code documented

200Success
mainCategoryCodestringOptional

Code of the main category, if set.

subCategoriesobject[]Required

All categories the product belongs to.

Each array item:
codestringRequired

Category code.

namestringRequired

Category display name.

Response example

application/json
{
  "mainCategoryCode": "example_mainCategoryCode",
  "subCategories": [
    {
      "code": "example_code",
      "name": "example_name"
    }
  ]
}

Request example

GET /bff/product/product-detail-category

get
curl -X GET "https://api.bizkithub.com/bff/product/product-detail-category?code=my-product" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key