Poland (FA(3)): Payment ID Request (UBL Statement)

Requesting Collective Payment IDs from KSeF.

A Payment ID, also known as a collective identifier, is a number that covers at least two structured invoices issued by the same seller. From January 1, 2027, it will be used when making a payment for multiple invoices.

To generate a Payment ID, a list of KSeF invoice numbers must be submitted. The invoice issuer, recipient, or a third party associated with the invoices can generate it using financial or accounting software connected to the KSeF API or through the KSeF Taxpayer Application.

The VRBL Payment ID Request lets users submit a list of KSeF invoice numbers as a document based on a subset of the UBL Statement and receive the collective identifier in response.

Official specification

KSeF number and collective identifier

Specific fields and requirements

Document conventions

The following terms are used in the element and group description tables:

XPath - An XPath is a query language used to navigate and select specific elements or data from an XML file. In this case, it refers to the VRBL document.

Cardinality - In XML, cardinality defines the minimum and maximum number of times a specific element or attribute can occur within a document from an XML schema perspective.

Usage - Usage is an implementation guideline that layers business rules and context onto an XML schema's strict cardinality.

The following values are allowed:

CodeDescriptionImplementation Rule
MMandatory (1 time)Must be provided exactly once.
MnMandatory (n times)Must be provided exactly n times.
M+Mandatory (1 or more)Must be provided at least once; repetitions allowed.
OOptional (1 time)May be omitted or provided at most once.
OnOptional (n times)May be omitted or repeated up to n times.
O*Optional (0 or more)May be omitted or repeated infinitely.
CConditionalMust have a usage description specifying the business rule.

Usage Description - Description of the business rule in case the usage is conditional.

Mandate Business Term - The original business term code for the element as defined by the mandate. Included only if available.

Final Format XPath - An XPath is a query language used to navigate and select specific elements or data from an XML file. In this case, it refers to the representation of the element or group in the final format XML.

In This Section

TopicDescription
StatementA document used to report the status of orders, billing, and payment. This document is a statement of account, not a summary invoice.
Statement Extensions GroupA container for all extensions present in the document.
Statement Extension GroupA single extension for private or domain-specific information.
Statement Extension ContentThe definition of the extension content.
Statement ExtensionA class to describe custom extension elements for the statement.
Statement Extension Routing DetailsA class to describe routing details for document transmission.
Statement Extension Routing Details SenderThe party or entity sending the transmission. Unique sender ID. Generally the sender's VAT ID.
Statement Extension Routing Details ReceiverThe party or entity receiving the transmission.
Statement Customization IDIdentifies a user-defined customization of UBL for a specific use.
Statement Profile IDIdentifies the business process context in which the transaction appears.
Statement IDAn identifier for this document, assigned by the sender.
Statement Issue DateThe date, assigned by the sender, on which this document was issued.
Statement Document Currency CodeThe default currency for the Statement.
Statement Seller GroupThe accounting supplier party.
Statement Seller Party GroupThe supplier party.
Statement Seller Party IdentificationA class to identify a party.
Statement Seller Party Identification IDAn identifier for the party. NIP of the company requesting the Collective Payment ID.
Statement Seller Party Identification ID Scheme IDThe identification of the identification scheme.
Statement Buyer GroupThe accounting customer party.
Statement Line GroupA Statement Line.
Statement Line Extension GroupA single extension for private or domain-specific information.
Statement Line Extension ContentThe definition of the extension content.
Statement Line Statement Line ExtensionA class to describe custom extension elements for the statement line.
Statement Line Statement Line Extension PaymentA class to describe payment details for this statement line.
Statement Line Statement Line Extension Payment Paid AmountThe amount paid for this statement line. Total amount paid in the invoice that is being consolidated.
Statement Line Statement Line Extension Payment Paid Amount Currency IDThe currency of the amount. Currency of the invoice that is being consolidated.
Statement Line IDAn identifier for this statement line. Invoice number of the invoice that is being consolidated.
Statement Line NoteFree-form text conveying information that is not contained explicitly in other structures. Description of the invoice that is being consolidated.
Statement Line Universal Unique IDA universally unique identifier for this statement line. KSeF number of the invoice that is being consolidated.
Statement Line Universal Unique ID Scheme IDType of universal unique identifier for this statement line, expressed as a code.

Formats

CustomizationIDSchematronFileDisplayConfigFileDisplayNameSupportMode
urn:vertexinc:vrbl:billing:1#Statement#VRBL-Statement-PL-PaymentIDRequest-1p0VRBL-Statement-PL-PaymentIDRequest-1p0VRBL-Statement-SharedKSeF-FA(3) Payment Id Requesttest

Receivers

DomainKey
B2B, B2G, B2CGENERIC_PL_KSeF-FA_3p0

Examples

  • VRBL_PaymentIdRequest.xml

    <Statement xmlns="urn:oasis:names:specification:ubl:schema:xsd:Statement-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
    	<cec:UBLExtensions>
    		<cec:UBLExtension>
    			<cec:ExtensionContent>
    				<vrbl:StatementExtension>
    					<vrbl:RoutingDetails>
    						<!-- Unique sender ID. Generally the sender's VAT ID -->
    						<vrbl:Sender>1111111111</vrbl:Sender>
    						<!-- Unique receiver ID. The defined alias for the receiver platform/network -->
    						<vrbl:Receiver>KSEF_POLAND</vrbl:Receiver>
    					</vrbl:RoutingDetails>
    				</vrbl:StatementExtension>
    			</cec:ExtensionContent>
    		</cec:UBLExtension>
    	</cec:UBLExtensions>
    	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1#Statement#VRBL-Statement-PL-PaymentIDRequest-1p0</cbc:CustomizationID>
    	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
    	<cbc:ID>CPIR-123456</cbc:ID>
    	<!-- Transmission Date -->
    	<cbc:IssueDate>2026-09-29</cbc:IssueDate>
    	<cbc:DocumentCurrencyCode>PLN</cbc:DocumentCurrencyCode>
    	<!-- Seller (Original Invoices Issuer) -->
    	<cac:AccountingSupplierParty>
    		<cac:Party>
    			<cac:PartyIdentification>
    				<cbc:ID schemeID="VRBL:PL:TAX">1111111111</cbc:ID>
    			</cac:PartyIdentification>
    		</cac:Party>
    	</cac:AccountingSupplierParty>
    	<cac:AccountingCustomerParty/>
    	<!-- Each Statement Line provides data regarding one invoice and the corresponding payment. -->
    	<cac:StatementLine>
    		<!-- Statement Line Extension -->
    		<cec:UBLExtensions>
    			<cec:UBLExtension>
    				<cec:ExtensionContent>
    					<vrbl:StatementLineExtension>
    						<vrbl:Payment>
    							<!-- Total Amount Paid and Currency-->
    							<vrbl:PaidAmount currencyID="PLN">100.00</vrbl:PaidAmount>
    						</vrbl:Payment>
    					</vrbl:StatementLineExtension>
    				</cec:ExtensionContent>
    			</cec:UBLExtension>
    		</cec:UBLExtensions>
    		<!-- Syntactically required: invoice number. If not available, "NA" -->
    		<cbc:ID>28730</cbc:ID>
    		<!-- Description -->
    		<cbc:Note>Opis faktury 1</cbc:Note>
    		<!-- KSeF Number -->
    		<cbc:UUID>1111111111-20260612-6310EC800000-DA</cbc:UUID>
    	</cac:StatementLine>
    	<cac:StatementLine>
    		<!-- Statement Line Extension -->
    		<cec:UBLExtensions>
    			<cec:UBLExtension>
    				<cec:ExtensionContent>
    					<vrbl:StatementLineExtension>
    						<vrbl:Payment>
    							<!-- Total Amount Paid and Currency-->
    							<vrbl:PaidAmount currencyID="PLN">45.00</vrbl:PaidAmount>
    						</vrbl:Payment>
    					</vrbl:StatementLineExtension>
    				</cec:ExtensionContent>
    			</cec:UBLExtension>
    		</cec:UBLExtensions>
    		<!-- Syntactically required: invoice number. If not available, "NA" -->
    		<cbc:ID>28731</cbc:ID>
    		<!-- Description -->
    		<cbc:Note>Opis faktury 2</cbc:Note>
    		<!-- KSeF Number -->
    		<cbc:UUID>1111111111-20260612-62EAFD400000-B3</cbc:UUID>
    	</cac:StatementLine>
    </Statement>

Rules

Description
[VRBL-PAY-PL-1]-The Statement Line Statement Line Extension Payment Paid Amount must exist within the Statement Line Group.
[VRBL-PAY-PL-2]-The Statement Line Statement Line Extension Payment Paid Amount Currency Code must exist within the Statement Line Group.
[VRBL-PAY-PL-3]-The value of the Statement Line Statement Line Extension Payment Paid Amount Currency Code must be contained in ISO 4217 Alpha-3 currency [VRBL-CL-CurrencyCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/
[VRBL-PAY-PL-4]-The Statement UUID MUST be provided and comply with the required format pattern ^([1-9](\d[1-9]|[1-9]\d) \\d{7}|[1-9]\\d{7}|M\\d{9}|[A-Z]{3}\\d{7})-(20[2-9][0-9]|2[1-9][0-9]{2}|[3-9][0-9]{3})(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])-([0-9A-F]{6})-?([0-9A-F]{6})-([0-9A-F]{2})$
[VRBL-PAY-PL-6]-The Statement Extension Routing Details must exist within the Statement.
[VRBL-PAY-PL-7]-A Statement MUST contain a minimum of two Statement Line Group.

Did this page help you?