review_invoice
Review one structured invoice end to end and say whether it can be sent as an e-invoice. Checks the Peppol field contract, recomputes every line total and the document total, verifies the supplier and customer VAT numbers against the free EU VIES register, and builds the UBL 2.1 / Peppol BIS Billing 3.0 document. Returns findings with a concrete fix for each, plus a draft e-mail and the XML export. Reads structured invoice data only — no OCR, so PDFs and scans are refused rather than guessed at. Read-only: it never sends, files, pays or signs, and a VAT check that cannot reach the register is reported as unknown, never as a pass or a failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Free-text invoice note. | |
| lines | Yes | Invoice lines. Totals are computed from these. | |
| dueDate | No | Optional payment due date (YYYY-MM-DD). | |
| currency | No | ISO 4217 currency code (uppercase). Defaults to EUR. | EUR |
| customer | Yes | Buyer / accounting customer party. | |
| supplier | Yes | Seller / accounting supplier party. | |
| issueDate | Yes | Issue date (YYYY-MM-DD). | |
| invoiceNumber | Yes | Human-readable invoice number, e.g. "INV-2026-0001". | |
| buyerReference | No | Buyer reference (BT-10), e.g. a PO or cost-centre code. |