createJournalEntry
createJournalEntryRecord accounting transactions by creating a manual journal entry with debit and credit lines.
Instructions
Create a new manual journal entry with debit and credit lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posted_at | No | Posting date of the journal entry in ISO 8601 format (e.g., '2026-01-15T00:00:00'). | |
| description | Yes | Description/memo for the journal entry. | |
| currency | Yes | Three-letter ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). | |
| journal_lines | Yes | Array of journal lines. Each line requires: {account_id, debits, credits, currency}. Use 'debits' and 'credits' (plural, integers in cents). Example: [{account_id:'...', debits:10000, credits:0, currency:'USD'}, {account_id:'...', debits:0, credits:10000, currency:'USD'}]. Optional tags: customer_id, contract_id, invoice_id, custom_tags. | |
| custom_data | No | Additional metadata as key-value pairs. | |
| status_type | No | Journal entry status (default: 'posted'). | posted |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |