/ubl:Invoice/cac:BillingReference/cac:InvoiceDocumentReference/cbc:UUID

Invoice Document Reference UUID

Context ID INV0197
Cardinality 0..1
Usage M

Description

A universally unique identifier for this document reference.

A unique identifier for the preceding invoice issued by a tax authority or an e-invoice portal during the clearance/reporting of the related original invoice.

The KSeF Number. The unique identifier issued by KSeF portal after successfull upload of the original invoice by the Seller.

Details

vrbl-invoice-pl-b2b-3p0

In exceptional cases, where there is no Preceding Invoice Reference UUID available, because the the original invoice was not issued via KSeF, it is possible to use the value NA (not applicable).

Rules

Rule ID Error Message
VRBL-INV-PL-B2B-3-89 The Invoice Document Reference UUID must be a valid KSeF number, with a format like 9999999999-YYYYMMDD-FFFFFF(-)FFFFFF-FF. The length must be between 35 and 36 characters.
VRBL-INV-PL-B2B-3-90 The Invoice Document Reference UUID must be a valid KSeF number, with a structure like 9999999999-YYYYMMDD-FFFFFF(-)FFFFFF-FF. There must be either 4 or 5 segments separated by -.
VRBL-INV-PL-B2B-3-91 The first segment of the Invoice Document Reference UUID must be a valid identifier, with a format like 9999999999, M123456789 or ABC1234567.
VRBL-INV-PL-B2B-3-92 The second segment of the Invoice Document Reference UUID must be a valid date, formated like YYYYMMDD.
VRBL-INV-PL-B2B-3-93 Invoice Document Reference UUID segments after the issuer and date segments must consist of an upper case hexadecimal identifier with a format like A1B2C3D4E5F6-FF or A1B2C3-D4E5F6-FF.