FA(3) field reference

P_12 in FA(3): the VAT rate on each invoice line

What P_12 holds in a KSeF FA(3) invoice line, the full list of values allowed by the schema, and which ones the Notaly API emits today.

Updated

Overview

P_12 is the VAT rate of a single invoice line in the FA(3) structure. It sits inside each FaWiersz element, at /Faktura/Fa/FaWiersz/P_12, and its value must be one of the codes in the schema's TStawkaPodatku dictionary. The Notaly API emits only four of those codes: 23, 8, 5 and 0 KR.

Values defined by the schema

The TStawkaPodatku dictionary in the official FA(3) XSD contains fourteen values: 23, 22, 8, 7, 5, 4, 3, 0 KR, 0 WDT, 0 EX, zw, oo, np I and np II. P_12 is a closed list, so any other string fails XSD validation. There is no bare "0": a zero rate must be written as one of the three labelled zero values.

The schema documents only some of these codes. "0 KR" is the 0% rate for domestic sales of goods and services, excluding intra-Community supply and export. "0 WDT" is the 0% rate for intra-Community supply of goods, and "0 EX" is the 0% rate for export of goods. "zw" means exempt from tax, "oo" means reverse charge (odwrotne obciążenie), and "np I" and "np II" are two categories of supply not subject to tax in Poland. The numeric codes have no description of their own in the dictionary. Which rate applies to a given sale is decided by the VAT Act, not by the schema.

Values Notaly does not emit

Notaly emits only 23, 8, 5 and 0 KR. It does not emit 22, 7, 4, 3, 0 WDT, 0 EX, zw, oo, np I or np II. "0 WDT" and "0 EX" are separate values of P_12 that the API does not emit: sending vatRate 0 always produces "0 KR", never an intra-Community or export zero rate.

How Notaly fills P_12

You send a numeric vatRate on each item in the JSON payload: 23, 8, 5 or 0. Notaly copies 23, 8 and 5 to P_12 unchanged and writes 0 as "0 KR". The same value decides which summary fields the line feeds: 23 goes to P_13_1 and P_14_1, 8 to P_13_2 and P_14_2, 5 to P_13_3 and P_14_3, and 0 KR to P_13_6_1, which has no tax amount. A payload with any other vatRate is rejected with a validation error before anything is sent to KSeF.

A snippet of the field as it appears in the FA(3) XML:

<P_12>23</P_12>

This snippet shows only the field(s) on this page. Mandatory FA(3) sections (Nagłówek, Podmiot1, Podmiot2, the remaining Fa fields, Adnotacje, RodzajFaktury and at least one FaWiersz) are omitted for brevity. It is not a complete or valid invoice on its own.

Notaly is not a tax, accounting or legal advisor. This article is general information, not tax advice, and may be outdated. You are responsible for your own VAT compliance; confirm with a qualified accountant where required.

Sources

Source: crd.gov.pl

Frequently asked questions

Where is P_12 in the FA(3) XML?

Inside each invoice line, at /Faktura/Fa/FaWiersz/P_12. Every FaWiersz carries its own rate.

Can I write a plain 0 in P_12?

No. The schema has no bare 0 value. A domestic 0% line uses "0 KR"; "0 WDT" and "0 EX" are separate values.

Which P_12 values does Notaly emit?

Only 23, 8, 5 and 0 KR. The API accepts vatRate 23, 8, 5 or 0 and writes vatRate 0 as "0 KR".

Issue your first KSeF test invoice today

Create a sandbox account: API key in seconds, 3 free test invoices on KSeF TEST, no credit card.