# BR-20 Tax representative country code is required when the party is present

The Seller tax representative postal address (BG-12) shall contain a Tax representative country code (BT-69) when a Seller tax representative party (BG-11) is present.

## Problem Description

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

## Context and Significance

This is a conditional EN 16931 core rule. The country code states in which member state the tax representative is established and acts for the seller; where VAT is due still follows from the place of supply. The error appears when the representative address holds only a city or street. In CII, BT-69 is ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID.

## Solution

Add cac:TaxRepresentativeParty/cac:PostalAddress/cac:Country/cbc:IdentificationCode with an ISO 3166-1 alpha-2 code.

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

## Valid Examples

- BT-69 = DE — tax representative country code present

## Invalid Examples

- The tax representative cac:PostalAddress has no cac:Country/cbc:IdentificationCode

## Code Examples

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

### Invalid XML
```
<cac:TaxRepresentativeParty>
  <cac:PostalAddress>
    <cbc:CityName>Berlin</cbc:CityName>
  </cac:PostalAddress>
</cac:TaxRepresentativeParty>
```

## Affected Fields

- [BT-69 Tax representative country code](/resources/xrechnung/bt-69-tax-representative-country-code)
- [BG-12 Seller tax representative postal address](/resources/xrechnung/bt-69-tax-representative-country-code)

## Related Rules

- [BR-18](/resources/kosit-validator-errors/br-18-tax-representative-name-required)
- [BR-19](/resources/kosit-validator-errors/br-19-tax-representative-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.
