alter_stock_item
Modify an existing stock item's name, group, unit, opening stock, GST rate, HSN, or description; only supplied fields change, and opening stock updates require confirmation.
Instructions
Modify a stock item: rename (new_name), group, unit, opening stock, GST rate, HSN, description. Only given fields change. Opening stock changes are two-step: the first call only returns current vs new opening figures; ask the user, then repeat with confirm_opening_change: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Current item name | |
| unit | No | Base unit symbol; must exist (see create_master type unit) | |
| group | No | Stock group (default Primary) | |
| aliases | No | Alias names | |
| company | No | Company name as shown in Tally. Omit to use the currently active company. | |
| dry_run | No | If true, only return the XML that would be sent; nothing is written to Tally and no backup is taken. | |
| category | No | Stock category | |
| gst_rate | No | Total GST % (IGST); CGST/SGST are set to half each | |
| hsn_code | No | ||
| new_name | No | ||
| cess_rate | No | ||
| extra_xml | No | Advanced: raw XML tags appended inside <STOCKITEM> | |
| taxability | No | ||
| description | No | ||
| opening_rate | No | ||
| opening_value | No | Defaults to quantity x rate | |
| opening_godown | No | Godown holding the opening stock (default Main Location) | |
| hsn_description | No | ||
| opening_quantity | No | ||
| confirm_opening_change | No | Set true ONLY after the user has seen the current vs new opening figures and explicitly approved the change |