tally_alter_ledger
Preview edits to an existing TallyPrime ledger—rename, regroup, change opening balance, or update party details—and get a confirm token before any write.
Instructions
Change an EXISTING ledger in TallyPrime: rename it, move it to another group, change its opening balance, or update its party details. Only the fields you give are changed.
The preview shows each changed field before and after. Renaming or regrouping a ledger changes how every voucher already posted to it is reported.
WRITES TO TALLYPRIME, in two steps. This call only PREVIEWS: it checks the change against the live books and returns exactly what would be written plus a confirmToken — nothing is changed. Show the preview to the user, and only after they approve it call tally_confirm_write with the token. Never confirm on your own initiative, and never confirm a preview the user has not seen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The ledger to change, by its current name. | |
| No | |||
| group | No | Move it under this existing group. | |
| gstin | No | GST registration number of the party. | |
| state | No | ||
| address | No | Address lines, in order. | |
| company | No | Company name. Omit to use whichever company TallyPrime has loaded. If given and it is not the loaded one, the call fails with TALLY_COMPANY_NOT_LOADED rather than returning another company's data. | |
| country | No | ||
| newName | No | Rename it to this. | |
| pincode | No | Postal / ZIP code. | |
| mailingName | No | Name for letters and statements. | |
| openingSide | No | Required with openingBalance. | |
| isBillWiseOn | No | Maintain balances bill-by-bill. Usually true for customers and suppliers. | |
| openingBalance | No | Positive amount, e.g. "12500.00". Use the side field for debit or credit, never a minus sign. | |
| incomeTaxNumber | No | PAN (India) or other income-tax number. |