Rules / IBR-068
GLN must have a valid format according to GS1 rules for endpoints,, party identification,,, legal entities,,
GLN must have a valid format according to GS1 rules 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="0088">5790000435944</cbc:EndpointID>
Fix
In cbc:EndpointID (and party or legal identifiers) with schemeID 0088, use the party's real GLN: 13 digits whose last digit is the GS1 check digit. A typo in any digit breaks the check digit.
Schematron
- Context
cbc:EndpointID[@schemeID = '0088'] | cac:PartyIdentification/cbc:ID[@schemeID = '0088'] | cbc:CompanyID[@schemeID = '0088']- Test
matches(normalize-space(), '^[0-9]+$') and u:gln(normalize-space())
Official text: GLN MUST have a valid format according to GS1 rules for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061).