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

> **Where BR-20 is checked**
>
> A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-20: EN 16931 core rule, reported in the stage “EN 16931 rules”.

## Solution

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

- [Check XML for free](/en/xrechnung-validator)

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

## 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](/en/resources/xrechnung/bt-69-tax-representative-country-code)
- [BG-12 Seller tax representative postal address](/en/resources/xrechnung/bt-69-tax-representative-country-code)

## Related Rules

- [BR-18](/en/resources/kosit-validator-errors/br-18-tax-representative-name-required)
- [BR-19](/en/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](/en/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](/en/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
