# BR-G-04 Export charge requires a seller VAT identifier

If a document level charge (BG-21) has the document level charge VAT category code (BT-102) "Export outside the EU" (G), the invoice shall contain the Seller VAT identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).

## Problem Description

If a document level charge (BG-21) has the document level charge VAT category code (BT-102) "Export outside the EU" (G), the invoice shall contain the Seller VAT identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).

> **ERROR**: XRechnung 3.0

## Context and Significance

A document-level charge taxed under export category G is folded into the VAT-free export breakdown, so the same seller-identification requirement applies as for lines and allowances.

## Solution

Add the seller VAT identifier (BT-31) or tax representative VAT identifier (BT-63) whenever a document level charge carries category G.

- validate
- convert

## Valid Examples

- Document charge with BT-102 = G and seller VAT identifier BT-31 = DE123456789

## Invalid Examples

- Document charge with BT-102 = G but no BT-31 or BT-63 on the invoice

## Code Examples

### Valid XML
```
<cac:PartyTaxScheme>
  <cbc:CompanyID>DE123456789</cbc:CompanyID>
  <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cac:TaxCategory><cbc:ID>G</cbc:ID><cbc:Percent>0</cbc:Percent></cac:TaxCategory>
</cac:AllowanceCharge>
```

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  <cac:TaxCategory><cbc:ID>G</cbc:ID><cbc:Percent>0</cbc:Percent></cac:TaxCategory>
</cac:AllowanceCharge>
```

## Affected Fields

- [BT-31 Seller VAT identifier](/resources/xrechnung/bt-31-seller-vat-identifier)
- [BT-63 Seller tax representative VAT identifier](/resources/xrechnung/bt-63-seller-tax-representative-vat-identifier)
- [BT-102 Document level charge VAT category code](/resources/xrechnung/bt-102-document-level-charge-vat-category-code)

## Related Rules

- [BR-G-02](/resources/kosit-validator-errors/br-g-02-export-line-seller-vat-id-required)
- [BR-G-03](/resources/kosit-validator-errors/br-g-03-export-allowance-seller-vat-id-required)
- [BR-G-07](/resources/kosit-validator-errors/br-g-07-export-charge-vat-rate-zero)

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