item_set_tracking_mode
Set an item's lot/serial tracking mode to none, lot, serial, or lot_and_serial. Non-none modes require zero on-hand stock; reverting 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| itemId | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |