Add a department
dept_addAdd a new department (product category) to the catalog. Requires a title. Optional fields include VAT rate (vatID), price, discount, position, department group, and variations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dept_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Default price for free-price items | |
| stock | No | Stock quantity override at department level | |
| title | No | Department/category display name | |
| vatID | No | Default VAT rate ID for this department | |
| unitID | No | Unit of measure ID | |
| position | No | Display order on keyboard | |
| shopHide | No | 1 to hide from online shop | |
| needPrepa | No | 1 if items require kitchen preparation | |
| discountID | No | Default discount ID | |
| eatinvatID | No | Eat-in VAT rate ID | |
| shortTitle | No | Short label for receipt or keyboard | |
| deptGroupID | No | Department group this department belongs to | |
| activityCode | No | Accounting activity code | |
| keyboardHide | No | 1 to hide from POS keyboard | |
| variationID0 | No | Variation type ID for slot 0 | |
| variationID1 | No | Variation type ID for slot 1 | |
| variationID2 | No | Variation type ID for slot 2 | |
| variationID3 | No | Variation type ID for slot 3 | |
| variationID4 | No | Variation type ID for slot 4 |