# BT-157 Invoice line item country of origin

The country of origin for the item in the invoice line.

## Quick answer

The country of origin 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

The country of origin for the item in the invoice line.

The country of origin for the item in the invoice line.

Used for customs and trade compliance purposes.

## What you usually enter here

ISO 3166-1 Alpha-2 country code

Typical valid values include: DE, CN, US, IT

Optional according to EN 16931-1.

## What goes wrong often

Avoid values like: Germany, DEU, 276

Relevant rule codes: BR-2

## Examples in context

Used for customs and trade compliance purposes.

Optional according to EN 16931-1.

## Valid Examples

- DE
- CN
- US
- IT
- FR

## Invalid Examples

- Germany
- DEU
- 276

## Related Fields

Used for customs and trade compliance purposes.

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

## 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-157

### Data Type:
code

### Cardinality:
0..1

### Requirement:
Optional

### Max Length:
2 characters

### Since Version:
Optional

## XML Implementation

### UBL 2.1 Syntax
```
/Invoice/cac:InvoiceLine/cac:Item/cac:OriginCountry/cbc:IdentificationCode
```

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

## Validation Rules

### BR-2
BR-2

## Why the standard cares about this field

### Business Context
Used for customs and trade compliance 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)
