InvoiceValidator.eu

UBL-SR-53

fatalEN 16931syntax binding ruleUBL

CompanyID (VAT Identifier) must be stated when providing the PartyTaxScheme/TaxScheme/ID.

Why it fails

A PartyTaxScheme is present without its CompanyID, so a tax scheme is declared with no number in it.

How to fix it

Add the identifier in PartyTaxScheme/cbc:CompanyID — the VAT number when TaxScheme/ID is VAT — or remove the PartyTaxScheme group.

What the validator checks

UBL — context cac:PartyTaxScheme

exists(cac:TaxScheme/cbc:ID) and exists(cbc:CompanyID)

Related rules

Part of UBL-SR — UBL cardinality.

Check your own invoice against UBL-SR-53

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.