> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/ksef.md).

# KSEF

KSEF electronic document support in DocBits

{% hint style="info" %}
Check the country guide for version limits, effective configuration and the country explainer. [Poland](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/poland.md). FA2 and FA3 use different structures. Confirm the source schema and test the appropriate mapping; parsing does not submit an invoice to KSeF.
{% endhint %}

| Property             | Value                                    |
| -------------------- | ---------------------------------------- |
| **Country / Region** | Poland                                   |
| **Document Types**   | Invoice, Credit Note, Corrective Invoice |
| **Format**           | XML                                      |
| **Standard**         | KSeF (Krajowy System e-Faktur)           |

KSeF is the Polish National e-Invoice System operated by the Ministry of Finance. It will become mandatory for all Polish VAT-registered businesses. DocBits supports the KSeF FA2 and FA3 schema versions for invoice processing.

## Support Status

| Component        | Status      |
| ---------------- | ----------- |
| Preview          | ✅ Supported |
| Field Extraction | ✅ Supported |
| Transformation   | ✅ Supported |

## Default Preview

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-87dc88f9ffd1b925dff7a8d4aec46778c378ff69%2Fksef-preview.png?alt=media" alt="KSeF invoice preview in DocBits"><figcaption><p>Default DocBits preview for a Poland KSeF invoice</p></figcaption></figure>

## Related

* [Supported Electronic Documents](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents.md)
* [KSeF FA2](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/ksef-fa2.md)
* [KSeF FA3](/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/ksef-fa3.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/supported-electronic-documents/ksef.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
