create-manual-journal
Create a balanced manual journal in Xero with narration and at least two debit/credit journal lines using account codes. Define draft or posted entries for accurate accounting records.
Instructions
Create a manual journal in Xero. Retrieve a list of account codes in Xero to use for the journal lines. Journal lines must contain at least two individual journal lines with account codes, use basic accounting account types pairing when not specified, and make sure journal line pairs have credit and debit balanced.
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": {
"narration": "<narration>",
"manualJournalLines": "<manualJournalLines>"
},
"name": "create-manual-journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional URL link to a source document | |
| date | No | Optional date in YYYY-MM-DD format | |
| status | No | Optional status of the manual journal (DRAFT, POSTED, DELETED, VOIDED, ARCHIVED), DRAFT by default | |
| narration | Yes | Description of manual journal being posted | |
| lineAmountTypes | No | Optional line amount types (EXCLUSIVE, INCLUSIVE, NO_TAX), NO_TAX by default | |
| manualJournalLines | Yes | The manualJournalLines element must contain at least two individual manualJournalLine sub-elements | |
| showOnCashBasisReports | No | Optional boolean to show on cash basis reports, default is true |