Send invoice
send_invoiceMarks a draft as sent, gives it the next number and publishes its link: anyone who has the link can read the document (lines, amounts, the user's business details), and for an estimate answer it. Nothing is emailed. After that only the notes and the due date change. The draft needs a client name, at least one line and a total above zero. Needs confirm: true and amount equal to the total; without them the result is a preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | The document's total in the currency's main unit, repeated from the preview (e.g. 220 or "220.00"). Must equal the total or nothing is done. | |
| confirm | No | true performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects. | |
| invoiceId | Yes | The invoice or estimate. |