Send a quote or invoice
invoices_sendSend a draft: it takes the next number (gapless), its PDF is made and kept in the file store, and the customer is emailed a link to its page (to view, pay or accept it) and to the PDF. On a document already sent it emails it again (to to, if given). email: false sends it without emailing anyone, to hand the link over yourself. When the account keeps books (books_setup), a sent invoice is posted to them. Before an invoice or credit note takes its number it is checked against the law of the business's country (in the EU, the UK and Switzerland: the business's address and VAT ID, the customer's VAT ID and address where needed, why a line has no tax, the VAT in the national currency); what is missing is refused for free, warnings come back. With e_invoice set it also goes out as an EN 16931 e-invoice (Factur-X inside the PDF, or an XRechnung XML beside it), validated against the official schema first. Costs $0.10 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Send to this address instead of the customer's email. | |
| No | false: number it and make the PDF and the page, but email no one. | ||
| message | No | A short note in the email, e.g. "Thanks for your order!" | |
| invoice_id | Yes | The invoice_id invoices_create returned (quotes and credit notes have one too). | |
| link_hours | No | How long the PDF download link works, in hours (up to 168). |