VRBL-INV-PL-B2B-2-66

Basic Info

Rule The value of the Seller Party Identification Scheme ID must be contained in ISO 6523 ICD [VRBL-CL-IdentificationSchemeID] or be contained in EORI [VRBL-CL-PL-KSeF-EORI] (prefixed by 'VRBL:') or be contained in Party Identification Extension [VRBL-CL-PL-KSeF-PartyIdentification-Extension] (prefixed by 'VRBL:PL:'). For more information visit: https://docs.peppol.eu/poacc/billing/3.0/2025-Q4/codelist/ICD/
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-pl-b2b-2p0
Severity fatal

Used Template: CodeList

Parameter Value
probe = @schemeID
codeList = $VRBL-CL-IdentificationSchemeID or $VRBL-Prefix:$VRBL-CL-PL-KSeF-EORI or $VRBL-PL-Prefix:$VRBL-CL-PL-KSeF-PartyIdentification-Extension

Implementation

not(boolean(@schemeID))
or
(
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-IdentificationSchemeID, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-IdentificationSchemeID,
			concat(
				substring($VRBL-CL-IdentificationSchemeID, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-IdentificationSchemeID, 1, 1)
			)
		)
	)
)
or
(
	(
		substring(normalize-space(@schemeID), 1, string-length($VRBL-Prefix)) = $VRBL-Prefix
		and
		not(
			contains(
				substring-after(normalize-space(@schemeID), $VRBL-Prefix),
				substring($VRBL-CL-PL-KSeF-EORI, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-PL-KSeF-EORI,
			concat(
				substring($VRBL-CL-PL-KSeF-EORI, 1, 1),
				substring-after(normalize-space(@schemeID), $VRBL-Prefix),
				substring($VRBL-CL-PL-KSeF-EORI, 1, 1)
			)
		)
	)
)
or
(
	(
		substring(normalize-space(@schemeID), 1, string-length($VRBL-PL-Prefix)) = $VRBL-PL-Prefix
		and
		not(
			contains(
				substring-after(normalize-space(@schemeID), $VRBL-PL-Prefix),
				substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-PL-KSeF-PartyIdentification-Extension,
			concat(
				substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1),
				substring-after(normalize-space(@schemeID), $VRBL-PL-Prefix),
				substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1)
			)
		)
	)
)