Format Multi-Tab Excel or Accounting CSV Spreadsheet
export_ledger_bundleStatelessly formats checked supplier bills in memory into a multi-tab Microsoft Excel (.xlsx) workbook with SUM and ROUND accounting formulas, or a clean CSV spreadsheet preview.
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": {
"documents": "<documents>"
},
"name": "export_ledger_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Spreadsheet output format: xlsx (3-tab Excel workbook with live formulas), csv, or quickbooks_csv. | xlsx |
| api_key | No | Optional BillTally Pro API key. | |
| documents | Yes | List of checked supplier bill objects returned by extract_financial_documents. | |
| bundle_name | No | Label for the formatted Excel or CSV spreadsheet output. | billtally_ledger |
| reconciliation | No | Optional bank statement matching report returned by reconcile_invoices_with_bank_ledger. | |
| use_corrected_amounts | No | When true, formats the spreadsheet using verified true math totals instead of overcharged billed figures. |