FA(3) field reference

P_13_x in FA(3): net sales totals per VAT rate

How the P_13_x summary fields of a KSeF FA(3) invoice group net sales by VAT rate, and how Notaly computes P_13_1, P_13_2, P_13_3 and P_13_6_1.

Updated

Overview

The P_13_x fields hold the total net value of sales for each VAT rate on the invoice. They sit directly in the Fa section (/Faktura/Fa/P_13_1, /Faktura/Fa/P_13_2 and so on), one field per rate category, and appear only when the invoice has lines in that category. Notaly fills P_13_1, P_13_2, P_13_3 and P_13_6_1.

What the fields hold

Each P_13_x is the sum of net values, meaning amounts before tax, of the lines that share a rate. The type is TKwotowy: a decimal with up to 18 digits, at most 2 decimal places and an optional minus sign. The schema describes P_13_1 as net sales at the basic rate, P_13_2 at the first reduced rate and P_13_3 at the second reduced rate. P_13_6_1 holds net sales at 0% for domestic supplies, which matches lines whose P_12 is "0 KR".

The schema defines further summary fields from P_13_4 onward, including P_13_6_2 and P_13_6_3, which correspond to the other zero-rate values. Notaly does not emit any of them.

How Notaly computes them

You never send P_13_x. For each line, Notaly computes the line net value P_11 as quantity × unitNetPrice, rounded to 2 decimals. It then groups the lines by vatRate and adds up the rounded P_11 values: 23 goes to P_13_1, 8 to P_13_2, 5 to P_13_3 and 0 to P_13_6_1. A rate with no lines produces no field. Each P_13_1, P_13_2 and P_13_3 is followed by its tax pair (P_14_1, P_14_2, P_14_3). P_13_6_1 has no tax pair.

Worked example: one line of 1 × 1000.00 at vatRate 23 and one line of 2 × 150.50 at vatRate 8 give P_13_1 = 1000.00 and P_13_2 = 301.00.

Keeping the totals consistent

The P_13_x values must agree with the lines, with the tax fields P_14_x and with the invoice total P_15. Notaly derives all of them from the same rounded line values, so they stay consistent. If you build the XML by hand, you have to check this yourself.

A snippet of the fields as they appear in the FA(3) XML:

<P_13_1>1000.00</P_13_1>
<P_13_2>301.00</P_13_2>

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

Do I send P_13_x to Notaly?

No. Notaly computes the P_13_x fields from your line items and their vatRate.

Which P_13 fields does Notaly emit?

P_13_1 (vatRate 23), P_13_2 (8), P_13_3 (5) and P_13_6_1 (0, written as 0 KR in P_12), and only for rates that appear on the invoice.

How many decimals can P_13_x have?

At most two. The type is TKwotowy, a decimal with up to 18 digits and 2 fraction digits.

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.