Skip to main content

UBL to KSeF FA(3) Mapping Reference

This document describes how UBL (Universal Business Language) invoice fields are mapped to the Polish KSeF FA(3) e-invoice format.

Invoice Header

Fa = Faktura = invoice

KodWaluty = Currency code

RodzajFaktury = Invoice type

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.P_2cbc:IDYesInvoice number
Fa.P_1cbc:IssueDateYesInvoice issue date. Formatted as date (Y-m-d)
Fa.KodWalutycbc:DocumentCurrencyCodeYesCurrency code
Fa.RodzajFakturycbc:InvoiceTypeCodeYesInvoice type (VAT / KOR / ZAL / ...).
Map:
380VAT
389VAT
384KOR
STRICT
Fa.P_6Delivery > ActualDeliveryDate
XPathcac:Delivery/cbc:ActualDeliveryDate
NoDate of sale / actual delivery. Formatted as date (Y-m-d)

Seller

Podmiot1 = Subject/entity 1 (seller)

DaneIdentyfikacyjne = Identification data

NIP = Polish tax ID

Nazwa = Name

Adres = Address

KodKraju = Country code

AdresL1 = Address line 1

AdresL2 = Address line 2

GLN = Global Location Number

KSeF FieldUBL SourceReq.DefaultConditionDescription
Podmiot1.DaneIdentyfikacyjne.NIPAccountingSupplierParty > Party > PartyTaxScheme > CompanyID
XPathcac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
YesSeller tax identification number
Podmiot1.DaneIdentyfikacyjne.NazwaAccountingSupplierParty > Party > PartyLegalEntity > RegistrationName
XPathcac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
YesSeller name
Podmiot1.Adres.KodKrajuAccountingSupplierParty > Party > PostalAddress > Country > IdentificationCode
XPathcac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
NoSeller country code
Podmiot1.Adres.AdresL1AccountingSupplierParty > Party > PostalAddress > StreetName
XPathcac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:StreetName
NoSeller street address
Podmiot1.Adres.AdresL2AccountingSupplierParty > Party > PostalAddress > PostalZone
XPathcac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:PostalZone
, AccountingSupplierParty > Party > PostalAddress > CityName
XPathcac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CityName
NoSeller postal zone and city
Podmiot1.Adres.GLNAccountingSupplierParty > Party > PartyIdentification[ID > @schemeID='0088'] > ID
XPathcac:AccountingSupplierParty/cac:Party/cac
cbc:ID/@schemeID='0088'
/cbc:ID
NoSeller Global Location Number

Buyer

Podmiot2 = Subject/entity 2 (buyer)

IDNabywcy = Buyer ID

KodUE = EU country code

NrVatUE = EU VAT number

BrakID = No ID flag

NrKlienta = Customer number

gV = VAT group flag

jST = Local government unit flag

DaneKontaktowe = Contact details

KSeF FieldUBL SourceReq.DefaultConditionDescription
Podmiot2.DaneIdentyfikacyjne.NazwaAccountingCustomerParty > Party > PartyLegalEntity > RegistrationName
XPathcac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
YesBuyer name
Podmiot2.Adres.KodKrajuAccountingCustomerParty > Party > PostalAddress > Country > IdentificationCode
XPathcac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
NoBuyer country code
Podmiot2.Adres.AdresL1AccountingCustomerParty > Party > PostalAddress > StreetName
XPathcac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:StreetName
NoBuyer street address
Podmiot2.Adres.AdresL2AccountingCustomerParty > Party > PostalAddress > PostalZone
XPathcac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone
, AccountingCustomerParty > Party > PostalAddress > CityName
XPathcac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CityName
NoBuyer postal zone and city
Podmiot2.Adres.GLNAccountingCustomerParty > Party > PartyIdentification[ID > @schemeID='0088'] > ID
XPathcac:AccountingCustomerParty/cac:Party/cac
cbc:ID/@schemeID='0088'
/cbc:ID
NoBuyer Global Location Number
Podmiot2.DaneIdentyfikacyjne.NIPAccountingCustomerParty > Party > PartyTaxScheme > CompanyID
XPathcac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
YesBuyer is Polish or country not specifiedBuyer tax ID (Polish buyer)
Podmiot2.IDNabywcyAccountingCustomerParty > Party > PartyTaxScheme > CompanyID
XPathcac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
NoBuyer is Polish or country not specifiedBuyer ID (Polish buyer)
Podmiot2.DaneIdentyfikacyjne.KodUEAccountingCustomerParty > Party > PostalAddress > Country > IdentificationCode
XPathcac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
NoBuyer is not Polish
Buyer has a VAT ID
EU country code (foreign buyer with VAT ID)
Podmiot2.DaneIdentyfikacyjne.NrVatUEAccountingCustomerParty > Party > PartyTaxScheme > CompanyID
XPathcac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
NoBuyer is not Polish
Buyer has a VAT ID
EU VAT number (foreign buyer with VAT ID). Extracted via regex /^[A-Z]{2}(.+)$/
Podmiot2.DaneIdentyfikacyjne.BrakIDNo1Buyer is not Polish
NOT: Buyer has a VAT ID
No ID flag (foreign buyer without VAT ID)
Podmiot2.NrKlientaAccountingCustomerParty > SupplierAssignedAccountID
XPathcac:AccountingCustomerParty/cbc:SupplierAssignedAccountID
NoCustomer number
Podmiot2.gVUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='GV-recipient'] > Key
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='GV-recipient'
/puf:Key
NoVAT group flag.
Map:
GV-recipient1
Podmiot2.jSTUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='JST-recipient'] > Key
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='JST-recipient'
/puf:Key
NoLocal government unit flag.
Map:
JST-recipient1
Podmiot2.DaneKontaktowe[0].TelefonAccountingCustomerParty > AccountingContact > Telephone
XPathcac:AccountingCustomerParty/cac:AccountingContact/cbc:Telephone
NoBuyer contact phone
Podmiot2.DaneKontaktowe[0].EmailAccountingCustomerParty > AccountingContact > ElectronicMail
XPathcac:AccountingCustomerParty/cac:AccountingContact/cbc:ElectronicMail
NoBuyer contact email

Third Party

Podmiot3 = Subject/entity 3 (third party)

RolaInna = Other role flag

OpisRoli = Role description

KSeF FieldUBL SourceReq.DefaultConditionDescription
Podmiot3[0].DaneIdentyfikacyjne.NIPUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Party > PartyTaxScheme > CompanyID
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
NoThird party tax ID
Podmiot3[0].DaneIdentyfikacyjne.NazwaUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Party > PartyLegalEntity > RegistrationName
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName
NoThird party name
Podmiot3[0].Adres.KodKrajuUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Party > PostalAddress > Country > IdentificationCode
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
NoThird party country code
Podmiot3[0].Adres.AdresL1UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Party > PostalAddress > StreetName
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cac:Party/cac:PostalAddress/cbc:StreetName
NoThird party street address
Podmiot3[0].RolaInnaUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Description
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cbc:Description
NoOther role flag. Computed: !empty(source) ? '1' : ''
Podmiot3[0].OpisRoliUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformationParty[Key='otherEntity'] > Description
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='otherEntity'
/cbc:Description
NoRole description

Correction Invoice

KOR = Faktura Korygujaca = correction invoice

PrzyczynaKorekty = Reason for correction

TypKorekty = Correction type

DaneFaKorygowanej = Data of the corrected invoice

DataWystFaKorygowanej = Issue date of the corrected invoice

NrFaKorygowanej = Number of the corrected invoice

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.PrzyczynaKorektyBillingReference > InvoiceDocumentReference > UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > BillingReferenceExtension > Note
XPathcac:BillingReference/cac:InvoiceDocumentReference/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:BillingReferenceExtension/cbc:Note
NoReason for correction
Fa.TypKorektyBillingReference > InvoiceDocumentReference > UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > BillingReferenceExtension > RestrictedInformation[Key='correctionType'] > Value
XPathcac:BillingReference/cac:InvoiceDocumentReference/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:BillingReferenceExtension/puf
puf:Key='correctionType'
/puf:Value
NoCorrection type (1/2/3)
Fa.DaneFaKorygowanejBillingReference > InvoiceDocumentReference
XPathcac:BillingReference/cac:InvoiceDocumentReference
NoInvoice references a corrected invoiceData of the corrected (original) invoice. Grouped by rowIndex

Fa.DaneFaKorygowanej

DaneFaKorygowanej = Data of the corrected invoice

KSeF FieldUBL SourceReq.DefaultConditionDescription
DataWystFaKorygowanejcbc:IssueDateNoIssue date of the corrected invoice. Formatted as date (Y-m-d)
NrFaKorygowanejcbc:IDNoNumber of the corrected invoice
NrKSeFUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > BillingReferenceExtension > ClearanceID
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:BillingReferenceExtension/puf:ClearanceID
NoOriginal invoice was registered in KSeFFlag indicating corrected invoice was in KSeF. Computed: '1'
NrKSeFFaKorygowanejUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > BillingReferenceExtension > ClearanceID
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:BillingReferenceExtension/puf:ClearanceID
NoOriginal invoice was registered in KSeFKSeF identifier of the corrected invoice
NrKSeFNcbc:IDNoNOT: Original invoice was registered in KSeFFlag indicating corrected invoice was NOT in KSeF. Computed: '1'

Tax Totals

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.P_13_1TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=23] > TaxableAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=23
/cbc:TaxableAmount
NoNet amount at 23% VAT rate
Fa.P_14_1TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=23] > TaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=23
/cbc:TaxAmount
NoTax amount at 23% VAT rate
Fa.P_14_1WTaxTotal > TaxSubtotal[number(TaxCategory > Percent)=23] > UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > TaxSubtotalExtension > TaxCurrencyTaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=23
/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:TaxSubtotalExtension/puf:TaxCurrencyTaxAmount
NoTax amount at 23% in tax currency
Fa.P_13_2TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=8] > TaxableAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=8
/cbc:TaxableAmount
NoNet amount at 8% VAT rate
Fa.P_14_2TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=8] > TaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=8
/cbc:TaxAmount
NoTax amount at 8% VAT rate
Fa.P_14_2WTaxTotal > TaxSubtotal[number(TaxCategory > Percent)=8] > UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > TaxSubtotalExtension > TaxCurrencyTaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=8
/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:TaxSubtotalExtension/puf:TaxCurrencyTaxAmount
NoTax amount at 8% in tax currency
Fa.P_13_3TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=5] > TaxableAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=5
/cbc:TaxableAmount
NoNet amount at 5% VAT rate
Fa.P_14_3TaxTotal > TaxSubtotal[number(TaxCategory > Percent)=5] > TaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=5
/cbc:TaxAmount
NoTax amount at 5% VAT rate
Fa.P_14_3WTaxTotal > TaxSubtotal[number(TaxCategory > Percent)=5] > UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > TaxSubtotalExtension > TaxCurrencyTaxAmount
XPathcac:TaxTotal/cac
number(cac:TaxCategory/cbc:Percent)=5
/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:TaxSubtotalExtension/puf:TaxCurrencyTaxAmount
NoTax amount at 5% in tax currency
Fa.P_13_6_1TaxTotal > TaxSubtotal[TaxCategory > ID='Z' and TaxCategory > Name='0-KR'] > TaxableAmount
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='Z' and cac:TaxCategory/cbc:Name='0-KR'
/cbc:TaxableAmount
NoNet amount at 0% domestic (0-KR)
Fa.P_13_6_2TaxTotal > TaxSubtotal[TaxCategory > ID='Z' and TaxCategory > Name='0-WDT'] > TaxableAmount
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='Z' and cac:TaxCategory/cbc:Name='0-WDT'
/cbc:TaxableAmount
NoNet amount at 0% intra-community (0-WDT)
Fa.P_13_6_3TaxTotal > TaxSubtotal[TaxCategory > ID='Z' and TaxCategory > Name='0-EX'] > TaxableAmount
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='Z' and cac:TaxCategory/cbc:Name='0-EX'
/cbc:TaxableAmount
NoNet amount at 0% export (0-EX)
Fa.P_13_7TaxTotal > TaxSubtotal[TaxCategory > ID='E' and not(TaxCategory > TaxExemptionReasonCode='VATEX-EU-D' or TaxCategory > TaxExemptionReasonCode='VATEX-FR-F' or TaxCategory > TaxExemptionReasonCode='VATEX-FR-I' or TaxCategory > TaxExemptionReasonCode='VATEX-FR-J')] > TaxableAmount
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='E' and not(cac:TaxCategory/cbc:TaxExemptionReasonCode='VATEX-EU-D' or cac:TaxCategory/cbc:TaxExemptionReasonCode='VATEX-FR-F' or cac:TaxCategory/cbc:TaxExemptionReasonCode='VATEX-FR-I' or cac:TaxCategory/cbc:TaxExemptionReasonCode='VATEX-FR-J')
/cbc:TaxableAmount
NoNet amount exempt from VAT

Total Amount

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.P_15LegalMonetaryTotal > PayableAmount
XPathcac:LegalMonetaryTotal/cbc:PayableAmount
YesTotal payable amount

Annotations

Adnotacje = Annotations

Zwolnienie = VAT exemption

NoweSrodkiTransportu = New means of transport

PMarzy = Margin scheme (procedura marzy)

P_PMarzyN = Margin scheme not applied

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.Adnotacje.P_16UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformation[Key='checkoutMethod'] > Value
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='checkoutMethod'
/puf:Value
NoSelf-billing annotation.
Map:
true1
false2
Fa.Adnotacje.P_17cbc:InvoiceTypeCode[.='389']NoSelf-billing invoice (type 389).
Map:
3891
Fa.Adnotacje.P_18TaxTotal > TaxSubtotal > TaxCategory > ID[.='AE']
XPathcac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc
.='AE'
NoBuyer is Polish or country not specifiedReverse charge annotation.
Map:
AE1
Fa.Adnotacje.P_18ALegalMonetaryTotal > PayableAmount
XPathcac:LegalMonetaryTotal/cbc:PayableAmount
NoLarge invoice annotation (amount > 15000). Computed: floatval(source) > 15000 ? '1' : '2'
Fa.Adnotacje.Zwolnienie.P_19No1Invoice has VAT-exempt tax (excluding margin scheme)VAT exemption present
Fa.Adnotacje.Zwolnienie.P_19ATaxTotal > TaxSubtotal[TaxCategory > ID='E' and TaxCategory > TaxExemptionReasonCode='P_19A'] > TaxCategory > TaxExemptionReason
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='E' and cac:TaxCategory/cbc:TaxExemptionReasonCode='P_19A'
/cac:TaxCategory/cbc:TaxExemptionReason
NoVAT exemption reason (art. P_19A)
Fa.Adnotacje.Zwolnienie.P_19BTaxTotal > TaxSubtotal[TaxCategory > ID='E' and TaxCategory > TaxExemptionReasonCode='P_19B'] > TaxCategory > TaxExemptionReason
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='E' and cac:TaxCategory/cbc:TaxExemptionReasonCode='P_19B'
/cac:TaxCategory/cbc:TaxExemptionReason
NoVAT exemption reason (art. P_19B)
Fa.Adnotacje.Zwolnienie.P_19CTaxTotal > TaxSubtotal[TaxCategory > ID='E' and TaxCategory > TaxExemptionReasonCode='P_19C'] > TaxCategory > TaxExemptionReason
XPathcac:TaxTotal/cac
cac:TaxCategory/cbc:ID='E' and cac:TaxCategory/cbc:TaxExemptionReasonCode='P_19C'
/cac:TaxCategory/cbc:TaxExemptionReason
NoVAT exemption reason (art. P_19C)
Fa.Adnotacje.Zwolnienie.P_19NNo1NOT: Invoice has VAT-exempt tax (excluding margin scheme)No VAT exemption
Fa.Adnotacje.NoweSrodkiTransportu.P_22NNo1New means of transport not applicable
Fa.Adnotacje.P_23UBLExtensions > UBLExtension > ExtensionContent > PageroExtension > RestrictedInformation[Key='simplifiedTriangular'] > Value
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf
puf:Key='simplifiedTriangular'
/puf:Value
NoSimplified triangular transaction.
Map:
true1
false2
Fa.Adnotacje.PMarzy.P_PMarzyNo1Any margin scheme appliesMargin scheme applied
Fa.Adnotacje.PMarzy.P_PMarzy_2No1Margin scheme: travel servicesMargin scheme: travel services
Fa.Adnotacje.PMarzy.P_PMarzy_3_1No1Margin scheme: second-hand goodsMargin scheme: second-hand goods
Fa.Adnotacje.PMarzy.P_PMarzy_3_2No1Margin scheme: artworksMargin scheme: artworks
Fa.Adnotacje.PMarzy.P_PMarzy_3_3No1Margin scheme: collectibles and antiquesMargin scheme: collectibles and antiques
Fa.Adnotacje.PMarzy.P_PMarzyNNo1NOT: Any margin scheme appliesMargin scheme not applied

Payment

Platnosc = Payment

FormaPlatnosci = Payment form

TerminPlatnosci = Payment term

Termin = Due date

RachunekBankowy = Bank account

NrRB = Bank account number (IBAN)

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.Platnosc.FormaPlatnosciPaymentMeans > PaymentMeansCode
XPathcac:PaymentMeans/cbc:PaymentMeansCode
NoPayment form (1=cash, 2=card, 6=transfer, ...).
Map:
306
426
482
496
101
11
STRICT
Fa.Platnosc.TerminPlatnosci[0].Termincbc:DueDateNoPayment due date. Formatted as date (Y-m-d)
Fa.Platnosc.RachunekBankowy[0].NrRBPaymentMeans > PayeeFinancialAccount > ID
XPathcac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID
NoBank account number (IBAN)
Fa.Platnosc.RachunekBankowy[0].SWIFTPaymentMeans > PayeeFinancialAccount > FinancialInstitutionBranch > ID
XPathcac:PaymentMeans/cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID
NoBank SWIFT/BIC code

Stopka = Footer

Rejestry = Registers

KRS = Court register

REGON = Statistical register

BDO = Waste database register

KSeF FieldUBL SourceReq.DefaultConditionDescription
Stopka.Rejestry[0].REGONAccountingSupplierParty > Party > PartyIdentification[ID > @schemeID='PL:REGON'] > ID
XPathcac:AccountingSupplierParty/cac:Party/cac
cbc:ID/@schemeID='PL:REGON'
/cbc:ID
NoStatistical register number
Stopka.Rejestry[0].KRSAccountingSupplierParty > Party > PartyIdentification[ID > @schemeID='PL:KRS'] > ID
XPathcac:AccountingSupplierParty/cac:Party/cac
cbc:ID/@schemeID='PL:KRS'
/cbc:ID
NoCourt register number
Stopka.Rejestry[0].BDOAccountingSupplierParty > Party > PartyIdentification[ID > @schemeID='PL:BDO'] > ID
XPathcac:AccountingSupplierParty/cac:Party/cac
cbc:ID/@schemeID='PL:BDO'
/cbc:ID
NoWaste database register number

Invoice Lines

FaWiersz = Faktura wiersz = invoice line

NrWierszaFa = Invoice line number

UU_ID = Universal unique ID

P_7 = Item name

P_8A = Unit of measure

P_8B = Quantity

P_9A = Unit net price

P_11 = Line net amount

P_12 = VAT rate / tag

StanPrzed = Original line flag (correction)

KursWaluty = Exchange rate

KSeF FieldUBL SourceReq.DefaultConditionDescription
Fa.FaWierszcac:InvoiceLineNoInvoice lines. Grouped by cbc:ID

Fa.FaWiersz

FaWiersz = Faktura wiersz = invoice line

KSeF FieldUBL SourceReq.DefaultConditionDescription
NrWierszaFacbc:IDNoInvoice line number
UU_IDUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > LineExtension > RestrictedInformation[Key='universalUniqueLineNumber'] > Value
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:LineExtension/puf
puf:Key='universalUniqueLineNumber'
/puf:Value
NoUniversal unique line number
P_7Item > Name
XPathcac:Item/cbc:Name
NoItem name
P_8AInvoicedQuantity > @unitCode
XPathcbc:InvoicedQuantity/@unitCode
NoUnit of measure.
Map:
EAszt
KGMkg
GRMg
TNEt
MTRm
CMTcm
KMTkm
MTKm2
MTQm3
LTRl
MLTml
HURh
DAYdzień
MONmies.
P_8Bcbc:InvoicedQuantityNoQuantity
P_9APrice > PriceAmount
XPathcac:Price/cbc:PriceAmount
NoUnit net price
P_11cbc:LineExtensionAmountNoLine net amount
P_12Item > ClassifiedTaxCategory > Name
XPathcac:Item/cac:ClassifiedTaxCategory/cbc:Name
NoNOT: Any margin scheme appliesVAT rate / tax category tag.
Map:
ZWzw
OOoo
NP-Inp I
NP-IInp II
0-KR0 KR
0-WDT0 WDT
0-EX0 EX
StanPrzedUBLExtensions > UBLExtension > ExtensionContent > PageroExtension > LineExtension > RestrictedInformation[Key='originalLine'] > Value
XPathext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/puf:PageroExtension/puf:LineExtension/puf
puf:Key='originalLine'
/puf:Value
NoOriginal line flag (correction invoices).
Map:
true1
KursWaluty> > TaxExchangeRate > CalculationRate
XPath//cac:TaxExchangeRate/cbc:CalculationRate
NoInvoice currency is not PLNExchange rate (foreign currency invoices)