Billit Data model for KSeF

Post to KSeF via Billit API to Create Invoice

Basic Header Information

Header Information

DescriptionBillit API FieldKSeF FieldMax. Length
Invoice numberOrderNumberFa/P_250
Purchase OrderReferenceWarunkiTransakcji / Zamowienia / NrZamowieni50
CurrencyCurrencyFa / KodWaluty
Due dateOrderDatePlatnosc / TerminPlatnosci / Termin
Free description (footer text)CommentsStopka / Informacje / StopkaFaktury2048
Foreign Currency Conversion (no PL)FXRateToForeignsee separate information page
Tax codeVentilationCodesee separate information page

Customer

DescriptionBillit API FieldKSeF Field
Name CompanyNamePodmiot2 / DaneIdentyfikacyjne / Nazwa
VAT Number (When customer has VAT number)VATNumberPodmiot2 / DaneIdentyfikacyjne / NIP
Invoice Address : StreetStreetPodmiot2 / Adres / AdresL1
Invoice Address : Street numberStreetNumberPodmiot2 / Adres / AdresL1
Invoice Address : ZIPZipcodePodmiot2 / Adres / AdresL2
Invoice Address : CityCityPodmiot2 / Adres / AdresL2
Invoice Address : CountryCountryCodePodmiot2 / Adres / KodKraju
EmailEmailPodmiot2 /DaneKontaktowe / Email
PhonePhonePodmiot2 / DaneKontaktowe / Telefon

Example Json:

"Customer": {
        "Name": "CUSTOMER POLSKA",
        "Addresses": [
            {
                "AddressType": "InvoiceAddress",
                "Name": "CUSTOMER POLSKA",
                "Street": "INŻYNIERSKA",
                "StreetNumber": "99",
                "Zipcode": "96-599",
                "City": "SOCHACZEW",
                "CountryCode": "PL"
            },
        ],
  	    "VATNumber": "PL9570864999",       
        "Email": "[email protected]",
        "Phone" : "+48468631999",  // Customer Phone
        "PartyType": "Customer",
        "VATLiable": true,
        "Language": "EN",
        "VATDeductable": true
},

Supplier

Method:

  • By Default the data stored in My Company are used to include supplier data in the KSeF message
  • When the data-elements below are included in the API Json file, then they will have priority and be included in the KSeF XML.

Field specifications:

DescriptionBillit API FieldKSeF Field
Contact Phone SupplierCustom Field : Faktura.Podmiot1.DaneKontaktowe.TelefonDaneKontaktowe / Telefon
Contact Email SupplierCustom Field : Faktura.Podmiot1.DaneKontaktowe.EmailDaneKontaktowe / Email

Examples below with only this specific additional information:

    "CustomFields":  
			{
               "Faktura.Podmiot1.DaneKontaktowe.Telefon" : "+48618189999",
               "Faktura.Podmiot1.DaneKontaktowe.Email" : "[email protected]"
      },           

Special Scenario's:

DescriptionSolution
Customer has no VAT number but has a NIP numberInclude NIP number in Billit identifiers segment

Other remarks:

  • Totals are generated by Billit

Extra Optional Party / Location Based on Podmiot3

Pofdmiot3 can be used for several purposes, possible use:

  • Tax representative (main) : Foreign company represented in Poland by a tax proxy. Invoice issuer on behalf of seller.
  • Payment-related third party.
  • Factoring company (in some setups).
  • Delivery / contract-related party.

Limitations:

  • Used on Header Level.

Data model For Podmiot 3 (all 6 fields must be present !)

Billit FieldDescriptionMandatory ?
"Faktura.Podmiot3.DaneIdentyfikacyjne.NIPTax Identification Number of the third party (without PL)Yes
"Faktura.Podmiot3.DaneIdentyfikacyjne.NazwaName of the companyYes
Faktura.Podmiot3.Adres.KodKrajuCountry CodeYes
Faktura.Podmiot3.Adres.AdresL1Adress / street first lineYes
Faktura.Podmiot3.Adres.AdresL2Adress / street second lineYes
"Faktura.Podmiot3.RolaRole according to a tableYes

Example:

"CustomFields": {
        "Faktura.Podmiot3.DaneIdentyfikacyjne.NIP" : "5250011266", // CompanyIdentifier without PL
        "Faktura.Podmiot3.DaneIdentyfikacyjne.Nazwa" : "CompanyName", // CompanyName
        "Faktura.Podmiot3.Adres.KodKraju" : "PL", // Country
        "Faktura.Podmiot3.Adres.AdresL1" : "Teststreet 12", // Street StreetNumber
        "Faktura.Podmiot3.Adres.AdresL2" : "62-020 Swarzędz", // Zipcode City
        "Faktura.Podmiot3.Rola" : "2" // Role 
			},

Roles:

Role numberRole Description
1Factor (Factoring),
2Recepient (internal units, branches, divisions),
3Original Entity (when the invoice includes the details of an entity that was taken over or transformed and originally supplied the goods or services),
4Additional purchaser when the invoice includes details of further purchasers (other than the one indicated in section of Podmiot2),
5Invoice issuer when the invoice includes details of the entity issuing the invoice on behalf of the taxpayer,
6Payer when the invoice includes details of the entity making the payment on behalf of the purchaser,
7Local government unit (LGU) issuer,
8Local government unit (LGU) recipient,
9GV member issuer,
10GV member recipient,
11Employee.

Detaillines - Basic Information

Description LineBillit API FieldKSeF FieldMax Length
QuantityQuantityFaWiersz / P_8B
Unit Price Excluding VATUnitPriceExclFaWiersz / P_9A
DescriptionDescriptionFaWiersz / P_7256
VAT PercentageVATPercentageFaWiersz / P_12

Remarks:

  • Linetotals are generated by Billit
  • "DescriptionExtended" will not be mapped

Detaillines - Advanced References

On Line level, 4 additional descriptions can be added:

DescriptionBillit API Line Custom FieldKSeF Line FieldMax Length
GTIN (Standardised Article Number, EAN)FaWiersz.GTINGTINE
Code For Goods or Services : Internal by taxpayer or additional description of choiceFaWiersz.IndeksIndeks50
PKWIU (number in the Polish Classification of Goods and Services)FaWiersz.PKWiUPKWiU
Combined Nomenclature symbolFaWiersz.CNCN

Example:

"OrderLines": [
		{
			"Quantity": 6.5,
			"UnitPriceExcl": 6.24,
			"Description": "Product Description 1",
			"CustomFields": 
            {
                "FaWiersz.GTIN": "4025515080756",
                "FaWiersz.Indeks": "6ES7135-6HD00-0BA1",
                "FaWiersz.PKWiU": "27.12.40.0",
                "FaWiersz.CN": "85389091"
            },
            "VATPercentage": 23.0
		},
		{
			"Quantity": 78.0,
			"UnitPriceExcl": 10.75,
			"Description": "Product Description 2",
			"CustomFields": {},
      "VATPercentage": 23.0
		},
			],