BR-CO-26: In order for the buyer to automatically identify a supplier, the Seller identifier…
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-CO-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.
exists(cac:Party/cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:CompanyID) or exists(cac:Party/cac:PartyIdentification/cbc:ID) or exists(cac:Party/cac:PartyLegalEntity/cbc:CompanyID)BR-CO-26 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BT-29, BT-30, BT-31.
What this rule requires
This rule requires that the seller party (cac:AccountingSupplierParty / ram:SellerTradeParty) carries at least one identifier the buyer can use to identify the seller automatically: a seller identifier (BT-29), a seller legal registration identifier (BT-30), or a seller VAT identifier (BT-31). In UBL this is satisfied if any of the following is present: a cac:Party/cac:PartyTaxScheme/cbc:CompanyID under a cac:TaxScheme/cbc:ID whose upper-case value is VAT, a cac:Party/cac:PartyIdentification/cbc:ID with @schemeID not equal to SEPA, or a cac:Party/cac:PartyLegalEntity/cbc:CompanyID. In CII it is satisfied if any of ram:ID, ram:GlobalID, ram:SpecifiedLegalOrganization/ram:ID, or ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA'] is present. Because the severity is fatal, an invoice that has none of these fails validation.
How to fix
Ensure at least one of these identifiers is present in the seller party. In UBL: if the seller has a VAT number, add cac:Party/cac:PartyTaxScheme/cbc:CompanyID and set cac:TaxScheme/cbc:ID to VAT; if the seller has another identifier, add cac:Party/cac:PartyIdentification/cbc:ID and make sure its @schemeID is absent or not exactly SEPA; if the seller has a legal registration identifier, add cac:Party/cac:PartyLegalEntity/cbc:CompanyID. In CII: add one of ram:ID, ram:GlobalID, ram:SpecifiedLegalOrganization/ram:ID, or ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA']. Use the identifier that corresponds to the seller's actual identification.
Guidance on this rule. The original text above is authoritative.
Where to go next
BR-CO-26 changed in 1 published Peppol BIS Billing UBL release comparison:
- BR-CO-26 in 3.0.20 → 3.0.21: Test expression rewritten
Validate an invoice against these rules · All release changes