What does BR-65 mean?
The rule checks the Item classification identifier (BT-158), such as a commodity or customs tariff code. If it is given in an invoice line, it must carry a Scheme identifier. The Scheme identifier comes from the UNTDID 7143 code list and sits in the attribute listID on the element ram:ClassCode. It says which classification system assigned the code.
Common causes of BR-65
- The element ram:ClassCode is present, but the attribute listID is missing.
- The listID was left empty (listID="").
- A classification code (e.g. UNSPSC or HS) appears without the matching UNTDID 7143 code.
- The attribute was wrongly named schemeID instead of listID.
How to fix BR-65
- Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-158 along this XPath:
//rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/@listID - Apply the fix. Add the attribute listID with a UNTDID 7143 code to the element ram:DesignatedProductClassification/ram:ClassCode, e.g. listID="HS" for the Harmonised System.
- Validate again. Save the file and validate it again to check that BR-65 is no longer reported.
Add the attribute listID with a UNTDID 7143 code to the element ram:DesignatedProductClassification/ram:ClassCode, e.g. listID="HS" for the Harmonised System.
//rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode/@listIDBefore / after: the XML example
This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).
<ram:SpecifiedTradeProduct>
<ram:Name>Beispielartikel</ram:Name>
<ram:DesignatedProductClassification>
<ram:ClassCode>84713000</ram:ClassCode>
</ram:DesignatedProductClassification>
</ram:SpecifiedTradeProduct>
<ram:SpecifiedTradeProduct>
<ram:Name>Beispielartikel</ram:Name>
<ram:DesignatedProductClassification>
<ram:ClassCode listID="HS">84713000</ram:ClassCode>
</ram:DesignatedProductClassification>
</ram:SpecifiedTradeProduct>
Frequent questions about BR-65
Which attribute takes the Scheme identifier?
Which values are valid?
When does the rule not apply?
Related error codes
Check BR-65 automatically
Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online – upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.