# BR-O-03 Category O document allowance forbids VAT identifiers

An invoice with a document level allowance (BG-20) whose Document level allowance VAT category code (BT-95) is "Not subject to VAT" (O) shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48).

## Problem Description

An invoice with a document level allowance (BG-20) whose Document level allowance VAT category code (BT-95) is "Not subject to VAT" (O) shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48).

> **ERROR**: XRechnung 3.0

## Context and Significance

Category O allowances fall outside VAT, so the invoice must not present any VAT registration number for the parties.

## Solution

Remove the VAT identifiers BT-31, BT-63 and BT-48 whenever a document level allowance uses category O.

- validate
- convert

## Valid Examples

- Document allowance with BT-95 = O and no VAT identifier on any party

## Invalid Examples

- Document allowance with BT-95 = O but Buyer VAT identifier BT-48 = FR32123456789 present

## Code Examples

### Valid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  <cac:TaxCategory><cbc:ID>O</cbc:ID></cac:TaxCategory>
</cac:AllowanceCharge>
<cac:AccountingCustomerParty>
  <cac:Party/>
</cac:AccountingCustomerParty>
```

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  <cac:TaxCategory><cbc:ID>O</cbc:ID></cac:TaxCategory>
</cac:AllowanceCharge>
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PartyTaxScheme>
      <cbc:CompanyID>FR32123456789</cbc:CompanyID>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:PartyTaxScheme>
  </cac:Party>
</cac:AccountingCustomerParty>
```

## 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-48 Buyer VAT identifier](/resources/xrechnung/bt-48-buyer-vat-identifier)
- [BT-95 Document level allowance VAT category code](/resources/xrechnung/bt-95-document-level-allowance-vat-category-code)

## Related Rules

- [BR-O-01](/resources/kosit-validator-errors/br-o-01-not-subject-vat-breakdown-required)
- [BR-O-02](/resources/kosit-validator-errors/br-o-02-line-forbids-vat-identifiers)
- [BR-O-04](/resources/kosit-validator-errors/br-o-04-charge-forbids-vat-identifiers)

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