All rules · pint-base · error
ibr-cl-01
The document type code must come from the UNCL1001 code list subset that Peppol permits.
Reviewed
Why this rule exists
The type code determines how the receiver processes the document. A code outside the permitted subset has no agreed meaning between the two parties.
Why it usually happens
- Using an internal document-type code rather than the UNCL1001 value
- Emitting 381 (credit note) on a UBL Invoice element
How to fix it
Map your internal document types to UNCL1001 codes in one place, and fail loudly on an unmapped type.
<cbc:InvoiceTypeCode>999</cbc:InvoiceTypeCode>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
The official rule
The document type code (ibt-003) MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 80 82 84 380 383 386 388 393 395 575 623 780 71 102 218 219 331 382 480 553 817 870 875 876 877 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 381 396 532 ', concat(' ', normalize-space(.), ' ')))))Applied to nodes matching cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.5 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-eu-1.1.1 | pint-base | error | billing/creditnote, billing/invoice |
| pint-ae-2026.3 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator