Auto-fix e-invoice
fix_invoiceFix validation errors of an EN 16931 invoice (XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, UBL, CII) deterministically: empty elements, decimals, date and code formats, specification ids; with totals=true also recalculates totals and the VAT breakdown from the lines. Data that is not in the file (Leitweg-ID, seller contact, endpoint ids, payment terms) is taken from "values"; missing ones are listed in needs_input. Returns the change list, the remaining errors and the corrected XML. Counts as 2 requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| totals | No | Allow recalculating document totals and VAT breakdown from the line amounts | |
| values | No | Values for data that is missing in the file | |
| content | No | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text | |
| dry_run | No | Only report what would change | |
| content_base64 | No | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |