Poland KSeF API 2.10.0 Adds Token Validity Periods and 2027 Sunset Dates
Key takeaways
- The Ministry of Finance released KSeF API 2.10.0 to the TEST environment on 16 November 2026. DEMO and production dates have not been announced yet.
- New rev2 token operations let you set a validity period for a KSeF token and add a token approval step.
- The current token operations are deprecated and will be withdrawn on 30 September 2027.
- The planned removal of the
authenticationMethodproperty on 16 November 2026 is canceled; the old authentication endpoints stay supported until 15 June 2027. - Deprecated endpoints now return
DeprecationandSunsetheaders and will answer 410 Gone once switched off.
KSeF API 2.10.0 is the first KSeF 2.0 release to set a firm end date for the way most ERP systems authenticate today. On 16 November 2026, the Ministry of Finance deployed version 2.10.0 of the National e-Invoice System (KSeF) API to its TEST environment. The release introduces revised token operations with a configurable validity period and an approval step, and sets 30 September 2027 as the withdrawal date for the current token endpoints. It also cancels the removal of a field that integrators had been told would disappear on the same day the release went to TEST.
Background
KSeF has been mandatory in Poland since 1 February 2026 for taxpayers with turnover above PLN 200 million and since 1 April 2026 for others. Most ERP and SAP integrations connect to the KSeF 2.0 API in one of two ways: with a qualified certificate or a KSeF certificate, or with a KSeF token generated in the taxpayer's context.
In September 2026, KGT reported that token authentication would be retained indefinitely, but that the Ministry intended to give tokens a fixed validity period. Version 2.10.0 is the technical delivery of that intention. The Ministry publishes KSeF API releases and their changelog in its official GitHub repositories, maintained by the Ministry's IT centre (CIRFMF).
See our earlier Poland Country Updates for the KSeF legal timeline and the penalty deferral to 1 January 2028.
The Legislative Change
This is a technical release, not a legislative change. It operates within the existing KSeF legal framework. It is nonetheless binding in practice: when a deprecated endpoint is switched off, calls to it will be rejected with HTTP 410 Gone, and an ERP integration that still uses it will stop sending or receiving invoices.
The changelog for 2.10.0 sets out the following changes:
- Token operations, revision 2. New operations to generate a token with a defined validity period (POST /tokens/rev2), list generated tokens (GET /tokens/rev2) and read a token's status (GET /tokens/rev2/{referenceNumber}).
- Withdrawal of the current token operations. The existing generate, list, and status operations are marked deprecated and will be withdrawn on 30 September 2027.
- Token approval. A new operation approves a token (POST /tokens/{referenceNumber}/approve). On test environments only, a test operation simulates an expired approval, moving the token status from AwaitingApproval to ApprovalExpired.
- Authentication status. A new status code 450 is returned when someone tries to authenticate with a rev2 KSeF token outside its validity period.
- Authentication endpoints. The removal of the
authenticationMethodproperty announced in version 2.1.0 for 16 November 2026 will not take place. The property stays in GET /auth/{referenceNumber} and GET /auth/sessions, which remain supported until 15 June 2027. New rev2 versions of both operations useauthenticationMethodInfoinstead. - Token revocation. A new error code 26004 is returned when the token's status does not allow revocation.
- Limits and permissions. The limits response now shows the limit on rev2 KSeF tokens, and the permission to manage collective identifiers (CollectiveIdentifierManage) can now be granted to EU-entity administrators and representatives.
- Sunset signaling. Responses from deprecated endpoints carry Deprecation and Sunset headers, and a withdrawn operation will return 410 Gone.
Scope
The release affects every system that connects to the KSeF 2.0 API: ERP systems, SAP DRC and add-on integrations, accounting software, service providers acting for many taxpayers, and EU entities that hold KSeF permissions. It matters most to integrations that authenticate with KSeF tokens, which is common for unattended batch connections.
Integrations that authenticate with certificates are affected by the authentication-endpoint changes but not by the token changes.
Timeline
| Date | Event |
|---|---|
| 16 November 2026 | KSeF API 2.10.0 deployed to the TEST environment |
| 16 November 2026 | Previously announced removal of authenticationMethod does not take place |
| To be announced | Deployment of 2.10.0 to DEMO and production |
| 15 June 2027 | End of support for GET /auth/{referenceNumber} and GET /auth/sessions (current versions) |
| 30 September 2027 | Withdrawal of the current token generate, list and status operations |
Businesses Affected
Any taxpayer that issues or receives invoices in KSeF through an automated connection is affected, as are software vendors and shared service centers that manage KSeF access for several Polish entities. Groups with Polish entities running on SAP should check whether their connector, SAP DRC configuration or add-on uses token authentication and the current authentication endpoints.
Required Actions
- Inventory every KSeF connection and record whether it authenticates with a token or a certificate.
- Test the rev2 token operations, the approval step, and status code 450 on the TEST environment.
- Plan the move to the rev2 authentication status and session endpoints before 15 June 2027.
- Plan the move to rev2 token generation before 30 September 2027, and decide which validity period to set for each token.
- Monitor the Deprecation and Sunset headers in API responses and alert on them.
- Ask your software vendor or SAP partner for their release plan for 2.10.0.
Practical Implications
Rev2 tokens with a validity period end the practice of creating one token and leaving it in place for years. Someone must own token renewal, approval, and storage, in the same way as certificate renewal. An expired token will block authentication, and status code 450 tells you why.
The two sunset dates also help with planning. They give integrators a fixed window and a machine-readable warning, so they can schedule changes into 2027 release cycles rather than handle them as incidents.
Expected Next Steps
The Ministry is expected to publish DEMO and production deployment dates for 2.10.0 in the changelog. Further details on token validity periods and approval may follow in the KSeF documentation. KGT will report production dates when they are published.
Frequently asked questions
When does KSeF API 2.10.0 go live in production?
It was deployed to the TEST environment on 16 November 2026. DEMO and production dates had not been published when this article was written.
Will KSeF tokens stop working?
No. Token authentication will continue, but current token operations will be withdrawn on 30 September 2027. New rev2 tokens have a validity period, and the release adds a token approval step.
What is the deadline for the KSeF authentication endpoints?
The current GET /auth/{referenceNumber} and GET /auth/sessions operations remain supported until 15 June 2027. After that, integrations must use the rev2 versions.
What happens when a deprecated KSeF endpoint is switched off?
The endpoint returns HTTP 410 Gone. Until then, its responses carry Deprecation and Sunset headers that state the dates.
How Can KGT Support You?
KGT helps multinationals meet these requirements directly from SAP with SAP-integrated e-invoicing add-ons and SAP Document and Reporting Compliance (DRC) services. We review your KSeF connections, upgrade them to the rev2 token and authentication operations, and set up token renewal and monitoring so that the 2027 sunset dates pass without disruption.
This Country Update is for general information only and does not constitute tax or legal advice.
