Peppol BIS Billing 3.0.21 · UBL

NL-R-005: For suppliers in the Netherlands, if the customer is in the Netherlands, the customer's…

Peppol BIS Billing 3.0.21 · UBL

fatalcountry

Original rule text

[NL-R-005]-For suppliers in the Netherlands, if the customer is in the Netherlands, the customer's legal entity identifier MUST be either a KVK or OIN number (schemeID 0106 or 0190)

Stored validation assertion
(contains(concat(' ', string-join(@schemeID, ' '), ' '), ' 0106 ') or contains(concat(' ', string-join(@schemeID, ' '), ' '), ' 0190 ')) and (normalize-space(.) != '')

NL-R-005 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 UBL invoices where both the supplier and customer country codes are NL (case-insensitive), the customer's legal entity identifier cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID must be non-empty and its schemeID attribute must contain the token 0106 or 0190. The test treats the schemeID as a space-separated list and requires one token to be exactly 0106 or 0190; surrounding whitespace in the element value is ignored.

How to fix

Set the cbc:CompanyID element to the customer's legal entity identifier and set its schemeID attribute to 0106 for a KVK number or 0190 for an OIN number. The value must not be empty or only whitespace. If the country codes are not both NL, the rule does not apply.

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

Where to go next

NL-R-005 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes