E-Invoice Checker

v1.0.3
com.einvoicechecker/einvoice Checked 1 day ago Published 11 days ago

Validate, parse, fix and render e-invoices: XRechnung, ZUGFeRD, Peppol, KSeF, Facturae, MyInvois

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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA 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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA 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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML
dry_runbooleanOnly report what would change
totalsbooleanAllow recalculating document totals and VAT breakdown from the line amounts
valuesobjectValues 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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML
kositbooleanRun 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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML
langstringLabel 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.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text
content_base64stringA ZUGFeRD / Factur-X PDF (or any invoice file) as base64, when the invoice is not plain XML
langstringLabel language of the PDF, e.g. "de"; default en

repair_xml Repair broken invoice XML

Repair an invoice XML that is not well-formed (validate/parse answer MALFORMED_XML): closes unclosed elements, removes stray closing tags, fixes prefix/case mismatches, escapes bare & and <. Refuses truncated files, HTML and files needing more than 25 changes (REPAIR_NOT_POSSIBLE). Returns every change and the repaired XML; validate it before sending. XML only, not PDF.

ParameterTypeDescription
contentstringInvoice XML (UBL, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, KSeF FA(3)) as text

my_usage My plan and usage

Plan, monthly quota, usage this month and subscription state of the API key used for this connection. Free.