Submit draft invoice and get document links
generate-invoice-pdfReturn an invoice's document links. A draft is first submitted exactly like submit-invoice, using the invoice parameter plus the line items and recipient already set with update-invoice-draft; other invoices are returned unchanged. It does not render a PDF itself, and links can stay empty until Classic finishes generating the document. The sent status and document links do not mean a customer email was sent or delivered. Depending on stored invoice and company settings, submission 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 or get-invoice-document-links to read an invoice without submitting it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID | |
| invoice | No | Submission fields, required when the invoice is a draft; line items and recipient come from the stored draft. Omit it for other invoices: any object you send must be a complete submission, even though only a draft uses it. | |
| companyId | Yes | Company ID |