# BR-O-13 Not-subject-to-VAT invoice must have no non-O document allowance

An invoice that contains a VAT breakdown (BG-23) with VAT category code (BT-118) "Not subject to VAT" (O) shall not contain a document level allowance (BG-20) whose Document level allowance VAT category code (BT-95) is not "Not subject to VAT".

## Problem Description

> **ERROR**: EN 16931 VAT category rule

> **Where BR-O-13 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-O-13: EN 16931 VAT category rule, reported in the stage “EN 16931 rules”.

## Solution

Give every document level allowance category O (BT-95 = O), or remove the non-O allowances.

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

## Context and Significance

An invoice with a category O breakdown is entirely outside the scope of VAT, so all document level allowances must also use category O. In practice, the error occurs when a global discount keeps the category of an earlier taxable template, such as Z or S.

## Valid Examples

- O breakdown present and every document allowance has BT-95 = O

## Invalid Examples

- O breakdown present but a document allowance has BT-95 = Z

## 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:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory>
</cac:AllowanceCharge>
```

### Invalid XML
```
<cac:AllowanceCharge>
  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  <cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  <cac:TaxCategory>
    <cbc:ID>Z</cbc:ID>
    <cbc:Percent>0</cbc:Percent>
    <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
  </cac:TaxCategory>
</cac:AllowanceCharge>
```

## Affected Fields

- [BT-118 VAT category code](/en/resources/xrechnung/bt-118-vat-category-code)
- [BT-95 Document level allowance VAT category code](/en/resources/xrechnung/bt-95-document-level-allowance-vat-category-code)

## Related Rules

- [BR-O-01](/en/resources/kosit-validator-errors/br-o-01-not-subject-vat-breakdown-required)
- [BR-O-11](/en/resources/kosit-validator-errors/br-o-11-forbids-other-vat-breakdowns)
- [BR-O-14](/en/resources/kosit-validator-errors/br-o-14-forbids-non-o-charges)

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