ROWFA

The KSeF export package and _metadata.json

When invoices are exported from KSeF (Poland's national e-invoicing system) through its API, the result is a ZIP archive holding the invoice XML files and one extra file, _metadata.json.

Why the metadata file matters

An FA(3) XML file does not contain its own KSeF number. _metadata.json does: it has an invoices array with one entry per invoice in the package. Since 27 October 2025 the file is always included.

Fields of each entry

FieldIn EnglishOfficial description (Polish)
ksefNumberKSeF number of the invoiceNumer KSeF faktury.
invoiceNumberInvoice number given by the issuerNumer faktury nadany przez wystawcę.
issueDateIssue dateData wystawienia faktury.
invoicingDateDate KSeF accepted the invoice for processingData przyjęcia faktury w systemie KSeF (do dalszego przetwarzania).
acquisitionDateDate the KSeF number was assignedData nadania numeru KSeF.
permanentStorageDateDate the invoice was permanently stored in KSeFData trwałego zapisu faktury w repozytorium systemu KSeF.
sellerSeller: nip, nameDane identyfikujące sprzedawcę.
buyerBuyer: identifier (type Nip, VatUe, Other or None), nameDane identyfikujące nabywcę.
netAmountTotal net amountŁączna kwota netto.
grossAmountTotal gross amountŁączna kwota brutto.
vatAmountTotal VAT amount in PLNŁączna kwota VAT wyrażona w PLN.
currencyCurrency codeKod waluty.
invoicingModeOnline or OfflineTryb fakturowania (online/offline).
invoiceTypeInvoice type (Vat, Zal, Kor, Roz, Upr, KorZal, KorRoz, and PEF / RR types)Rodzaj faktury.
formCodeDocument structure: systemCode, schemaVersion, valueStruktura dokumentu faktury.
isSelfInvoicingWhether the invoice was self-billedCzy faktura została wystawiona w trybie samofakturowania.
hasAttachmentWhether the invoice has an attachmentOkreśla, czy faktura posiada załącznik.
invoiceHashSHA-256 hash of the invoice, Base64Skrót SHA256 faktury, zakodowany w formacie Base64.
hashOfCorrectedInvoiceSHA-256 hash of the corrected invoice (optional)Skrót SHA256 korygowanej faktury, zakodowany w formacie Base64.
thirdSubjectsList of third parties (optional)Lista podmiotów trzecich.
authorizedSubjectAuthorised entity (optional)Podmiot upoważniony.

How the converter uses it

Have a ZIP of KSeF XML invoices?
Turn it into an Excel workbook and PDFs. Free up to 5 files, nothing uploaded.

Open the converter

Source: Przyrostowe pobieranie faktur (KSeF documentation); KSeF API 2.0 OpenAPI definition, schema InvoiceMetadata. Read 2026-11-10.