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.
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. |