item_set_tracking_mode
Set an item's lot/serial tracking mode (none, lot, serial, or lot_and_serial) when it is stockable and has zero on-hand; switching to none requires archived, balanced lots and serials.
Instructions
Set an item's lot/serial tracking mode: none | lot | serial | lot_and_serial. The item must be stockable (track_stock true) and its current on-hand must be 0 for any non-none mode (else tracking_mode_requires_zero_stock); a service or non-stockable item is tracking_not_applicable. Going back to none needs every lot and serial for the item archived and balanced. Plain master data: posts no journal entry.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"itemId": "<itemId>",
"mode": "<mode>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "item_set_tracking_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| itemId | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |