The Categories API manages the hierarchical category taxonomy for products, including nested child categories, image galleries (image_codes), form configuration schemas, and fast select dropdowns.
/v1/inventory/master/product-categories
| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <token> OAuth2 token. |
x-app-stage |
string |
Current tenant stage (dev, staging, prod). |
x-app-uid |
string |
Authenticated user UUID. |
| Parameter | Type | Default | Description |
|---|---|---|---|
companyId |
integer |
Required | Active operating company ID. |
view |
string |
A |
State: A (Active), I (Inactive), D (Trashed), ALL. |
GET /v1/inventory/master/product-categories?companyId=1&view=A
Returns top-level root categories with nested subcategories.
GET /v1/inventory/master/product-categories/with-children?companyId=1
200 OK{
"success": true,
"data": [
{
"id": 5,
"company_id": 1,
"name": "BEBIDAS ALCOHÓLICAS",
"parent_id": null,
"image_codes": ["cat_bebidas_alc_hero"],
"status": "A",
"children": [
{
"id": 12,
"name": "CERVEZAS",
"parent_id": 5,
"children": []
}
]
}
]
}
GET /v1/inventory/master/product-categories/simple-list?companyId=1
GET /v1/inventory/master/product-categories/config?companyId=1
Assign multiple image gallery identifiers to the category.
POST /v1/inventory/master/product-categories/5/image-codes?companyId=1
Content-Type: application/json
{
"image_codes": ["banner_cat_bebidas", "icon_cat_bebidas"]
}
Query direct children of a specific category node.
GET /v1/inventory/master/product-categories/5/children?companyId=1
GET /v1/inventory/master/product-categories/5/product-categories?companyId=1
POST /v1/inventory/master/product-categories?companyId=1
Content-Type: application/json
{
"name": "VINOS Y ESPUMANTES",
"parent_id": 5
}
GET /v1/inventory/master/product-categories/5?companyId=1
PUT /v1/inventory/master/product-categories/5?companyId=1
DELETE /v1/inventory/master/product-categories/5?companyId=1
PUT /v1/inventory/master/product-categories/5/restore?companyId=1