The KSeF invoice PDF and QR code: KOD I vs KOD II
When an invoice is accepted, KSeF returns the UPO (official proof of receipt) and the KSeF number; the readable PDF is a visualisation Notaly generates from the FA(3) data, carrying the official KOD I QR. KOD I and KOD II are two different codes, not two states of one: KOD I is the verification link built by the issuer from the SHA-256 of the XML, and KOD II is the issuer's verification QR, signed with a KSeF certificate of type Offline, added only on an offline invoice.