quote_convert
Converts a quote into its invoice in ONE call: claims the quote's 'converted' status first (so a lost race never creates an orphan invoice), copies every live line item across, and records converted_invoice_id — nothing else to do afterward. Refuses if the quote is already converted (the error carries converted_invoice_id) or declined (revive it with quote_update first), and refuses with nothing converted when the quote or its lines changed while it was converting (for example a quote_item call running at the same time): read the quote again with quote_read, then convert. NEXT: invoice_read on the new invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The quote id (quote_list shows them). | |
| notes | No | ||
| status | No | ||
| currency | No | ||
| quote_id | No | Alias of id. | |
| client_id | No | ||
| issue_date | No | ||
| tax_scheme | No | ||
| valid_until | No | ||
| quote_number | No | ||
| tax_rate_bps | No | ||
| prices_include_tax | No | ||
| converted_invoice_id | No |