Government / e-invoicing connector

KSeF 2.0

KSeF 2.0 reference connector. The HTTP surface is declarative (urirun fetch adapter, environments test/demo/prod). The ksef-token auth handshake (challenge -> RSA-OAEP(token|timestamp) -> poll -> redeem) and client-side crypto (AES-256-CBC + RSAES-OAEP, SHA-256 invoice hash) are the two imperative helpers. The access token is addressed by reference (getv://KSEF_ACCESS_TOKEN), never embedded. Smoke against the TEST environment with random NIPs.

dostępny ✓ zweryfikowany

Co robi

  • Authenticate with a KSeF token and obtain a JWT access token.
  • Encrypt and send an FA(3) invoice in an online session, then poll acceptance/UPO.
  • Query accepted invoices and download by ksefNumber.

Schematy URI

ksef://

Wymagania

  • python>=3.10
  • cryptography>=42