Mark expense paid
mark_expense_paidMarks a recorded expense invoice as paid and stores the paid date, so tax-evidence bookkeeping counts the expense for income tax. Fails if already paid or missing.
Instructions
Mark a received invoice (expense) as paid. Matters for bookkeeping with actual expenses (daňová evidence), where an expense counts for income tax only once paid; flat-rate users rarely need it.
Updates ~/.ucetka/expenses/<expense_id>.json. Not idempotent: fails if the expense is already marked paid (the stored date is kept) or does not exist. Returns a confirmation. For issued invoices paid by customers use mark_paid; for tax or insurance payments use record_payment; to set the date when first recording an expense pass paid_date to add_expense.
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": {
"expense_id": "<expense_id>"
},
"name": "mark_expense_paid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paid_date | No | Date the expense was paid, YYYY-MM-DD. Omitted = today. | |
| expense_id | Yes | ID of a recorded expense = its PDF name without extension, e.g. '2603002'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |