Create an invoice
invoiceninja_create_invoiceCreate a DRAFT invoice for a client. It is not sent or emailed — use invoiceninja_mark_invoice_sent or invoiceninja_email_invoice afterwards. Invoice Ninja: POST /api/v1/invoices.
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. | |
| client_id | Yes | The client's hashed id, e.g. "Wpmbk5ezJn". | |
| po_number | No | Purchase order number. | |
| tax_name1 | No | Document-level tax name. | |
| tax_rate1 | No | Document-level tax rate in percent. | |
| 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. |