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:
| 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 Document Currency Code | The default currency for the Statement. |
| 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 Buyer Group | The accounting customer party. |
| Statement Line Group | A Statement Line. |
| Statement Line Extension Group | A single extension for private or domain-specific information. |
| Statement Line Extension Content | The definition of the extension content. |
| Statement Line Statement Line Extension | A class to describe custom extension elements for the statement line. |
| Statement Line Statement Line Extension Payment | A class to describe payment details for this statement line. |
| Statement Line Statement Line Extension Payment Paid Amount | The 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 ID | The currency of the amount. Currency of the invoice that is being consolidated. |
| Statement Line ID | An identifier for this statement line. Invoice number of the invoice that is being consolidated. |
| Statement Line Note | Free-form text conveying information that is not contained explicitly in other structures. Description 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-PaymentIDRequest-1p0 | VRBL-Statement-PL-PaymentIDRequest-1p0 | VRBL-Statement-Shared | KSeF-FA(3) Payment Id Request | test |
Receivers
| Domain | Key |
|---|---|
| B2B, B2G, B2C | GENERIC_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. |
Updated 1 day ago