Create Journal
create_journalCreate a journal entry with debit and credit postings to record financial transactions. Supports duplicate detection and project tracking dimensions.
Instructions
Create a journal entry with postings
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Journal entry title | |
| postings | Yes | Postings [{accounts_id, type: 'D'|'C', amount, accounts_dimensions_id?, base_amount?, projects_project_id?, projects_location_id?, projects_person_id?}]. accounts_dimensions_id is REQUIRED when accounts_id has sub-accounts. base_amount = EUR equivalent for non-EUR entries. projects_* fields link the posting to project tracking dimensions. | |
| clients_id | No | Related client ID | |
| effective_date | Yes | Entry date (YYYY-MM-DD) | |
| document_number | No | Document number. Recommended for imported or mechanism-crossing entries: a stable source reference (e.g. WISE:{id}, LY:{ref}, BANK:{stmt-ref}) — used for duplicate detection. | |
| cl_currencies_id | No | Currency (default EUR) | |
| block_on_duplicate | No | Refuse creation when a bank posting looks like an already-booked duplicate (default false: warn only). |