# BR-11 Buyer country code is required

The Buyer postal address shall contain a Buyer country code (BT-55) identifying the buyer’s country.

## Problem Description

> **ERROR**: EN 16931 core business rule (CEN)

## Context and Significance

This is an EN 16931 core rule. The buyer country is decisive for VAT treatment and the place of supply, for example to tell a domestic sale from an intra-community supply. A country written only in an address line does not count, and the code must be a valid ISO 3166-1 alpha-2 value (BR-CL-14). In CII, BT-55 is ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID.

## Solution

Add cac:PostalAddress/cac:Country/cbc:IdentificationCode with an ISO 3166-1 alpha-2 code such as DE within the buyer address.

- [Validate XML](/en/xrechnung-validator?source=resource&rule=BR-11)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&rule=BR-11)

## Valid Examples

- BT-55 = DE — ISO 3166-1 alpha-2 country code present

## Invalid Examples

- cac:Country/cbc:IdentificationCode is missing inside the buyer postal address

## Code Examples

### Valid XML
```
<cac:PostalAddress>
  <cbc:CityName>Muenchen</cbc:CityName>
  <cac:Country>
    <cbc:IdentificationCode>DE</cbc:IdentificationCode>
  </cac:Country>
</cac:PostalAddress>
```

### Invalid XML
```
<cac:PostalAddress>
  <cbc:CityName>Muenchen</cbc:CityName>
  <cbc:PostalZone>80331</cbc:PostalZone>
</cac:PostalAddress>
```

## Affected Fields

- [BT-55 Buyer country code](/resources/xrechnung/bt-55-buyer-country-code)

## Related Rules

- [BR-09](/resources/kosit-validator-errors/br-09-seller-country-code-required)
- [BR-10](/resources/kosit-validator-errors/br-10-buyer-postal-address-required)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
