create_journal_entry
Post a journal entry to QuickBooks. Automatically resolves account and department names to IDs and validates debits equal credits.
Instructions
Create a journal entry. Accepts account/department names (will lookup IDs automatically). Validates debits=credits before creating. Returns entry details and a link to view in QuickBooks.
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": {
"txn_date": "<txn_date>",
"lines": "<lines>"
},
"name": "create_journal_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txn_date | Yes | Transaction date in YYYY-MM-DD format | |
| memo | No | Private memo for the journal entry | |
| lines | Yes | Array of line items. Provide account_name OR account_id (name preferred). Optionally provide department_name OR department_id. | |
| draft | No | If true, validate and show preview without creating (default: true) | |
| doc_number | No | Journal number (shown as 'Journal no.' in QuickBooks). If not specified, QuickBooks will auto-assign the next number. |