alter_ledger
Modify a TallyPrime ledger's name, group, contact, tax, address, or opening balance; only supplied fields change, and opening balance edits require explicit approval.
Instructions
Modify a ledger: rename (new_name), group, opening balance, bill-wise, address, state, pincode, GSTIN, PAN, contacts. Only given fields change. Opening balance changes are two-step: the first call only returns current vs new values for the user to approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pan | No | ||
| name | Yes | Current ledger name | |
| No | |||
| group | No | Parent group, e.g. "Sundry Debtors", "Indirect Expenses" | |
| gstin | No | ||
| phone | No | ||
| state | No | ||
| mobile | No | ||
| address | No | Address lines (replaces existing lines) | |
| aliases | No | Alias names | |
| company | No | Company name as shown in Tally. Omit to use the currently active company. | |
| country | No | ||
| dry_run | No | If true, only return the XML that would be sent; nothing is written to Tally and no backup is taken. | |
| pincode | No | ||
| new_name | No | ||
| extra_xml | No | Advanced: raw XML tags appended inside <LEDGER> | |
| credit_days | No | ||
| mailing_name | No | ||
| opening_type | No | Default Dr | |
| contact_person | No | ||
| opening_balance | No | ||
| place_of_supply | No | Defaults to state | |
| maintain_bill_wise | No | ||
| gst_registration_type | No | ||
| confirm_opening_change | No | Set true ONLY after the user has seen the current vs new opening figures and explicitly approved the change |