# BR-DE-5 Seller country must be provided

The seller's country must be provided on the invoice.

## Problem Description

The seller's country must be provided on the invoice.

> **ERROR**: XRechnung 3.0

## Context and Significance

The seller country code must be present and valid (typically ISO 3166-1 alpha-2). This is required for cross-border VAT handling and for consistent validation of party addresses.

## Solution

Add the seller's country to the invoice.

## Valid Examples

- DE
- AT
- FR

## Invalid Examples

- Germany
- D
- DEU
- Empty country code

## Code Examples

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

### Invalid XML
```
<cac:AccountingSupplierParty>
  <cac:Party>
    <cac:PostalAddress>
      <cac:Country>
        <!-- Missing cbc:IdentificationCode -->
      </cac:Country>
    </cac:PostalAddress>
  </cac:Party>
</cac:AccountingSupplierParty>
```

## Technical Details

### Affected Fields
Seller Postal Address, Seller Country Code

## Related Rules

- [BR-DE-3](/resources/kosit-validator-errors/br-de-3-seller-city-must-be-provided)
- [BR-DE-4](/resources/kosit-validator-errors/br-de-4-seller-postal-code-must-be-provided)

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