InvoiceValidator.eu

DK-R-002

fatalPeppol BIS Billing 3.0profileCIIUBL

Danish suppliers MUST provide legal entity (CVR-number)

Why it fails

The seller is Danish but the invoice carries no legal entity identifier. Denmark requires the CVR number on every invoice.

How to fix it

Add the CVR number in PartyLegalEntity/cbc:CompanyID on the supplier party, with schemeID="0184" (see DK-R-014). The CVR is eight digits; do not send the SE number or a P-number here.

What the validator checks

CII — context rsm:CrossIndustryInvoice[$DKSupplierCountry = 'DK']

(normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID/text()) != '')

UBL — context ubl-creditnote:CreditNote[$DKSupplierCountry = 'DK'] | ubl-invoice:Invoice[$DKSupplierCountry = 'DK']

(normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/text()) != '')

Related rules

Part of DK-R — Denmark.

Check your own invoice against DK-R-002

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

This is a Peppol BIS Billing 3.0 rule: an invoice can be perfectly valid EN 16931 and still be rejected by it.