Workflow Overview
Use this section when you already know the SDK shape and want to complete a specific KSeF task. The quickstart shows one end-to-end path; these workflow pages separate the decisions you usually make in production code.
Typical production order
Section titled “Typical production order”-
Configure the environment and credentials.
Use environment variables for secrets and local config for non-secret profile defaults.
-
Authenticate once for the target context.
The authenticated client exposes
online_session,batch,invoices,tokens,permissions,certificates, and other workflow branches. -
Run the workflow branch that owns the task.
Use public root branches for encryption certificates, PEPPOL lookup, and TEST data. Use authenticated branches for invoices, sessions, tokens, permissions, certificates, and limits.
-
Poll for KSeF processing or operation status.
The high-level helpers include polling methods for invoice status, batch completion, permission operations, certificate enrollment, query visibility, and export package readiness.
-
Persist the business result.
Store KSeF numbers, session references, operation references, export handles, downloaded XML, token references, certificate serial numbers, and UPO documents according to your application’s retention policy.