InvoiceValidator.eu

UBL-CR-659

warningEN 16931syntax binding ruleUBL

A UBL invoice shall not include the AdditionalDocumentReference DocumentTypeCode listID

Why it fails

The additional document reference's DocumentTypeCode carries a listID.

How to fix it

Remove the listID attribute. The permitted values (50, 130) are fixed by EN 16931 itself.

What the validator checks

UBL — context /ubl:Invoice | /cn:CreditNote

not(cac:AdditionalDocumentReference/cbc:DocumentTypeCode/@listID)

Related rules

Part of UBL-CR — UBL restrictions.

Check your own invoice against UBL-CR-659

…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.