invoiceproof
v0.1.0Validate, parse, fix and render EU e-invoices: XRechnung, ZUGFeRD, Factur-X, Peppol, KSeF.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_supported_formats Supported e-invoice formats
Which formats, profiles and rule sets this service supports, and what each tool costs.
detect_invoice Detect e-invoice format
Identify the format, syntax, profile/customization and country standard of an e-invoice file. Cheap first step before validating.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
parse_invoice Parse e-invoice to JSON
Extract the invoice as normalised JSON: number, dates, seller, buyer, lines, VAT breakdown, totals, payment details. Works for every supported format.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
fix_invoice Auto-fix e-invoice
Fix 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.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
dry_run | boolean | Only report what would change |
totals | boolean | Allow recalculating document totals and VAT breakdown from the line amounts |
values | object | Values for data that is missing in the file |
validate_invoice Validate e-invoice
Run the official rule set for the detected format (KoSIT for XRechnung/ZUGFeRD/Factur-X, OpenPeppol for Peppol BIS, FA(3) schema for KSeF, Porezna uprava HR-CIUS schematron for Croatian eRačun, Facturae XSD + calculation/NIF/DIR3 rules for Spain, LHDN SDK rules for MyInvois). Returns valid/invalid with every failed rule: id, severity, message, XPath.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
kosit | boolean | Run the full KoSIT schematron (default true). false = schema and core checks only, faster |
render_invoice_html Render e-invoice as HTML
Human-readable invoice document (HTML, A4 print layout) from the XML, in the requested language.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
lang | string | Label language, default en |
render_invoice_pdf Render e-invoice as PDF
Human-readable PDF of the invoice (counts as 2 requests). Returned as a base64 resource.
| Parameter | Type | Description |
|---|---|---|
content | string | Invoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text |
content_base64 | string | A ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML |
lang | string |
my_usage My plan and usage
Plan, monthly quota, usage this month and subscription state of the API key used for this connection. Free.