Add Transaction
add_transactionRecord a new transaction in the hledger journal by specifying date, description, and postings. The final posting can be left without an amount for automatic balancing.
Instructions
Add a new transaction to the journal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO date string, e.g. '2026-08-08' | |
| postings | Yes | List of postings. Each is {"account": "gastos:alimentacion", "amount": "850 MXN"}. The last posting may omit 'amount' — hledger will auto-balance it. | |
| description | Yes | Payee/description, e.g. 'Supermercado Walmart' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |