# BT-159 Item Country of Origin

The country of origin of the item, as an ISO 3166-1 alpha-2 code.

## Quick answer

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

- [Validate XML](/en/xrechnung-validator?source=resource&bt=BT-159)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&bt=BT-159)

## In plain language

Identifies the invoiced goods or services for buyer, seller, and automated procurement or inventory matching.

## What you usually enter here

ISO 3166-1 alpha-2 country code

Typical valid values include: DE, FR, IT

Defined by EN 16931 for invoice line item identification; mandatory item names and optional identifiers must follow the listed scheme and country code rules.

## Where the field sits

BT-159 belongs to the Lines part of the invoice. UBL 2.1 Syntax: Invoice › cac:InvoiceLine › cac:Item › cac:OriginCountry › cbc:IdentificationCode. CII (UN/CEFACT) Syntax: rsm:CrossIndustryInvoice › rsm:SupplyChainTradeTransaction › ram:IncludedSupplyChainTradeLineItem › ram:SpecifiedTradeProduct › ram:OriginTradeCountry › ram:ID.

## What goes wrong often

Avoid values like: Germany, DEU

Relevant rule codes: BR-CL-15

## Valid Examples

- DE
- FR
- IT

## Invalid Examples

- Germany
- DEU

## Related Fields

- [BT-153 Invoice Line Item Name](/resources/xrechnung/bt-153-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-159

### Data Type:
code

### Cardinality:
0..1

### Requirement:
Optional

## XML Implementation

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

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

## Validation Rules

### BR-CL-15
BR-CL-15

## Check whether your XRechnung sets BT-159 correctly

Upload the XML file to the free validator. It applies the KoSIT rules for XRechnung 3.0 and names each finding with its rule ID, for this field for example BR-CL-15. Creating a new invoice instead? The converter checks the invoice against the same rules and shows the findings before download.

- [Validate XML](/en/xrechnung-validator)
- [Convert invoice](/en/pdf-to-xrechnung)

Free, no account needed. XML file up to 2 MB.

## Official sources and tools

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