ROWFA

FA(3) field lengths and number formats

Every field of an FA(3) invoice (the XML structure used in KSeF, Poland's national e-invoicing system) has a data type, and the type sets how long the text may be or how a number is written. These are the types the schema defines, with the fields that use them.

TypeRuleOfficial description (Polish)Used by
TZnakowyText, 1 to 256 charactersTyp znakowy ograniczony do 256 znakówSystemInfo NrEORI NrKlienta OpisRoli P_1M P_2 WZ P_19A and 44 more
TZnakowy512Text, 1 to 512 charactersTyp znakowy ograniczony do 512 znakówNazwa AdresL1 AdresL2 P_7 P_7Z ZNaglowek Akapit Opis
TZnakowy50Text, 1 to 50 charactersTyp znakowy ograniczony do 50 znakówUU_ID Indeks PKWiU CN PKOB Jednostka OpisInnegoTransportu OpisInnegoLadunku and 5 more
TZnakowy20Text, 1 to 20 charactersTyp znakowy ograniczony do 20 znakówGTIN GTINZ
TZnakowy2Text, up to 256 characters (may be empty)Typ znakowy ograniczony do 256 znakówWKom SKom
TNumerTelefonuText, up to 16 charactersNumer telefonuTelefon TelefonPU
TGLNText, 1 to 13 charactersTyp Globalnego Numeru LokalizacyjnegoGLN
TNrRBText, 10 to 34 charactersNumer rachunkuNrRB
SWIFT_Typemust match [A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3}){0,1}Kod SWIFTSWIFT
TNrVatUEmust match (\d|[A-Z]|\+|\*){1,12}Numer Identyfikacyjny VAT kontrahenta UENrVatUE
TNIPIdWewmust match [1-9]((\d[1-9])|([1-9]\d))\d{7}-\d{5}Identyfikator wewnętrznyIDWew
TNumerKSeFmust match ([1-9]((\d[1-9])|([1-9]\d))\d{7}|M\d{9}|[A-Z]{3}\d{7})-(20[2-9][0-9]|2[1-9][0-9]{2}|[3-9][0-9]{3})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])-([0-9A-F]{6})-?([0-9A-F]{6})-([0-9A-F]{2})Numer identyfikujący fakturę w Krajowym Systemie e-Faktur (KSeF)NrKSeFFaKorygowanej NrKSeFFaZaliczkowej
TKwotowyDecimal number, up to 18 digits in all, up to 2 after the decimal point; must match -?([1-9]\d{0,15}|0)(\.\d{1,2})?Wartość numeryczna 18 znaków max, w tym 2 znaki po przecinkuP_13_1 P_14_1 P_14_1W P_13_2 P_14_2 P_14_2W P_13_3 P_14_3 and 31 more
TKwotowy2Decimal number, up to 22 digits in all, up to 8 after the decimal point; must match -?([1-9]\d{0,13}|0)(\.\d{1,8})?Wartość numeryczna 22 znaki max, w tym 8 znaków po przecinkuP_9A P_9B P_10 P_9AZ
TIlosciDecimal number, up to 22 digits in all, up to 6 after the decimal point; must match -?([1-9]\d{0,15}|0)(\.\d{1,6})?Typ wykorzystywany do określenia ilości. Wartość numeryczna 22 znaki max, w tym 6 po przecinkuKursWalutyZ KursWalutyZK KursWalutyZW P_8B KursWaluty KursUmowny P_8BZ
TProcentowyDecimal number, up to 9 digits in all, up to 6 after the decimal point; from 0 to 100Wartość procentowa z dokładnością do 6 miejsc po przecinkuUdzial P_12_XII P_12Z_XII
TNaturalnyWhole number greater than 0Liczby naturalne większe od zeraP_NrWierszaNST NrWiersza NrWierszaFa NrWierszaZam
TDataTFrom 2006-01-01 to 2050-01-01Data zdarzenia w okresie od 2006-01-01 do 2050-01-01P_1 P_6 P_6_Od P_6_Do P_22A DataWystFaKorygowanej P_6Z P_6A
TDataFrom 2016-07-01 to 2050-01-01Data zdarzenia w okresie od 2016-07-01 do 2050-01-01DataZaplaty DataZaplatyCzesciowej Termin
TDataUFrom 1990-01-01 to 2050-01-01Data zdarzenia w okresie od 1990-01-01 do 2050-01-01DataUmowy DataZamowienia
TDataCzasFrom 2021-10-01T00:00:00Z to 2050-01-01T23:59:59ZData i czas zdarzenia w okresie od 01.10.2021T00:00:00Z do 01.01.2050T23:59:59ZDataGodzRozpTransportu DataGodzZakTransportu

How to read the number rules

The converter on this site copies each number as the text written in the XML, so a value with 8 decimal places stays a value with 8 decimal places in the workbook.

Have a ZIP of KSeF XML invoices?
Turn it into an Excel workbook and PDFs. Free up to 5 files, nothing uploaded.

Open the converter

Questions

How long can an invoice number (P_2) be in FA(3)?

Up to 256 characters. P_2 uses the type TZnakowy, which allows 1 to 256 characters.

How long can the name of goods or a service (P_7) be?

Up to 512 characters. P_7 uses the type TZnakowy512.

How many decimal places can a unit price have?

Up to 8. Unit prices (P_9A, P_9B) use the type TKwotowy2. Amounts such as P_11, P_13_1 or P_15 use TKwotowy, with up to 2.

What is the earliest issue date FA(3) accepts?

The type of P_1, TDataT, allows dates from 2006-01-01 to 2050-01-01.

Source: schemat_FA(3)_v1-0E.xsd (Ministry of Finance, KSeF documentation repository). Read 2026-11-10.

Related