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

Supplier

Method:

  • By Default the data stored in My Company are used to include supplier data in the KSeF message
  • When the dataelements 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
IBAN Number (max. 1)IBANPlatnosc/RachunekBankowy / NrRB
BIC (max. 1)BICPlatnosc/RachunekBankowy / Swift
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]"
      },           
 "Supplier": { 
              "Name": "SUPPLIER NAME",
              "VATNumber": "PL9540099999",
              "PartyType": "Supplier",
              "IBAN": "PL84114010780000449167009999",
              "BIC": "BICNUMBER"
            },

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:

Billit FieldDescription
"Faktura.Podmiot3.DaneIdentyfikacyjne.NIPTax Identification Number of the third party
"Faktura.Podmiot3.DaneIdentyfikacyjne.NazwaName of the company
Faktura.Podmiot3.Adres.KodKrajuCountry Code
Faktura.Podmiot3.Adres.AdresL1Adress / street first line
Faktura.Podmiot3.Adres.AdresL2Adress / street second line
"Faktura.Podmiot3.RolaRole according to a table

Example:

"CustomFields": {
        "Faktura.Podmiot3.DaneIdentyfikacyjne.NIP" : "5250011266", // CompanyIdentifier
        "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 number

Role Description

1

Factor (Factoring),

2

Recepient (internal units, branches, divisions),

3

Original Entity (when the invoice includes the details of an entity that was taken over or transformed and originally supplied the goods or services),

4

Additional purchaser when the invoice includes details of further purchasers (other than the one indicated in section of Podmiot2),

5

Invoice issuer when the invoice includes details of the entity issuing the invoice on behalf of the taxpayer,

6

Payer when the invoice includes details of the entity making the payment on behalf of the purchaser,

7

Local government unit (LGU) issuer,

8

Local government unit (LGU) recipient,

9

GV member issuer,

10

GV member recipient,

11

Employee.

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:

Description

Billit API Line Custom Field

KSeF Line Field

Max Length

GTIN (Standardised Article Number, EAN)

FaWiersz.GTIN

GTINE

Code For Goods or Services : Internal by taxpayer or additional description of choice

FaWiersz.Indeks

Indeks

50

PKWIU (number in the Polish Classification of Goods and Services)

FaWiersz.PKWiU

PKWiU

Combined Nomenclature symbol

FaWiersz.CN

CN

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
		},
			],