KSeF archiving and retention: what to keep for 10 years
The legal invoice in KSeF is the structured FA(3) XML, and the UPO together with the KSeF number are your proof that it was accepted. KSeF keeps the structured invoices it stores for 10 years, so you can retrieve them while your access lasts; locally you should archive the XML, the UPO number and the KSeF number together. Treat the PDF as a readable copy for people, not as the document of record.