Invoice Ninja: Create invoice
invoice-ninja_create_invoiceInvoice Ninja: Create a draft invoice for a client with line items, dates and notes. Creates an invoice as a draft and returns its number and totals. A draft is invisible to the client, stays out of the client balance and cannot reach anyone until you send it with send_invoice. Invoice Ninja numbers the invoice from the pattern in Settings > Generated Numbers, and without a due date the invoice is due immediately. Totals are quantity times unit cost per line, in the client currency. create_invoice runs without asking first: a draft reaches nobody and you can delete it in Invoice Ninja. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items. Each has product (name from list_products or free text), description, unit_cost and quantity (decimals allowed). | |
| company | No | Company name, for accounts with several companies. Default: the company open when you signed in. | |
| due_date | No | Default: none, which makes the invoice due immediately. | |
| client_id | Yes | Client ID from list_clients or create_client. | |
| po_number | No | The client's purchase order number, printed on the PDF. | |
| invoice_date | No | Default: today. | |
| public_notes | No | Note the client sees on the invoice. |