Error codes · KSeF 2.0 · Poland
KSEF-21181Partly
Sellers are not identical for all invoices in a KSeF batch
This is the rejection, word for word: „[KSEF-21181] The KSeF 2.0 API rejected a batch session because at least one invoice inside the batch has a Podmiot1 (issuer) NIP that differs from the others. KSeF requires every invoice in a single batch session to belong to the same seller.“
Triggered on POST /sessions/batch when the aggregated invoice set contains more than one distinct issuer NIP. The API returns HTTP 400 with code 21181 and message "Nieprawidłowe żądanie eksportu faktur" or "Sprzedawcy nie są identyczni we wszystkich dostarczonych fakturach". No invoices in the batch are ingested — the entire batch is rejected atomically.
What to have readyThe correct figures from your bookkeeping; we show you which field is affected.
What we doSplit the batch so that every invoice inside a single session belongs to one seller NIP.
What the finding looks likeExample
FindingNeeds your check · KSEF-21181
From youThe correct figures
ThenChecked again
ProofSHA-256 and /verify link after the check