Reference
Markdown exportBR-DEX-05 Legal registration identifier scheme must use an ISO 6523 code
Any scheme identifier on a legal registration identifier (Seller BT-30, Buyer BT-47, Payee BT-61) must be coded using one of the ISO 6523 ICD code list entries.
Problem Description
Any scheme identifier on a legal registration identifier (Seller BT-30, Buyer BT-47, Payee BT-61) must be coded using one of the ISO 6523 ICD code list entries.
ERROR
XRechnung 3.0
Context and Significance
This XRechnung Extension rule fires only in the Extension scenario, which relaxes the core severity to permit additional ISO 6523 scheme codes for legal registration identifiers.
Solution
Set the @schemeID on cac:PartyLegalEntity/cbc:CompanyID to a valid ISO 6523 ICD value. If you do not need Extension registration schemes, the standard XRechnung CIUS profile avoids this rule.
Quick actions
Valid Examples
Use these points as the practical checks for this section.
- <cbc:CompanyID schemeID="0002">12345678900</cbc:CompanyID>
Invalid Examples
Use these points as the practical checks for this section.
- <cbc:CompanyID schemeID="LOCAL">12345</cbc:CompanyID> — LOCAL is not ISO 6523
Code Examples
<cac:PartyLegalEntity>
<cbc:CompanyID schemeID="0002">12345678900</cbc:CompanyID>
</cac:PartyLegalEntity><cac:PartyLegalEntity>
<cbc:CompanyID schemeID="LOCAL">12345678900</cbc:CompanyID>
</cac:PartyLegalEntity>