Documentation
¶
Overview ¶
Package main demonstrates the full KSeF invoice lifecycle using ksef-go:
authenticate → open session → build invoice → submit → poll → download → terminate → UPO
Required environment variables:
KSEF_NIP — 10-digit NIP registered in the KSeF test environment
KSEF_TOKEN — API token issued by the KSeF test environment
KSEF_PUBKEY_PATH — path to the KSeF test environment RSA public key PEM file
(defaults to ../../testdata/ksef-test-public-key.pem)
Run:
KSEF_NIP=1234567890 KSEF_TOKEN=your-token go run examples/basic/main.go
Click to show internal directories.
Click to hide internal directories.