Poland (FA(3)): Invoice Details Request (UBL Statement)

Requesting invoice details for a Collective Payment ID 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. In VRBL, this is done using the Payment ID Request, a subset of the UBL Statement.

KSeF also supports decoding a collective identifier to retrieve the KSeF invoice numbers it covers. It is also possible to identify collective identifiers associated with a given KSeF invoice number.

In VRBL, the Invoice Details Request lets users submit a Payment ID as a document based on a subset of the UBL Statement and receive the associated KSeF invoice numbers 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 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 Line GroupA Statement Line.
Statement Line IDAn identifier for this statement line. Invoice number 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-InvoiceDetailsRequest-1p0VRBL-Statement-PL-InvoiceDetailsRequest-1p0VRBL-Statement-SharedKSeF-FA(3) Invoice Details Requesttest

Receivers

DomainKey
B2B, B2G, B2CGENERIC_PL_KSeF-FA_3p0

Examples

  • VRBL_InvoiceDetailsRequest.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>GENERIC_PL_KSeF-FA_3p0</vrbl:Receiver>
    					</vrbl:RoutingDetails>
    				</vrbl:StatementExtension>
    			</cec:ExtensionContent>
    		</cec:UBLExtension>
    	</cec:UBLExtensions>
    	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1#Statement#VRBL-Statement-PL-InvoiceDetailsRequest-1p0</cbc:CustomizationID>
    	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
    	<cbc:ID>IDR-123456</cbc:ID>
    	<!-- Transmission Date -->
    	<cbc:IssueDate>2026-09-29</cbc:IssueDate>
    	<cbc:DocumentCurrencyCode>PLN</cbc:DocumentCurrencyCode>
    	<cac:AccountingSupplierParty>
    		<cac:Party>
    			<cac:PartyIdentification>
    				<!-- NIP of the company requesting the invoices details -->
    				<cbc:ID schemeID="VRBL:PL:TAX">1111111111</cbc:ID>
    			</cac:PartyIdentification>
    		</cac:Party>
    	</cac:AccountingSupplierParty>
    	<cac:AccountingCustomerParty/>
    	<cac:StatementLine>
    		<!-- Syntactically required -->
    		<cbc:ID/>
    		<!-- Collective Payment ID -->
    		<cbc:UUID schemeID="VRBL:PL:CollectivePaymentId">9999999999-IZ202701-FFFFFFFFFFFF-FF</cbc:UUID>
    	</cac:StatementLine>
    </Statement>

Rules

IDFlagDescription
VRBL-DET-PL-1fatal[VRBL-DET-PL-1]-The Statement Extension Routing Details must exist within the Statement.
VRBL-DET-PL-2fatal[VRBL-DET-PL-2]-The Statement UUID MUST be a valid 35-character Collective Identifier such as 9999999999-IZ202602-FFFFFFFFFFFF-FF.

Did this page help you?