Log transaction
log_transactionRecord an expense (negative amount) or income (positive) on an account, in that account's currency. Category is auto-suggested from the merchant when omitted. Lands in the review queue. Money that leaves or arrives but is not really spending or income (a payout on someone's behalf, a reimbursement, a refundable deposit) goes in with excluded=true: it moves the balance but stays out of insights and budgets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO datetime; default now | |
| note | No | ||
| place | No | ||
| amount | Yes | Major units; negative = expense | |
| excluded | No | Not spending/income: keep out of insights and budgets (balance still moves) | |
| merchant | No | ||
| raw_text | No | The bank SMS/email/alert this came from, verbatim. Kept private (never returned by default); lets unparsed_alerts / save_parse_rule teach the app to read this bank on its own. | |
| account_id | Yes | ||
| category_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | Yes | ||
| note | No | ||
| place | No | ||
| amount | Yes | Formatted in the row's currency, e.g. '₹1,200.00' | |
| source | No | ||
| currency | Yes | ||
| excluded | No | Moves the balance but is not counted as spending or income | |
| merchant | No | ||
| account_id | Yes | ||
| confidence | No | ||
| category_id | Yes | ||
| is_reviewed | No | ||
| transfer_id | No | ||
| amount_minor | Yes |