Submit draft invoice and get document links
generate-invoice-pdfSubmit a draft invoice and return its document links, or return existing links for a non-draft invoice. The sent status and document links do not mean a customer email was sent or delivered. Draft submission changes invoice state and requires invoice details and lineItems already set via update-invoice-draft. Depending on stored invoice and company settings, it can queue InvoiceNow delivery through PEPPOL and reporting to IRAS. Confirm the user intends to submit, including any configured external delivery and reporting. Use preview-invoice to inspect a draft without submission, or get-invoice-document-links to retrieve links without submission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID | |
| invoice | No | ||
| companyId | Yes | Company ID |