# 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

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

> **ERROR**: XRechnung 3.0

## Context and Significance

This is a core EN16931 rule; the buyer country is decisive for VAT and place-of-supply rules, so the buyer address must always name a country.

## Solution

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

- validate
- convert

## 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://erechnungsvalidator.service-bw.de/): Validate your XRechnung files against all BR-DE rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Automatic validation error fixes when converting.

## Related Resources

- [Official Specification](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [Complete Error List](/resources/kosit-validator-errors): Overview of all German XRechnung validation rules.
