Change a draft invoice
update_invoiceChange a DRAFT invoice in Invoices & tax (list_invoices, kind: "contractor", status draft). lines replaces every line; fields not sent are kept. It is re-priced by the tax engine. An issued invoice is never edited — a correction is a credit note a person makes in Seayora. Usually queued for the account holder to approve (read staged).
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": {
"invoice_id": "<invoice_id>"
},
"name": "update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| lines | No | ||
| terms | No | ||
| title | No | ||
| job_id | No | ||
| job_site | No | ||
| invoice_id | Yes | From `list_invoices` (kind "contractor"). | |
| customer_id | No | ||
| customer_name | No | ||
| customer_email | No | ||
| property_class | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The created or updated record's id, when the write was applied rather than staged. | |
| note | No | Why the result was truncated, when it was. | |
| staged | No | TRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done. | |
| draft_id | No | The staged proposal's id, when it was queued rather than performed. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |