EN 16931 · PEPPOL 3.0.17 CERTIFIED ENGINE
Pay-As-You-Go API Credits ($0.05/op) →
InvoiceSpec / Rules Registry / peppol-bis-3 / DE-R-016
fatal ASSERTION · DE-R-016 Peppol BIS Billing 3.0 (UBL-2.1) Jurisdiction: EU

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

Official Peppol BIS Billing 3.0 Spec ↗
01. Technical Specification & XPath Evaluation Context

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.

Evaluated XPath Location:
(/ubl-invoice:Invoice | /ubl-creditnote:CreditNote)[$supplierCountryIsDE and $customerCountryIsDE]
Deterministic Remediation Steps

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.

02. Side-by-Side UBL-2.1 Payload Diff (Rejected vs. Compliant)
--- a/invoice-rejected.xml (DE-R-016) FAIL
1 <!-- Broken: Missing seller VAT identifier (BT-31) and tax registration identifier (BT-32) and Tax Representative Party (BG-11) -->
2 <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
3 <cac:AccountingSupplierParty>
4 <cac:Party>
5 <cac:PostalAddress>
6 <cac:Country>
7 <cbc:IdentificationCode>DE</cbc:IdentificationCode>
8 </cac:Country>
9 </cac:PostalAddress>
10 <!-- Missing PartyTaxScheme with CompanyID for VAT or TAX -->
11 </cac:Party>
12 </cac:AccountingSupplierParty>
13 <cac:AccountingCustomerParty>
14 <cac:Party>
15 <cac:PostalAddress>
16 <cac:Country>
17 <cbc:IdentificationCode>DE</cbc:IdentificationCode>
18 </cac:Country>
19 </cac:PostalAddress>
20 </cac:Party>
21 </cac:AccountingCustomerParty>
22 <cac:TaxTotal>
23 <cac:TaxSubtotal>
24 <cbc:TaxableAmount currencyID="EUR">100.00</cbc:TaxableAmount>
25 <cbc:TaxAmount currencyID="EUR">19.00</cbc:TaxAmount>
26 <cac:TaxCategory>
27 <cbc:ID>S</cbc:ID>
28 <cbc:Percent>19.00</cbc:Percent>
29 <cac:TaxScheme>
30 <cbc:ID>VAT</cbc:ID>
31 </cac:TaxScheme>
32 </cac:TaxCategory>
33 </cac:TaxSubtotal>
34 </cac:TaxTotal>
35 </ubl:Invoice>
+++ b/invoice-compliant.xml (EN 16931 VALID) PASS
1 <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
2 <cac:AccountingSupplierParty>
3 <cac:Party>
4 <cac:PostalAddress>
5 <cac:Country>
6 <cbc:IdentificationCode>DE</cbc:IdentificationCode>
7 </cac:Country>
8 </cac:PostalAddress>
9 + <cac:PartyTaxScheme>
10 + <cbc:CompanyID>DE123456789</cbc:CompanyID>
11 <cac:TaxScheme>
12 <cbc:ID>VAT</cbc:ID>
13 </cac:TaxScheme>
14 + </cac:PartyTaxScheme>
15 </cac:Party>
16 </cac:AccountingSupplierParty>
17 <cac:AccountingCustomerParty>
18 <cac:Party>
19 <cac:PostalAddress>
20 <cac:Country>
21 <cbc:IdentificationCode>DE</cbc:IdentificationCode>
22 </cac:Country>
23 </cac:PostalAddress>
24 </cac:Party>
25 </cac:AccountingCustomerParty>
26 <cac:TaxTotal>
27 <cac:TaxSubtotal>
28 <cbc:TaxableAmount currencyID="EUR">100.00</cbc:TaxableAmount>
29 <cbc:TaxAmount currencyID="EUR">19.00</cbc:TaxAmount>
30 <cac:TaxCategory>
31 <cbc:ID>S</cbc:ID>
32 <cbc:Percent>19.00</cbc:Percent>
33 <cac:TaxScheme>
34 <cbc:ID>VAT</cbc:ID>
35 </cac:TaxScheme>
36 </cac:TaxCategory>
37 </cac:TaxSubtotal>
38 </cac:TaxTotal>
39 </ubl:Invoice>
03. Interactive Peppol BIS Billing 3.0 Validation & Auto-Fix Workbench
BALANCE:3 CREDITS
invoice.xmlUBL-2.1
ORIGINCustom ERP / Billing Engine
BT-131 LINE SUM0.00 EUR
BT-106 HEADER0.00 EUR
STATUS: FAIL (3 FATAL, 1 WARN)· 1ms
Peppol BIS Billing 3.0
BR-01An Invoice shall have a valid EN 16931 Specification identifier (BT-24)
Spec & Diff
xpath: /ubl:Invoice/cbc:CustomizationID

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

PEPPOL-EN16931-R020Seller electronic address (BT-34) MUST be provided with a valid EAS @schemeID
Spec & Diff
xpath: /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID

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

PEPPOL-EN16931-R010Buyer electronic address (BT-49) MUST include a valid EAS @schemeID attribute
Spec & Diff
xpath: /ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID

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

BR-DE-15Buyer reference / Leitweg-ID (BT-10) is missing
Spec & Diff
xpath: /ubl:Invoice/cbc:BuyerReference

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.

Deploy Direct Custom ERP / Billing Engine → Peppol BIS Billing 3.0 AP Bridge

Automated Peppol Access Point & ZUGFeRD delivery without manual XML maintenance

04. Adjacent Peppol BIS Billing 3.0 Assertions Browse All 1,145 Rules →