FA(3) field reference

P_8B in FA(3): the quantity

How to fill P_8B (the quantity) on each FaWiersz of a KSeF FA(3) invoice: when the VAT Act requires it, the decimal format with up to 6 decimal places and what Notaly does.

Updated

Overview

P_8B is the quantity (number) of goods delivered, or the scope of services performed, on one invoice line, in Polish "ilość". It sits inside each FaWiersz block and, together with the unit net price in P_9A, gives the line's net value.

Required or optional

In the schema (schemat.xsd, line 3134) P_8B has minOccurs="0", so an invoice without it still passes XSD validation. The official annotation limits that to one case: the field is optional only in the situation set out in art. 106e ust. 5 pkt 3 of the VAT Act. Outside that case, the VAT Act lists the measure and quantity among the required invoice data (art. 106e ust. 1 pkt 8). For a flat fee, a common approach is quantity 1 with the fee as the unit net price; whether the exception applies to you is a question for your accountant.

Format

P_8B has the type TIlosci (schemat.xsd, line 1245), a decimal number with at most 6 decimal places. Fractional quantities such as 0.5 or 2.25 are valid. The separator is a dot, because the value sits in an XML document; "2,5" fails validation.

The quantity directly changes the amounts: P_8B multiplied by P_9A gives the line net value in P_11. A wrong quantity is a wrong invoice, not a cosmetic error.

What Notaly does

You send the quantity as the quantity property of a line item, and Notaly writes it to P_8B on every line. Notaly computes P_11 as quantity times unit net price, rounded to 2 decimal places, and writes P_8B, P_9A and P_11 to the XML. A missing quantity, or one that is zero or negative, returns a 422 validation error. A quantity with more than 6 decimal places fails the XSD check that Notaly runs before sending and returns 422 xsd_invalid. In both cases nothing is sent to KSeF and no sandbox quota is used.

<P_8B>1</P_8B>

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

Is P_8B required on every line?

The XSD declares it with minOccurs=0, but its official annotation says it is optional only in the case of art. 106e ust. 5 pkt 3 of the VAT Act. Outside that case the quantity is required invoice data (art. 106e ust. 1 pkt 8). Notaly always writes P_8B.

Can P_8B be a decimal?

Yes. P_8B uses the TIlosci type, which allows up to 6 decimal places. Use a dot as the decimal separator.

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.