FA(3) field reference

P_8A in FA(3): the unit of measure

How to fill P_8A (the measure of goods or scope of services) on each FaWiersz of a KSeF FA(3) invoice: when the VAT Act requires it, the 1–256 character format and what Notaly does.

Updated

Overview

P_8A is the measure of the goods delivered or the scope of the services performed on one invoice line, in Polish "miara". It sits inside each FaWiersz block and says what one unit of the quantity in P_8B means: pieces, hours, months, kilograms. Send it on every line unless your accountant confirms the exception described below applies to you.

Required or optional

In the schema (schemat.xsd, line 3129) P_8A has minOccurs="0", so an invoice without it still passes XSD validation. The official annotation of the element narrows that: the field is optional only in the case set out in art. 106e ust. 5 pkt 3 of the VAT Act. Outside that case, the VAT Act lists the measure and quantity of goods, or the scope of services, among the required invoice data (art. 106e ust. 1 pkt 8). A valid XSD therefore does not prove that a line without P_8A is complete. Whether the exception covers your invoices is a question for your accountant.

Format

P_8A uses the TZnakowy type: an xsd:token of 1 to 256 characters, with no pattern and no list of allowed units. "pcs.", "hrs.", "month" and "kg" are all valid. Keep the label consistent within an invoice so the buyer can reconcile the lines.

P_8A does not enter any calculation. The line value comes from P_8B and P_9A, and the VAT from the rate in P_12.

What Notaly does

You send the unit as the unit property of a line item, and Notaly writes it to P_8A. The API requires unit on every line: a missing or empty unit returns 422 unit_required with the field (items[i].unit), before anything is stored or sent to KSeF and without using sandbox quota. This means Notaly does not use the art. 106e ust. 5 pkt 3 exception: every line it generates has P_8A. A unit longer than 256 characters is also rejected with 422 (by the XSD check Notaly runs before sending, or by input validation for very long values); nothing is sent to KSeF and no sandbox quota is used.

<P_8A>pcs.</P_8A>

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_8A required?

The XSD declares it with minOccurs=0, but its official annotation says the field is optional only in the case of art. 106e ust. 5 pkt 3 of the VAT Act. Outside that case, the measure is part of the required invoice data (art. 106e ust. 1 pkt 8), so send it on every line. The Notaly API requires it on every line.

Does P_8A affect the VAT calculation?

No. P_8A is descriptive; the line value is computed from P_8B (quantity) and P_9A (unit net price).

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.