Documentation Index
Fetch the complete documentation index at: https://invopop-kill-invoicexpress.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
KSeF (Krajowy System e-Faktur) 2.0 is Polandโs mandatory national e-invoicing system operated by the Ministry of Finance. The system uses the FA(3) XML schema format for structured invoice data and provides real-time clearance for all B2B invoices. Invoices are encoded in FA(3), a strict XML format that enforces standardized fields for domestic and cross-border transactions. The KSeF system validates all submitted invoices in real-time and assigns a unique KSeF ID upon successful clearance. This guide covers three key processes:- Party registration: Registering suppliers in the KSeF system
- Invoice issuance: Creating and sending FA(3) invoices through KSeF
- Invoice import: Importing received invoices from KSeF
- Send only: You issue invoices through KSeF on behalf of your suppliers. This is the simplest setup and does not require the Cron app or import/sync workflows.
- Send & receive: In addition to sending, you also want to automatically import invoices received by your suppliers from KSeF. This requires the Cron app to periodically check for new invoices.
| Component | Send only | Send & receive |
|---|---|---|
| Poland app | โ | โ |
| Cron app | โ | โ |
| Send invoice workflow | โ | โ |
| Import invoice workflow | โ | โ |
| Sync invoices workflow | โ | โ |
| Registration workflow | Send | Send & receive |
| - | Sandbox | Live |
|---|---|---|
| Supplier | Fake NIP allowed (test mode); real NIP needed for demo mode | Valid NIP and KSeF portal credentials required |
| Mode | Defaults to test; demo available via config | Automatically targets KSeF production |
Prerequisites
To issue invoices through KSeF, you will need:| Environment | Requirements |
|---|---|
| Invopop Sandbox Test mode | Test Polish Tax ID (NIP) You can generate fake NIPs for testing at http://generatory.it/. In test mode, a self-signed certificate will be generated automatically, and you can start sending invoices immediately. |
| Invopop Sandbox Demo mode | Real Polish Tax ID (NIP) and credentials to access the KSeF Demo Portal Demo mode follows the same registration process as production but operates in the demo environment. |
| Invopop Live | Valid company NIP and credentials to access the KSeF Portal You will need to generate a certificate through the KSeF portal. Registration will automatically target the KSeF production environment. |
Setup
All of the following steps must be carried out from the Invopop Console. If you only need to send invoices, you can skip the steps marked as โreceive onlyโ.Connect the Poland app
- Navigate to Configuration โ Apps
- Find Poland in the app discovery list
- Click Connect to activate

Connect the Cron app (receive only)
- Navigate to Configuration โ Apps
- Find Cron in the app discovery list
- Click Connect to activate
Configure invoice sending workflow
- Template
- Code
- Build from scratch
KSeF send invoice workflow
Configure invoice import workflow (receive only)
- Template
- Code
- Build from scratch
KSeF import invoice workflow
Configure invoice sync workflow (receive only)

- Template
- Code
- Build from scratch
KSeF sync received invoices workflow
Configure party registration workflow
- Send only: Registers the party in KSeF so you can issue invoices on their behalf. Does not require the Cron app.
- Send & receive: Registers the party and subscribes them to periodic invoice imports via the Cron app. Requires the import and sync workflows configured in the previous steps.

- Test: Self-signed certificate generated automatically, no manual steps required
- Demo: Requires manual certificate generation from the demo portal.
Send only
Use this template if you only need to send invoices through KSeF.- Template
- Code
- Build from scratch
KSeF party registration workflow (send)
Send & receive
Use this template if you also need to receive invoices from KSeF. This template includes a Cron subscription step that periodically triggers the sync workflow to check for new invoices.- Template
- Code
- Build from scratch
KSeF party registration workflow (receive)
Running
In this section, weโll provide details on how to register parties (suppliers) and issue invoices on their behalf.Register a party for test environment
Create the party
Register a party for demo/production environment
Create the party
Run the workflow
- For Demo: Choose your KSeF Register Party (Demo) workflow
- For Production: Choose your KSeF Register Party (Production) workflow
Access the registration link
In Console, go to the supplier entry โ Meta tab โ click the gov-pl.invopop.com link to launch the registration wizard.

In Console, go to the supplier entry โ Meta tab โ click the gov-pl.invopop.com link to launch the registration wizard.Add a webhook after the Register Party in KSeF step to receive the
siloEntryId.Use the Fetch an Entry endpoint to get the registration link from the meta object:link_url to your customer.Generate a certificate in KSeF portal
-
Visit the KSeF portal
- Demo: KSeF Demo Portal
- Production: KSeF Portal
- Log in with Trusted Profile (Profil Zaufany)
-
Generate the certificate
- Navigate to certificate generation section
- Enter certificate name and password (save the password!)
- Download the private key (automatically generated)
- Select โAuthentication in the KSeF systemโ
- Set start date to today or earlier (future dates will fail)
- Download the certificate file
- Video tutorial: Certificate generation
Upload certificate to Invopop
Return to the registration wizard and upload:
- Certificate file
- Private key file
- Password

Upload the certificate programmatically using the Upload KSeF certificate endpoint.
Send an invoice
Once a party is registered, you can issue invoices on their behalf. The following examples show partial GOBL documents you can copy and paste directly into the Invopop Console or store via the API as silo entries.B2B Standard Invoice
B2B Standard Invoice
- the minimal version (
ksef-b2b-standard.min.mdx) contains only the essential fields required to create the invoice, - the
pl-ksef-v1addon ensures the document will be validated using the KSeF rules built into the GOBL library, - there are no totals or calculations in the minimal version; all these will be calculated automatically when running
gobl build, - the built version (
ksef-b2b-standard.mdx) shows the normalized document with calculated totals, line item sums, tax breakdowns, and automatically generated fields likei(line index),sum, andtotal, and, - make sure to process it with the โIssue KSeF invoiceโ workflow created during setup.
B2B Reverse Charge Invoice
B2B Reverse Charge Invoice
- the customer has a valid EU VAT ID, indicating the transaction is subject to reverse charge mechanism,
- the minimal version contains only essential fields; totals and tax calculations are omitted,
- when running
gobl build, the system automatically calculates totals, applies reverse charge rules, and normalizes the document, - the built version shows all calculated fields including the reverse charge indicator, tax breakdowns, and final totals, and,
- the invoice is validated using the KSeF rules to ensure compliance with Polish e-invoicing requirements.
B2B Credit Note
B2B Credit Note
- the
typefield is set tocredit-noteto indicate this is a corrective document, - the
precedingfield references the original invoice being corrected, - the minimal version contains only the essential fields; calculations are handled by GOBL,
- when running
gobl build, the system automatically calculates negative totals, tax refunds, and validates the credit note structure, - the built version shows all calculated fields including negative amounts for the refund, and,
- the document is validated using the KSeF rules to ensure compliance with Polish credit note requirements.
B2B Prepayment Invoice (Faktura Zaliczkowa)
B2B Prepayment Invoice (Faktura Zaliczkowa)
- the
$tagsfield includespartial, which tells the FA_VAT addon to classify this as aZAL(Faktura Zaliczkowa) document type, - the
payment.advancesarray records the advance payment details, including the mandatorydatefield and apercentof the total, - GOBL automatically calculates the advance amount from the percentage and deducts it from the payable total to produce the
dueamount, - the built version shows
"pl-favat-invoice-type": "ZAL"automatically set in the tax extensions, and, - after sending this invoice through KSeF, reference the assigned KSeF number in the subsequent settlement invoice.
B2B Settlement Invoice (Faktura Rozliczeniowa)
B2B Settlement Invoice (Faktura Rozliczeniowa)
- the
$tagsfield includessettlement, which tells the FA_VAT addon to classify this as aROZ(Faktura Rozliczeniowa) document type, - the
precedingfield references the original prepayment invoice, including its KSeF number stamp, - the
payment.advancesarray records the previously paid advance amount, which GOBL deducts from the total to calculate the remainingdue, - the line items represent the full value of the delivered goods or services, and,
- the built version shows
"pl-favat-invoice-type": "ROZ"automatically set in the tax extensions.
B2C Invoice (voluntary)
B2C Invoice (voluntary)
- Click Build to validate
- Click Save to store in the silo
- Click Select workflow and choose the KSeF Send Invoice workflow
- Click Run workflow
Import received invoices
- Cron scheduling: The Cron app creates a job for the sync workflow at each configured interval, passing the time window (
fromandupto) to process - Sync workflow: The sync workflow queries KSeF for all invoices received within the time window
- Import jobs: For each invoice found, a job is created using your import workflow
- Import workflow: Each job downloads the FA(3) XML from KSeF, converts it to GOBL format, and stores it in your Invopop silo
- Organization: Imported invoices are automatically placed in the configured folder (typically โInvoices ยท Expensesโ) with a
Registeredstate
Manual import
If you need to import invoices outside of the automatic cron schedule, you can manually trigger imports from the Console or via the API. Import a single invoice To import a specific invoice from KSeF, you need:- KSeF Number: The unique invoice identifier (e.g.,
1234567890-20260120-ABCD1234-EF) - Supplier NIP: The Polish Tax ID of the invoice issuer
- Console
- API
- Navigate to Workflows and find your KSeF Import Invoice workflow
- Click Run from the workflow editor or the
...menu in the workflow list (see Running from the Console) - Leave the document field empty โ the import workflow will create a new silo entry automatically
- Fill in the Arguments:
| Key | Value |
|---|---|
ksef-number | 1234567890-20260120-ABCD1234-EF |
nip | 1234567890 |
- Click Run workflow
- The party silo entry for the supplier whose invoices you want to sync
- The date range (
fromandupto) to process
- Console
- API
- Navigate to Workflows and find your KSeF Sync Received Invoices workflow
- Click Run from the workflow editor or the
...menu in the workflow list - In the Select a document field, search for and select the party (supplier) entry
- Fill in the Arguments:
| Key | Value |
|---|---|
from | 2026-01-01T00:00:00Z |
upto | 2026-01-31T23:59:59Z |
- Click Run workflow
Error handling and notifications
We strongly recommend adding notification steps to your workflows to alert you of import failures:- In the import workflow: Add email or Slack notifications to the error handling section
- In the sync workflow: Add notifications for when the sync process encounters issues
GOBL addon reference
Detailed information about the FA(3)-specific extensions and validations can be found in: You can also use the GOBL Builder to create custom invoices with the Polish regime and FA(3) addon.๐ต๐ฑ Invopop resources for Poland
๐ต๐ฑ Invopop resources for Poland
| Compliance | Compliance timeline |
| Apps | |
| Guides | Poland Guide |
| FAQ | Poland FAQ |
| GOBL |