generate_invoice
Generate an EN 16931-conformant UBL 2.1 invoice from structured fields. The result is self-validated before being returned. Provide seller, buyer, and at least one line; for standard-rated (category "S") lines include a vatRate and the seller vatId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | Yes | ||
| lines | Yes | ||
| seller | Yes | ||
| dueDate | No | ||
| payment | No | ||
| currency | Yes | ISO 4217, e.g. EUR. | |
| issueDate | Yes | ISO date, e.g. 2026-06-19. | |
| invoiceNumber | Yes |