FA(3) field reference

P_9A in FA(3): the unit net price

How to fill P_9A (the unit net price) on each FaWiersz of a KSeF FA(3) invoice: decimal format, how it relates to P_9B, and a valid XML example.

Updated

Overview

P_9A is the unit net price of one line item (in Polish, "cena jednostkowa netto"). It lives inside each FaWiersz block and is the price of a single unit of the item, before any VAT is added.

In the XSD, P_9A is declared with minOccurs=0, so the schema itself does not force it on every line. The schema also has P_9B, the unit gross price, as a separate optional element. Which of the two a given invoice should carry is a question for your invoicing practice and your accountant, not for the schema. Notaly always writes P_9A.

The XSD type of P_9A is TKwotowy2: a decimal number with up to 8 decimal places and a dot as the decimal separator. A value such as 150.50 is valid; 150,50 is not, because the comma is not a decimal separator inside XML. The wider precision exists for unit prices that are fractions of a grosz, for example in utilities or bulk goods.

The unit net price multiplied by the quantity (P_8B) gives the line's net value (P_11). So P_9A is the starting point of every amount on the line: get it wrong, and the net value, the VAT and the total all shift with it.

Because P_9A is net, it must not already include VAT. A frequent integration bug is to copy the gross (VAT-inclusive) price from a catalogue into P_9A. If your SaaS plan sells for a VAT-inclusive price, the unit net price is a different, lower number; compute it from the net amount before you send it.

In Notaly you send the unit net price as the unitNetPrice property of a line item, and Notaly writes it to P_9A with two decimals. The API rejects a payload with a 422 validation error before it reaches KSeF if unitNetPrice is not a finite number or its absolute value exceeds 1,000,000,000. Notaly computes P_11 per line and the VAT per rate from the summed net values.

<P_9A>1000.00</P_9A>

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.

Sources

Source: crd.gov.pl

Frequently asked questions

Is P_9A net or gross?

P_9A is the unit net price, before VAT. The schema has a separate field, P_9B, for the unit gross price.

How many decimals can P_9A have?

Its XSD type, TKwotowy2, allows up to 8 decimal places, with a dot as the separator. Notaly writes it with two.

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.