Update an invoice
invoiceninja_update_invoiceEdit an invoice; only the fields you pass change, but line_items (if passed) replace every existing line. Does not send anything. Invoice Ninja: PUT /api/v1/invoices/{id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Document date, YYYY-MM-DD. | |
| terms | No | Terms text. | |
| footer | No | Footer text. | |
| number | No | Document number. Omit to let Invoice Ninja assign the next one. | |
| partial | No | Deposit / partial amount due first. | |
| discount | No | Document-level discount (amount or percent). | |
| due_date | No | Due date (valid-until for quotes), YYYY-MM-DD. | |
| po_number | No | Purchase order number. | |
| tax_name1 | No | Document-level tax name. | |
| tax_rate1 | No | Document-level tax rate in percent. | |
| invoice_id | Yes | The invoice's hashed id, e.g. "Wpmbk5ezJn". | |
| line_items | No | Line items. On update this REPLACES all existing lines. | |
| project_id | No | Link to a project (hashed id). | |
| public_notes | No | Notes shown to the client. | |
| private_notes | No | Internal notes, not shown to the client. | |
| partial_due_date | No | Due date of the partial amount, YYYY-MM-DD. | |
| is_amount_discount | No | true = discount is an amount; false = a percentage. |