Update draft invoice
update_draft_invoiceUpdate editable fields on a DRAFT invoice (notes, internal notes, payment terms, payment instructions, due date, purchase order number). Only valid while the invoice is still a Draft. Only the fields you send change; an empty value counts as not sent, so a field can be replaced but not cleared here (blank payment terms would become "Net 30", and the due date can not be removed).
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_draft_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes to appear on the invoice. | |
| due_date | No | Due date override (ISO 8601). | |
| invoice_id | Yes | Id of the draft invoice to update. | |
| payment_terms | No | Payment terms, e.g. "Net 30". | |
| internal_notes | No | Internal notes (not on the printed invoice). | |
| idempotency_key | No | Optional caller-supplied key; retrying with the same key returns the original result instead of acting twice. | |
| payment_instructions | No | Bank / payment instructions for the customer. | |
| purchase_order_number | No | Customer PO number to reference on the invoice. |