create_voucher
Create balanced accounting vouchers in Tally, including Payment, Receipt, Journal, Contra, Sales, and Purchase. Provide ledger entries with debits and credits to record transactions accurately.
Instructions
Create a new accounting voucher (e.g. Payment, Receipt, Journal, Contra, Sales, Purchase) in the active Tally company. Provide the full set of ledger entries; debits and credits must balance.
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": {
"voucherType": "<voucherType>",
"date": "<date>",
"entries": "<entries>"
},
"name": "create_voucher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Voucher date as YYYY-MM-DD or YYYYMMDD. | |
| entries | Yes | Ledger entries for the voucher. Sum of debit amounts must equal sum of credit amounts. | |
| narration | No | Optional narration/description for the voucher. | |
| voucherType | Yes | Tally voucher type name, e.g. "Payment", "Receipt", "Journal", "Contra", "Sales", "Purchase". | |
| voucherNumber | No | Optional voucher number; Tally auto-numbers if omitted. | |
| partyLedgerName | No | Optional party ledger name, relevant for Sales/Purchase vouchers. |