FA(3) field reference

P_15 in FA(3): total amount due on the invoice

What P_15 holds in a KSeF FA(3) invoice, where it sits in the XML and how Notaly computes it from the P_13_x and P_14_x sums.

Updated

Overview

P_15 is the total amount due shown on the invoice (kwota należności ogółem). It sits directly in the Fa section, at /Faktura/Fa/P_15, after the per-rate summary fields P_13_x and P_14_x. Notaly computes it as the sum of every P_13_x and P_14_x pair on the invoice.

What the field holds

P_15 is a gross figure: net sales plus tax, across all rates on the document. The type is TKwotowy, a decimal with up to 18 digits, at most 2 decimal places and an optional minus sign. Its currency is the invoice currency in KodWaluty, so on an invoice with KodWaluty EUR the value of P_15 is in euro.

P_15 is not necessarily the final amount the buyer will transfer. The amount actually paid can differ from the total amount due shown on the invoice, for example when advance payments or set-offs are involved. Payment details belong in the separate Platnosc section, not in P_15.

How Notaly computes it

You never send P_15. Notaly computes the line net values, adds them per vatRate into P_13_1, P_13_2, P_13_3 or P_13_6_1, calculates P_14_1, P_14_2 and P_14_3 once per rate, and then adds everything together: P_15 = Σ (P_13_x + P_14_x). For the 0 KR group there is no tax pair, so only P_13_6_1 is added. The result is written with exactly 2 decimals.

Worked example: P_13_1 = 1000.00, P_14_1 = 230.00, P_13_2 = 301.00 and P_14_2 = 24.08 give P_15 = 1555.08.

Why consistency matters

P_15 is the figure most people look at first, on the PDF, in the buyer's accounting system and in reconciliation. Because Notaly derives P_15 from the same summary amounts it writes in P_13_x and P_14_x, the total always agrees with those sums. If you build the XML yourself, check that P_15 equals the sum of the summary fields before sending it.

A snippet of the field as it appears in the FA(3) XML:

<P_15>1555.08</P_15>

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_15 the amount the buyer will actually pay?

Not necessarily. P_15 is the total amount due shown on the invoice; the amount actually paid can differ, for example because of advance payments or set-offs.

How does Notaly compute P_15?

It adds P_13_x and P_14_x for every rate on the invoice and writes the result with 2 decimals.

In which currency is P_15?

In the invoice currency set in KodWaluty.

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.