# BT-151 Invoice Line VAT Category Code

The VAT category code for the invoice line.

## Quick answer

The VAT category code for the invoice line.

> **Line items**: The goods or services on each invoice line, including quantities, prices, and VAT.

- validate
- convert

## In plain language

The VAT category code for the invoice line.

The VAT category code for the invoice line.

Classifies the invoice line for VAT reporting and drives category-specific rate and exemption validation.

## What you usually enter here

UNCL5305 VAT category code

Typical valid values include: S, Z, E, AE

Required by EN 16931 for line VAT classification, with category-specific rules controlling whether a rate is required or must be zero.

## What goes wrong often

Avoid values like: 19, standard

Relevant rule codes: BR-CO-04, BR-CL-17, BR-S-01, BR-Z-01, BR-E-01, BR-AE-01, BR-G-01, BR-IC-01, BR-O-01

## Examples in context

Classifies the invoice line for VAT reporting and drives category-specific rate and exemption validation.

Required by EN 16931 for line VAT classification, with category-specific rules controlling whether a rate is required or must be zero.

## Valid Examples

- S
- Z
- E
- AE

## Invalid Examples

- 19
- standard

## Related Fields

Classifies the invoice line for VAT reporting and drives category-specific rate and exemption validation.

- [BT-152 Invoice Line VAT Category Rate](/resources/xrechnung/bt-152-invoice-line-vat-category-rate)
- [BT-118 VAT Category Code](/resources/xrechnung/bt-118-vat-category-code)

## XML mapping and field facts

Open the technical reference if you need XML paths, validator rule codes, legal wording, or schema-specific mapping details.

### Field ID:
BT-151

### Data Type:
code

### Cardinality:
1..1

### Requirement:
Mandatory

### Since Version:
XRechnung 1.0+

## XML Implementation

### UBL 2.1 Syntax
```
/Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
```

## Validation Rules

### BR-CO-04
BR-CO-04

### BR-CL-17
BR-CL-17

### BR-S-01
BR-S-01

### BR-Z-01
BR-Z-01

### BR-E-01
BR-E-01

### BR-AE-01
BR-AE-01

### BR-G-01
BR-G-01

### BR-IC-01
BR-IC-01

### BR-O-01
BR-O-01

## Why the standard cares about this field

### Business Context
Classifies the invoice line for VAT reporting and drives category-specific rate and exemption validation.

### Legal Requirement
Required by EN 16931 for line VAT classification, with category-specific rules controlling whether a rate is required or must be zero.

## Official sources and tools

- [KoSIT Validator](https://erechnungsvalidator.service-bw.de/)
- [Invoice Converter](/pdf-to-xrechnung)
- [XRechnung Standard](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
