Checks whether an e-invoice is valid: a ZUGFeRD / Factur-X PDF or an XRechnung XML (CII or UBL). For a PDF it checks the PDF/A-3 conformance and the embedded invoice XML; for every invoice the profile, the schema, the EN 16931 business rules and, for an XRechnung, the German XRechnung rules. Returns whether it is valid, the detected profile, and the errors and warnings found. An invalid invoice is returned as a result with the list of findings, not as an error.
Validate ZUGFeRD or XRechnung| Property | Name | Type | Description |
|---|---|---|---|
invoiceFile | Invoice File required | file (base64) | The invoice to check: a ZUGFeRD or Factur-X PDF, or an XRechnung XML. |
additionalRequirements | Additional Required Field advanced | array of DtoZugferdRequiredField | Fields the invoice must contain in addition to the standard. Every row must be present. |
requiredInvoiceType | Required Invoice Type advanced | string (dropdown) | Invoice type the invoice must have to pass, e.g. E-invoice (EN 16931). dynamic dropdown |
| Property | Name | Type | Description |
|---|---|---|---|
isValid | Is Valid | boolean | Whether the PDF is a valid ZUGFeRD / Factur-X invoice (PDF/A-3, embedded XML, schema and EN 16931 rules) |
profile | Profile | string | Profile of the embedded invoice XML, e.g. urn:cen.eu:en16931:2017; empty if no invoice XML was found |
errors | Errors | array of DtoZugferdValidationMessage | Findings that make the invoice invalid |
warnings | Warnings | array of DtoZugferdValidationMessage | Findings that do not make the invoice invalid |
detectedSyntax | Detected Syntax | string | Syntax of an XML invoice: cii or ubl. Empty for a PDF. |
xrechnung | XRechnung | boolean | True if an XML invoice is an XRechnung. Empty for a PDF. |
invoiceTypeFound | Invoice Type Found | string | E-invoice, Booking aid, Other invoice or Invalid e-invoice. |
summary | Summary | string | One to three sentences you can forward to the sender. |
summaryGerman | Summary (German) | string | The summary in German, to forward to a German-speaking sender. |
passed | Meets Required Type | boolean | True if the invoice has the required invoice type and every additional required field. Empty without Required Invoice Type. |
unmetRequirements | Unmet Requirements | array of string | Additional required fields the invoice lacks, e.g. BT-13 or BT-129 (line 2). |
detectedProfile | Detected Profile advanced | string | Profile of the invoice, e.g. XRechnung or Minimum. Empty without invoice data. |
validatorVersion | Validator Version advanced | string | Validator that checked the invoice, e.g. Mustang-CLI 2.26.0. |
checkedInvoiceType | Checked Invoice Type advanced | string | Required invoice type the check used, e.g. E-invoice (EN 16931). |
DtoZugferdRequiredField| Property | Name | Type | Description |
|---|---|---|---|
requiredField | Required Field required | string (dropdown) | A BT or BG number or German name. Use BT-13|BT-14 for either one. minLength: 1; dynamic dropdown |
DtoZugferdValidationMessage| Property | Name | Type | Description |
|---|---|---|---|
section | Section | string | Part of the check that reported the finding: pdf (PDF/A-3) or xml (invoice XML) |
message | Message | string | Description of the finding, e.g. [BR-02]-An Invoice shall have an Invoice number (BT-1). |
explanation | Explanation | string | Short explanation of the rule, e.g. The seller's VAT ID or tax number is missing (BR-DE-16). Only for common rules; empty otherwise. |
explanationGerman | Explanation (German) | string | The explanation in German, to forward to a German-speaking sender. Only for common rules; empty otherwise. |
type | Type advanced | string | Numeric finding type of the validator |
location | Location advanced | string | Location of the finding in the PDF or XML, if known |
{
"invoiceFile": "<base64-encoded file content>"
}
Example generated from the connector definition.