XRechnung Validator

v0.3.0
io.github.wenboteng/xrechnung-validator Checked 3 hours ago Published 3 days ago

Validate XRechnung XML and ZUGFeRD / Factur-X PDFs with the free checkxrechnung.com API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_xrechnung Validate XRechnung

Validate one XRechnung XML document (UBL or CII) or ZUGFeRD PDF. The file is uploaded to the free keyless API POST https://checkxrechnung.com/v1/validate. Limits: 50 requests per IP per UTC day, 10 per minute, 5 MB. The service reports persisted: false. Provide exactly one of file_path or xml. Returns valid plus errors with rule_id and rule_url.

ParameterTypeDescription
file_pathstringPath to an XRechnung XML file or a ZUGFeRD PDF. Resolved by this process.
xmlstringXRechnung XML (UBL or CII) as a string. Use this or file_path.

validate_zugferd Validate ZUGFeRD / Factur-X

Validate one ZUGFeRD or Factur-X PDF. The file is uploaded to POST https://checkxrechnung.com/v1/zugferd/validate. Checks PDF/A-3 basics (veraPDF when installed, otherwise a labelled structure check), extracts factur-x.xml, zugferd-invoice.xml or xrechnung.xml, detects the profile (MINIMUM, BASIC WL, BASIC, EN16931, EXTENDED, XRECHNUNG) and validates the XML with the EN 16931 CII Schematron. Profile XRECHNUNG also runs the XRechnung CII Schematron. Same free limit as validate_xrechnung (shared counter): 50 per IP per UTC day, 10 per minute. PDF limit 10 MB. Returns valid, profile, and errors w…

ParameterTypeDescription
file_path *stringPath to a ZUGFeRD or Factur-X PDF. Resolved by this process.

extract_zugferd Extract ZUGFeRD / Factur-X XML

Extract the embedded invoice XML and a JSON summary from a ZUGFeRD or Factur-X PDF. Uploads the file to POST https://checkxrechnung.com/v1/zugferd/extract. Same free limit as validate_xrechnung (shared counter). PDF limit 10 MB. ok means an XML attachment was found. The xml field is the raw document.

ParameterTypeDescription
file_path *stringPath to a ZUGFeRD or Factur-X PDF. Resolved by this process.