Peppol BIS Billing 3.0.21 · UBL

BR-CL-01: The document type code MUST be coded by the invoice and credit note related code lists…

Peppol BIS Billing 3.0.21 · UBL

fatalbusiness

Original rule text

[BR-CL-01]-The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.

Stored validation assertion
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 84 102 130 202 203 204 211 218 219 295 325 326 331 380 382 383 384 385 386 387 388 389 390 393 394 395 456 457 471 472 473 500 501 527 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 261 262 296 308 381 396 420 458 502 503 532 ', concat(' ', normalize-space(.), ' ')))))

BR-CL-01 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

BR-CL-01 requires the document type code to be exactly one of the UNTDID 1001 codes allowed by the rule. For UBL, cbc:InvoiceTypeCode must contain one of the invoice-related codes, and cbc:CreditNoteTypeCode must contain one of the credit-note-related codes. For CII, rsm:ExchangedDocument/ram:TypeCode must contain one of the combined list. The value must not contain any space; after trimming whitespace it must be a single token. A missing, empty, or non-listed value fails this fatal rule.

How to fix

Set the document type code element to an allowed code. For UBL cbc:InvoiceTypeCode, use an invoice-related code such as 380, 384, or 389. For UBL cbc:CreditNoteTypeCode, use a credit-note-related code such as 381, 396, or 420. For CII rsm:ExchangedDocument/ram:TypeCode, use any allowed code, for example 380 or 381. Ensure the value has no internal spaces; leading/trailing whitespace is ignored.

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

Where to go next

BR-CL-01 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes