tascan_update_invoice
Update an invoice: mark it paid (records paid_at; a receipted ledger event with the actor, invoice id, number, amount and the before/after status is written first, and nothing changes if it cannot be), overdue, cancelled, or edit client details / notes / due date. A paid invoice is final: any further change is refused 409 invoice_paid_locked (no refunds, edits or deletes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | ||
| paid_at | No | ISO timestamp (default now) when status = paid | |
| due_date | No | ||
| invoice_id | Yes | ||
| client_name | No | ||
| client_email | No | ||
| client_phone | No |