Skip to main content

Active sessions

KSeF sessions represent active connections between various applications and the National e-Invoice System. A session allows for the maintenance of a so-called access token, which enables communication with KSeF. Revoking a session causes its associated refresh token to stop working, meaning it can no longer be used to obtain further access tokens. Active access tokens remain functional until their respective expiration times.

0_active_sessions.png

Session List​

In the Sessions section, you can view a list of all KSeF sessions:

  • Reference Number — the session identifier within KSeF.
  • Start Date — when the session was established.
  • Authorization Method — the type of certificate used.
  • Status — active / closed.
  • Refresh Valid Until — the expiration date of the so-called refresh token.

Revoking Sessions​

If you wish to close other active sessions (e.g., from other devices):

  1. Click the Revoke other sessions button.
  2. The application will send a termination request to KSeF.
  3. The process may take some time — sessions are closed in batches.
info

Revoking multiple sessions may be subject to KSeF API limits. In such cases, the application will automatically retry after the required waiting period has elapsed.

Token Refreshing​

A session token has a limited lifespan. The application automatically refreshes the token before it expires. If the refresh fails, re-authorization will be required.