Documentation for the two open-source packages Stacking maintains for Poland's KSeF 2.0 API. Pick the product you are working with:
- ksef2 SDK — the typed Python client: authentication, online and batch sessions, FA(3) invoices, exports, administration, and a low-level API for everything else.
- KSeF2 CLI — the same SDK from a terminal, with profiles, receipts, and UPO files you can keep in your repository.
The generated API reference sits at the bottom of the SDK sidebar. It is built from the SDK's public modules, so every name is listed under the import path you are supposed to use.
Every page here is copied from a pinned commit of its product repository — guides and API reference for a product always come from the same commit, and the commit and release are shown at the top of each sidebar. Nothing in the docs is edited in this website, so a page you read here is the page that ships with the release.
