Create invoice from quote
create_invoice_from_quoteDraft invoice from an approved or accepted quote, for all of it or part of it. Creates a draft invoice from a quote, as Create Invoice > From Quote does, linked to the quote and its job. mode entire copies every line; line_items copies the lines at the positions in lines; percentage invoices amount percent of the quote total; fixed_amount invoices amount (with tax); remaining invoices what the quote's earlier invoices did not. A part is one line at the quote's tax rate. Due date follows the customer's or your payment terms. The invoice stays a draft until send_invoice. Needs a plan with progress invoicing (Pro) for the part modes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| lines | No | line_items: positions of the quote's lines to invoice, 1 for the first. | |
| amount | No | percentage: percent of the quote total (e.g. 50). fixed_amount: amount with tax. | |
| quote_id | Yes | Quote ID from list_quotes. |