Invoices

How to import an FA(3) XML invoice and submit it to KSeF in KSeFGPT

Upload a ready XML file, review its contents and PDF preview, confirm responsibility for the data and wait for the final KSeF status.

Go to the procedureWatch the video
Module
Invoices
Reading time
5 min
Difficulty
Intermediate

Follow the instructions carefully and you will succeed

Published
August 28, 2026
Author
Rafał Zeidler
Format
Written guide and video

Written procedure

What you will do

You will import one ready FA(3) XML invoice, review its contents and readable PDF preview, and then submit the document to KSeF.

This screen does not create a draft or run a separate schema check before submission. The preview helps you review the data, but KSeF decides whether the submitted document is accepted or rejected.

Requirements

Before you start

Prepare the final XML file and confirm that the selected company and authorization method are correct. An invoice accepted by KSeF cannot be edited freely afterwards.

ItemDescription
AccessThe company owner or an organization member with invoices:read access to Invoices and invoices:send for submission.
KSeF connectionThe selected company has an active token or certificate permitted to issue invoices.
FileOne `.xml` file in the FA(3) format, no larger than 10 MB.
Starting pointAfter signing in, select the correct company and open Invoices → Import.
Time requiredAbout 3 minutes plus KSeF processing time.
EffectOnce accepted by KSeF, the document is an issued invoice and mistakes may require a separate correcting document.

Process recording

PT20.28S

The recording shows file selection, XML and PDF review, data confirmation and the final KSeF status.

How to import an FA(3) XML invoice and submit it to KSeF - video guide
01Step

Open the XML file import

In Invoices, open Import and then select XML file.

The Import from XML file card accepts one XML file. If another import screen is visible, make sure XML file is selected.

Step 1
Import tab in Invoices with XML file selected and the upload area visible
02Step

Upload and review the XML contents

Drag the file into the area or select it from your drive. KSeFGPT displays its name, character count and the KSeF XML tab.

Review the FA(3) header, invoice number, seller and buyer NIP values, dates, line items and totals. At this stage the app formats the file for viewing, but it does not show a separate schema validation result.

Step 2
XML invoice import in KSeFGPT with the filename and KSeF XML tab
03Step

Review the generated PDF preview

Open Generated PDF. Compare the seller, buyer, invoice number and dates, line items and totals with the source data.

If the preview is incomplete or cannot be generated, do not submit the document. Select Change file, correct the XML in the source system and upload the corrected version.

Step 3
Generated PDF preview of the imported XML invoice with party details and totals
04Step

Confirm the data and submit the invoice

Return to the bottom of the preview and select I take full responsibility for the correctness of data sent to KSeF.

Check the selected company and authorization method again. When the button is enabled, select Submit to KSeF. Do not click it again while Submitting is shown.

Step 4
XML import preview with responsibility confirmed and Submit to KSeF enabled
05Step

Wait for the final KSeF status

After submission, KSeFGPT polls the KSeF session. Wait until the screen stops showing the pending state and displays Invoice accepted by KSeF or Invoice rejected by KSeF.

Check the reference number, status description and code in the result panel. Code 200 with the acceptance message completes this procedure. This screen does not have to show the final KSeF number yet.

Step 5
Final XML import screen with KSeF acceptance, a reference number and code 200

Final state

Check the result

The operation succeeded when the screen shows Invoice accepted by KSeF, a successful processing description and code 200. Keep the visible reference number for session diagnostics.

Refresh Outcome and search for the invoice number. If the document is not visible immediately, allow time for synchronization instead of submitting the same XML again.

Diagnostics

If something does not work

Compare the symptom with the table below.

SymptomLikely causeWhat to do
The file cannot be selectedIt is not an XML file, has an unsupported type or is larger than 10 MB.Choose one `.xml` file no larger than 10 MB.
Generated PDF does not appearThe XML structure cannot be read by the preview generator.Do not submit it. Correct the XML in the source system and upload it again.
Submit to KSeF is disabledThe responsibility confirmation is missing or the company has no active KSeF method.Select the confirmation. If an authorization warning is shown, configure a token or certificate.
A server error appears after submissionThe file, invoices:send permission or KSeF session was rejected before status tracking began.Check the connection and permissions, then correct the reported issue before retrying.
The status remains pendingKSeF is still processing the document or its response is delayed.Wait and do not submit the same invoice number again.
The invoice was rejectedKSeF returned a data, structure or permission error.Read the code and description, correct the source XML and only then submit a new version.

What next

Open Invoices → Outcome to find the accepted document and download its XML, PDF or UPO when available.

If you regularly prepare many documents outside KSeFGPT, consider the separate bulk XML import when it is available in your environment.

Import a ready XML invoice

Sign in, select a company connected to KSeF and review the document before submission.

Sign in to KSeFGPT

Related instructions

How to bulk import invoices from Excel or CSV into KSeFGPT

Upload a spreadsheet, review column mapping and invoice data, validate XML, then submit valid documents to KSeF.

Open instruction

How to bulk import XML invoices into KSeFGPT

Add several FA(3) files, correct an invalid document, select valid invoices and check each result from one KSeF session.

Open instruction

How to change an invoice payment status in KSeFGPT

Mark an invoice as new, in payment, paid or past due, then confirm the change and filter the document list.

Open instruction

How to sync incoming and outgoing invoices with KSeF

Choose a period, refresh Incoming and Outgoing separately, then check the documents retrieved from KSeF.

Open instruction