Rules / IBR-120
Australian Business Number (ABN) must be stated in the correct format for for endpoints,, party identification,,, legal entities,,
Australian Business Number (ABN) must be stated in the correct format for 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="0151">51 824 753 556</cbc:EndpointID>
Fix
In cbc:EndpointID (and party or legal identifiers) with schemeID 0151, the value must be an Australian Business Number: 11 digits, no spaces, with a valid ABN checksum. If the party isn't Australian, use the scheme that matches its identifier.
Schematron
- Context
cbc:EndpointID[@schemeID = '0151'] | cac:PartyIdentification/cbc:ID[@schemeID = '0151'] | cbc:CompanyID[@schemeID = '0151']- Test
matches(normalize-space(), '^[0-9]{11}$') and u:abn(normalize-space())
Official text: Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).