Documentation – KSeF Service REST API + Automation Clients

Version: v1 / updated public scope

This document describes the publicly documented KSeF Service API and the operation of the sample automation clients: PowerShell (KSeFService.ps1) and Linux Bash (KSeFService.sh).

The currently communicated platform scope includes: sending FA(3) invoices, batch ZIP processing, invoice search/download, XML/PDF generation, correction XML generation, QR generation, status/UPO handling, JPK generation, CSV / custom export formats, permissions & roles management, and optional automation/webhook scenarios.

Quick start

Authentication model

  • clientId – client GUID
  • login – account e-mail
  • password – panel / API password
  • api_envTEST, PROD or DEMO

Typical integration flow

  1. Generate XML from JSON or upload existing FA(3) XML
  2. Optionally generate corrective XML
  3. Send invoice XML or ZIP batch
  4. Read processing/result payload
  5. Store JSON log / session reference / invoice reference
  6. Collect KSeF number and UPO when available
  7. Optionally download XML or PDF later

Automation clients

  • Windows + PowerShell 5.1+
  • Linux + Bash + curl + zip
  • Internet access
  • Valid KSeF Service account and API access