Create invoice
create_invoiceNew saved invoice for a client without an estimate. Nothing is sent to the client. Creates an invoice with the next invoice number, the client's details, line items, tax, discount, deposit and payment terms (due date = invoice date + payment_terms_days). For work you estimated, use convert_estimate_to_invoice instead. Nothing is sent: the client sees it only after send_invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Notes shown on the document. | |
| tax_id | No | A saved tax rate from list_items (taxes) instead of tax_rate. | |
| deposit | No | Requested deposit, shown as Deposit Due: percent or amount. | |
| discount | No | Discount on the subtotal: percent or amount. | |
| tax_rate | No | Tax percent on every line, e.g. 7.25. Uses your tax rate with that percent, or adds one. | |
| client_id | Yes | From list_clients or add_client. | |
| po_number | No | PO number. | |
| line_items | Yes | Lines: name, rate, optional quantity, description, item_id. | |
| document_date | No | Invoice date. Default: today. | |
| payment_terms_days | No | Days after the invoice date the payment is due (0: due on receipt). |