BR-65 Classification 1 on line 1 carries an item classification identifier (BT-158) of "72154000" with no scheme identifier (BT-158-1)
Classification 1 on line 1 carries an item classification identifier (BT-158) of "72154000" with no scheme identifier (BT-158-1). Classification codes are not self-describing and they collide freely across systems — a bare "43211508" is a UNSPSC commodity to one reader and a customs heading to another. The scheme is what makes the code resolvable, and it is what a buyer's spend-analysis or a customs declaration reads before the code itself.
This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.
- Business term
BT-158- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"rule": "BR-65",
"field": "BT-158",
"severity": "fatal",
"message": "Classification 1 on line 1 carries an item classification identifier (BT-158) of \"72154000\" with no scheme identifier (BT-158-1). Classification codes are not self-describing and they collide freely across systems — a bare \"43211508\" is a UNSPSC commodity to one reader and a customs heading to another. The scheme is what makes the code resolvable, and it is what a buyer's spend-analysis or a customs declaration reads before the code itself.",
"fix": "Set line.itemClassifications[].schemeId to the UNTDID 7143 code of the classification system — \"HS\" harmonised system, \"MP\" product/service identification number, \"SRV\" GS1 product classification, \"ZZZ\" mutually defined. Add schemeVersion (BT-158-2) when the system is versioned.",
"example": "\"itemClassifications\": [{ \"code\": \"43211508\", \"schemeId\": \"MP\" }]",
"xpath": "/ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:CommodityClassification[1]/cbc:ItemClassificationCode/@listID",
"docsUrl": "https://attestwire.com/rules/BR-65"
}
xpath locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"itemClassifications": [{ "code": "43211508", "schemeId": "MP" }]The fix
Set line.itemClassifications[].schemeId to the UNTDID 7143 code of the classification system — "HS" harmonised system, "MP" product/service identification number, "SRV" GS1 product classification, "ZZZ" mutually defined. Add schemeVersion (BT-158-2) when the system is versioned.