Peppol BIS Billing 3.0.21 · UBL

DK-R-009: For Danish Suppliers if the PaymentID is prefixed with 04# or 15# the 16 digits…

Peppol BIS Billing 3.0.21 · UBL

fatalcountry

Original rule text

[DK-R-009]-For Danish Suppliers if the PaymentID is prefixed with 04# or 15# the 16 digits instruction Id must be added to the PaymentID eg. "04#1234567890123456" when Payment means equals 50 (Giro)

Stored validation assertion
not((cbc:PaymentMeansCode = '50')       and ((substring(cbc:PaymentID, 1, 3) = '04#')          or (substring(cbc:PaymentID, 1, 3)  = '15#'))       and not(string-length(cbc:PaymentID) = 19)       )

DK-R-009 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

For Danish suppliers and Danish customers (both country codes DK), when cbc:PaymentMeansCode is 50 and cbc:PaymentID begins with 04# or 15#, the rule requires the entire cbc:PaymentID value to be exactly 19 characters long. A document fails validation when those conditions are met but the length is not 19; if the payment means code is not 50 or the prefix is not 04#/15#, the length is not constrained by this rule.

How to fix

In cac:PaymentMeans, ensure that when cbc:PaymentMeansCode is 50 and cbc:PaymentID starts with 04# or 15#, the value consists of the prefix plus 16 characters so that the total length is 19 characters, e.g. 04#1234567890123456 or 15#1234567890123456. If the invoice does not use these prefixes, no change is needed.

Guidance on this rule. The original text above is authoritative.

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to DK-R-009.

Validate an invoice against these rules · All release changes