createJournalEntry
createJournalEntryCreate a manual journal entry with debit and credit lines, including currency, posting date, status, and metadata for Zenskar accounting records.
Instructions
Create a new manual journal entry with debit and credit lines.
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": {
"description": "<description>",
"currency": "<currency>",
"journal_lines": "<journal_lines>"
},
"name": "createJournalEntry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Three-letter ISO 4217 currency code (e.g., 'USD', 'EUR', 'GBP'). | |
| posted_at | No | Posting date of the journal entry in ISO 8601 format (e.g., '2026-01-15T00:00:00'). | |
| custom_data | No | Additional metadata as key-value pairs. | |
| description | Yes | Description/memo for the journal entry. | |
| status_type | No | Journal entry status (default: 'posted'). | posted |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| journal_lines | Yes | Array of journal lines. Each line requires: {account_id, debits, credits, currency}. Use 'debits' and 'credits' (plural), as 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. |