EN 16931 Spec · 5 min read
EN 16931 XML Fields & PDF/A-3 Internals: Preventing Silent Invoice Rejections
Exact technical breakdown of BT-24 URN switches, AFRelationship PDF/A-3 requirements, and how German DATEV BU-Schluessel codes map from XML VAT categories.
1. Why PDF attachments fail without /AFRelationship /Data & XMP
Many ad-hoc PDF scripts attach factur-x.xml as an ordinary PDF attachment. Automated validators (such as KoSIT or Mustangproject) immediately reject those files because PDF/A-3 requires Catalog /AF linkage, /AFRelationship /Data on the Filespec dictionary, an OutputIntent color profile, and declared fx:* XMP extension metadata.
2. Essential EN 16931 Business Terms (BT) & exact cent tie-out
Validators check strict arithmetic equations: BT-106 (Sum of line net amounts) must equal BT-109 (Tax basis) when no document-level allowances apply; BT-110 (Total VAT) must tie out to every BG-23 rate bucket; and BT-112 (Grand Total) must equal BT-109 + BT-110 with zero float drift.
When converting incoming XML to German DATEV Buchungsstapel CSV, standard 19% VAT maps to BU-Schluessel 9, reduced 7% maps to 8, and EU reverse-charge (AE/K) maps to 94 with comma-formatted amounts.