Build journal import file
build_journalConverts composed journal entries, including invoice or payroll data, into import files for QuickBooks, Xero, and other formats; rejects unbalanced entries before export.
Instructions
Write journal entries you composed (e.g. from invoices or a payroll summary) as an import file.
entries: [{"date": "2026-03-31", "number": 1 (optional), "lines": [{"account": "64000000", "debit": "1500.00", "concept": "Nómina marzo"}, {"account": "47510000", "credit": "225.00"}, ...]}]. Entries must balance: an unbalanced entry is refused before any charge, with the difference. target_format accepts every format of convert_journal, including quickbooks_iif, quickbooks_csv and xero_csv (date_style / xero_tax_rate as there).
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": {
"entries": "<entries>",
"target_format": "<target_format>"
},
"name": "build_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| a3_format | No | ||
| date_style | No | ||
| fiscal_year | No | ||
| company_code | No | 00001 | |
| account_split | No | ||
| decimal_comma | No | ||
| target_format | Yes | ||
| xero_tax_rate | No | No VAT | |
| account_digits | No | ||
| start_entry_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||