BE-PEPPOL-R001-KBO: Belgian B2B Peppol invoices MUST provide a 10-digit CBE/KBO Enterprise Number in cbc:EndpointID with @schemeID="0208"
This rule enforces the Belgian B2B Peppol requirement that the customer's enterprise number (CBE/KBO) be provided as a 10-digit numeric value in the EndpointID element with schemeID '0208'. The context XPath selects the EndpointID element under AccountingCustomerParty/Party that has schemeID='0208'. The test then checks that such an element exists and that its text content matches the regular expression '^[0-9]{10}$'. If the EndpointID element is missing, or if it exists but its value is not exactly 10 digits, the assertion fails. This corresponds to BT-49 (Customer electronic address) and its scheme identifier (BT-49-1), specifically for the Belgian CBE/KBO scheme. The rule is fatal because without a valid KBO number, the invoice cannot be routed or processed in the Belgian Peppol network.
1. Ensure that the AccountingCustomerParty/Party element contains a cbc:EndpointID element with the attribute schemeID set to "0208". 2. The text content of this EndpointID must be exactly 10 digits (0-9). No spaces, hyphens, or other characters are allowed. 3. If the customer's KBO number is not known, obtain it from the customer or use a valid placeholder if permitted by the business process (but note that a valid KBO is required for Peppol routing). 4. Validate the XML against the Peppol BIS Billing 3.0 schematron to ensure compliance.
Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.
fix: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
Belgian Peppol SMP routing requires a 10-digit KBO/BCE number with schemeID="0208".
fix: Set <cbc:EndpointID schemeID="0208">0403170701</cbc:EndpointID>.