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

DK-R-002: Danish suppliers MUST provide legal entity (CVR-number)

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

The DK-R-002 rule is a Danish national extension to Peppol BIS Billing 3.0. It applies to any Invoice or CreditNote where the supplier's country (BT-40, mapped to cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cac:IdentificationCode) equals 'DK'. For such documents, the rule requires that the supplier's legal entity identifier (BT-30, mapped to cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cac:CompanyID) be present and contain a valid CVR number. The Schematron context selects documents where the variable $DKSupplierCountry (defined elsewhere) evaluates to 'DK'. The assertion test is a boolean expression that checks for the existence of the CompanyID element. If the element is absent, the assertion fails with a fatal error. The rule ensures Danish suppliers are identifiable by their CVR number as mandated by Danish Bookkeeping Act.

Evaluated XPath Location:
ubl-creditnote:CreditNote[$DKSupplierCountry = 'DK'] | ubl-invoice:Invoice[$DKSupplierCountry = 'DK']
Deterministic Remediation Steps

1. Ensure the supplier's country (BT-40) is correctly set to 'DK' in cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode. 2. Add a cac:PartyLegalEntity element under cac:AccountingSupplierParty/cac:Party if not already present. 3. Inside cac:PartyLegalEntity, add a cbc:CompanyID element containing the Danish CVR number (8 digits). 4. Set the schemeID attribute of cbc:CompanyID to 'DK:CVR' to explicitly identify the identifier type. 5. Validate the document against the Peppol BIS Billing 3.0 Schematron to ensure compliance.

02. Side-by-Side UBL-2.1 Payload Diff (Rejected vs. Compliant)
--- a/invoice-rejected.xml (DK-R-002) FAIL
1 <!-- Supplier is in Denmark (DK) but missing CVR number -->
2 <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
3 xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
4 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
5 <cac:AccountingSupplierParty>
6 <cac:Party>
7 <cac:PostalAddress>
8 <cac:Country>
9 <cbc:IdentificationCode>DK</cbc:IdentificationCode>
10 </cac:Country>
11 </cac:PostalAddress>
12 <!-- Missing cac:PartyLegalEntity/cbc:CompanyID (CVR) -->
13 </cac:Party>
14 </cac:AccountingSupplierParty>
15 <!-- ... rest of invoice ... -->
16 </Invoice>
+++ b/invoice-compliant.xml (EN 16931 VALID) PASS
1 <Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
2 xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
3 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
4 <cac:AccountingSupplierParty>
5 <cac:Party>
6 <cac:PostalAddress>
7 <cac:Country>
8 <cbc:IdentificationCode>DK</cbc:IdentificationCode>
9 </cac:Country>
10 </cac:PostalAddress>
11 + <cac:PartyLegalEntity>
12 + <cbc:CompanyID schemeID="DK:CVR">12345678</cbc:CompanyID>
13 + </cac:PartyLegalEntity>
14 </cac:Party>
15 </cac:AccountingSupplierParty>
16 <!-- ... rest of invoice ... -->
17 </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 (2 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>.

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 →