# BT-158 Invoice line item commodity classification

Commodity classification code for the item in the invoice line.

## Quick answer

Commodity classification code for the item in the invoice line.

> **Line items**: The goods or services on each invoice line, including quantities, prices, and VAT.

## In plain language

Commodity classification code for the item in the invoice line.

Commodity classification code for the item in the invoice line.

Used for customs and statistical purposes.

## What you usually enter here

Commodity classification code

Typical valid values include: 8471300000, 8517120000, HS:8471300000

Optional according to EN 16931-1.

## What goes wrong often

Avoid values like: , AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

Relevant rule codes: BR-2

## Examples in context

Used for customs and statistical purposes.

Optional according to EN 16931-1.

## Valid Examples

- 8471300000
- 8517120000
- HS:8471300000

## Invalid Examples

- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

## Related Fields

Used for customs and statistical purposes.

- [BT-138 Invoice line item name](/resources/xrechnung/bt-138-invoice-line-item-name)
- [BT-143 Item classification identifier](/resources/xrechnung/bt-143-item-classification-identifier)

## XML mapping and field facts

Open the technical reference if you need XML paths, validator rule codes, legal wording, or schema-specific mapping details.

### Field ID:
BT-158

### Data Type:
identifier

### Cardinality:
0..n

### Requirement:
Optional

### Max Length:
50 characters

### Since Version:
Optional

## XML Implementation

### UBL 2.1 Syntax
```
/Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode
```

### CII (UN/CEFACT) Syntax
```
/CrossIndustryInvoice/SupplyChainTradeTransaction/ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:SpecifiedTradeProduct/ram:DesignatedProductClassification/ram:ClassCode
```

## Validation Rules

### BR-2
BR-2

## Why the standard cares about this field

### Business Context
Used for customs and statistical purposes.

### Legal Requirement
Optional according to EN 16931-1.

## Official sources and tools

- [KoSIT Validator](https://erechnungsvalidator.service-bw.de/)
- [Invoice Converter](/pdf-to-xrechnung)
- [XRechnung Standard](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
