DE-R-016: If both supplier and customer are located in Germany, and if one of the VAT codes S, Z, E, AE, K, G, L, or M is used, an invoice shall contain at least one of the following elements: "Seller VAT identifier" (BT-31) or "Seller tax registration identifier" (BT-32) or "SELLER TAX REPRESENTATIVE PARTY" (BG-11).
This fatal rule (DE-R-016) enforces German VAT compliance for domestic B2B transactions. It triggers when both the supplier's country (BT-40, cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) and the customer's country (BT-55, cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode) are 'DE'. Additionally, the invoice must contain at least one VAT category code (BT-118, cac:TaxTotal/cac:TaxSubtotal/cbc:TaxCategory/cbc:ID) from the set {S, Z, E, AE, K, G, L, M}. When these conditions are met, the rule requires that the seller provides either a VAT identifier (BT-31, cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='VAT']/cbc:CompanyID) or a tax registration identifier (BT-32, cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID='TAX']/cbc:CompanyID) or a Tax Representative Party (BG-11, cac:TaxRepresentativeParty). The Schematron context XPath selects Invoice or CreditNote documents where the variables $supplierCountryIsDE and $customerCountryIsDE are true. The assertion fails if none of these elements are present.
1. Ensure that the supplier's country (BT-40) and customer's country (BT-55) are correctly set to 'DE' in their respective PostalAddress elements. 2. Verify that at least one VAT category code (BT-118) in any TaxSubtotal is one of S, Z, E, AE, K, G, L, or M. 3. Add a PartyTaxScheme element under the supplier's Party (cac:AccountingSupplierParty/cac:Party) with a CompanyID (BT-31 or BT-32) and a TaxScheme ID of 'VAT' or 'TAX'. Alternatively, include a TaxRepresentativeParty (BG-11) under the Invoice. 4. Validate the invoice against the Peppol BIS 3.0 Schematron to confirm compliance.
Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.
fix: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.
Missing <cbc:EndpointID schemeID="..."> inside <cac:AccountingSupplierParty>/<cac:Party>.
fix: Add <cbc:EndpointID schemeID="9930">DE123456789</cbc:EndpointID> as the first child of Seller <cac:Party>.
Buyer <cbc:EndpointID> is either missing or lacks the mandatory EAS @schemeID attribute.
fix: Add schemeID="9930" (or "0088" for GLN / "0204" for Leitweg-ID) to Buyer <cbc:EndpointID>.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
If both supplier and customer are located in Germany, an invoice shall contain information on "PAYMENT INSTRUCTIONS" (BG-16).
If both supplier and customer are located in Germany, the group "SELLER CONTACT" (BG-6) shall be provided.
If both supplier and customer are located in Germany, the element "Buyer reference" (BT-10) shall be provided.
If both supplier and customer are located in Germany, the element "Invoice type code" (BT-3) should only contain the following values from code list UNTDID 1001: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice), 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
Danish suppliers MUST provide legal entity (CVR-number)