Error codes · KSeF 2.0 · Poland
KSeF UPO (Urzędowe Poświadczenie Odbioru) not found
This is the rejection, word for word: „[KSEF-21178] You requested the UPO (Urzędowe Poświadczenie Odbioru — the official acceptance confirmation) for a KSeF invoice, but the system could not find a UPO matching the provided criteria. Either the invoice has not yet been assigned a UPO, or the search parameters (referenceNumber, KSeF number, sessionReferenceNumber) do not identify a valid invoice.“
The 21178 code surfaces on GET /invoices/{ksefNumber}/upo and related UPO retrieval endpoints. Common root causes: the invoice is still in processing state (UPO not yet generated), the KSeF number in the request path is malformed, or the requesting entity does not have permission to see the UPO for that invoice. The response payload uses HTTP 404 with body code 21178.