Rules / IBR-113
Belgian enterprise number must be stated in the correct format for endpoints,, party identification,,, legal entities,,
Belgian enterprise number must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).
Fails
<cbc:EndpointID schemeID="0208">BE0123456789</cbc:EndpointID>
Fix
In cbc:EndpointID (and party or legal identifiers) with schemeID 0208, the value must be a Belgian enterprise number: 10 digits, no BE prefix, with a valid mod-97 check. If the party isn't Belgian, use the scheme that matches its identifier.
Schematron
- Context
cbc:EndpointID[@schemeID = '0208'] | cac:PartyIdentification/cbc:ID[@schemeID = '0208'] | cbc:CompanyID[@schemeID = '0208']- Test
matches(normalize-space(), '^[0-9]{10}$') and u:mod97-0208(normalize-space())
Official text: Belgian enterprise number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).