FA(3) field reference

P_7 in FA(3): the line item name

How to fill P_7 (the name of the goods or service) in each FaWiersz of a KSeF FA(3) invoice: when it is required, the 1–512 character format and what Notaly does.

Updated

Overview

P_7 is the name (type) of the goods or service on one line of the invoice, in Polish "nazwa (rodzaj) towaru lub usługi". It sits inside each FaWiersz block and tells the buyer what a line bills for. On a regular VAT invoice every line should carry it.

Required or optional

In the schema (schemat.xsd, line 3099) P_7 is declared with minOccurs="0", so a validator will not complain if it is missing. The official annotation of the element limits that: the field is optional only in the case described in art. 106j ust. 3 pkt 2 of the VAT Act, which is a correction invoice. For a normal invoice the VAT Act lists the name (type) of the goods or service among the required invoice data (art. 106e ust. 1 pkt 7). So the XSD passing is not enough: on a regular invoice, include P_7 on every line.

Format

P_7 has the type TZnakowy512 (schemat.xsd, line 1206). It is an xsd:token with a minimum length of 1 and a maximum length of 512 characters. Because it is a token, leading, trailing and repeated spaces are collapsed, so a value made only of spaces counts as empty and fails validation. There is no pattern and no list of allowed values.

The schema does not judge the content. A description that identifies the goods or service, such as "SaaS subscription - October" instead of "Services", makes the line easier for the buyer to book and to check; whether a description is sufficient for your case is a question for your accountant.

What Notaly does

You do not send P_7 by name. Each line item in POST /invoices has a name property, and Notaly writes it to P_7 on every line it generates. The API accepts up to 500 characters in name, below the 512 allowed by the schema. If name is missing, the request fails with a 422 validation error. If it is empty or only spaces, the generated XML fails the XSD check that Notaly runs before sending, and you get 422 xsd_invalid. In both cases nothing is sent to KSeF and the sandbox quota is not used.

<P_7>SaaS subscription - October</P_7>

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_7 required on every line?

On a regular VAT invoice, yes. The XSD declares P_7 with minOccurs=0, but its official annotation says the field is optional only in the case of art. 106j ust. 3 pkt 2 of the VAT Act, which concerns correction invoices.

How long can P_7 be?

Between 1 and 512 characters. P_7 uses the TZnakowy512 type of the FA(3) schema. Notaly's API accepts up to 500 characters in items[].name.

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.