KSeF

KSeF status 440 "Duplikat faktury" explained

What KSeF invoice status 440 (official description "Duplikat faktury") is, where it appears and how Notaly reports it as ksef_rejected:440.

Published 2 min readBy Tomek

Overview

KSeF status 440 is an invoice processing status whose official description is "Duplikat faktury" (duplicate invoice). It appears in the invoice's status within the session, not as an HTTP error on the submit call, and in Notaly it marks the invoice rejected with the error code ksef_rejected:440.

What the official specification says

In the KSeF API 2.0 specification, the session-invoice status table lists 440 with one description: "Duplikat faktury". The specification table holds no further explanation for this code. We therefore do not describe how KSeF decides that a document is a duplicate. If KSeF returns a details list with the status of your invoice, that text is the authoritative explanation for that invoice.

How it shows up in Notaly

Notaly reads the invoice status from the session after submission. 100 and 150 keep the invoice submitted, 200 makes it accepted, and 440, like every other code above 200, makes it rejected. The error field then holds ksef_rejected:440, and the signed invoice.rejected webhook carries the same code. The public error field contains only the stable code, not KSeF's raw text.

What to check

  1. The status code and description returned by GET /invoices/{id} or the webhook.
  2. The details list, if KSeF returned one for this invoice.
  3. Your own records of earlier submissions of the same document, including their current status in Notaly.

Repeated submissions in general

Whatever happened in a specific case, the general practice from our guide to retries and idempotency applies: a submission that timed out may still have reached KSeF, so check the status of the earlier attempt before sending the same document again. KSeF has no native idempotency key, so that state lives on your side.

Disclaimer

Notaly is not a tax, accounting or legal advisor. This article is general information, not tax advice, and may be outdated. You are responsible for your own VAT compliance; confirm with a qualified accountant where required.

Sources

Source: api-test.ksef.mf.gov.pl

Frequently asked questions

Is 440 an HTTP error?

No. It is an invoice processing status read from the session, with the official description "Duplikat faktury".

How does Notaly report it?

The invoice becomes rejected and the error field holds ksef_rejected:440.

Issue your first KSeF test invoice today

Create a sandbox account: API key in seconds, 3 free test invoices on KSeF TEST, no credit card.