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:
| Code | Description | Implementation Rule |
|---|---|---|
M | Mandatory (1 time) | Must be provided exactly once. |
Mn | Mandatory (n times) | Must be provided exactly n times. |
M+ | Mandatory (1 or more) | Must be provided at least once; repetitions allowed. |
O | Optional (1 time) | May be omitted or provided at most once. |
On | Optional (n times) | May be omitted or repeated up to n times. |
O* | Optional (0 or more) | May be omitted or repeated infinitely. |
C | Conditional | Must 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
| Topic | Description |
|---|---|
| Statement | A document used to report the status of orders, billing, and payment. This document is a statement of account, not a summary invoice. |
| Statement Extensions Group | A container for all extensions present in the document. |
| Statement Extension Group | A single extension for private or domain-specific information. |
| Statement Extension Content | The definition of the extension content. |
| Statement Extension | A class to describe custom extension elements for the statement. |
| Statement Extension Routing Details | A class to describe routing details for document transmission. |
| Statement Extension Routing Details Sender | The party or entity sending the transmission. Unique sender ID. Generally the sender's VAT ID. |
| Statement Extension Routing Details Receiver | The party or entity receiving the transmission. |
| Statement Customization ID | Identifies a user-defined customization of UBL for a specific use. |
| Statement Profile ID | Identifies the business process context in which the transaction appears. |
| Statement ID | An identifier for this document, assigned by the sender. |
| Statement Issue Date | The date, assigned by the sender, on which this document was issued. |
| Statement Seller Group | The accounting supplier party. |
| Statement Seller Party Group | The supplier party. |
| Statement Seller Party Identification | A class to identify a party. |
| Statement Seller Party Identification ID | An identifier for the party. NIP of the company requesting the Collective Payment ID. |
| Statement Seller Party Identification ID Scheme ID | The identification of the identification scheme. |
| Statement Line Group | A Statement Line. |
| Statement Line ID | An identifier for this statement line. Invoice number of the invoice that is being consolidated. |
| Statement Line Universal Unique ID | A universally unique identifier for this statement line. KSeF number of the invoice that is being consolidated. |
| Statement Line Universal Unique ID Scheme ID | Type of universal unique identifier for this statement line, expressed as a code. |
Formats
| CustomizationID | SchematronFile | DisplayConfigFile | DisplayName | SupportMode |
|---|---|---|---|---|
| urn:vertexinc:vrbl:billing:1#Statement#VRBL-Statement-PL-InvoiceDetailsRequest-1p0 | VRBL-Statement-PL-InvoiceDetailsRequest-1p0 | VRBL-Statement-Shared | KSeF-FA(3) Invoice Details Request | test |
Receivers
| Domain | Key |
|---|---|
| B2B, B2G, B2C | GENERIC_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
| ID | Flag | Description |
|---|---|---|
| VRBL-DET-PL-1 | fatal | [VRBL-DET-PL-1]-The Statement Extension Routing Details must exist within the Statement. |
| VRBL-DET-PL-2 | fatal | [VRBL-DET-PL-2]-The Statement UUID MUST be a valid 35-character Collective Identifier such as 9999999999-IZ202602-FFFFFFFFFFFF-FF. |
Updated 1 day ago