What the field is for
The specification's description (above, in German) translates as: "The seller's VAT identifier." BT-31 is the seller's VAT identification number (German USt-IdNr.). The German VAT Act requires the invoice to show the tax number or the VAT identification number (§ 14 (4) sentence 1 no. 2 UStG). In XRechnung:
| Item | Field |
|---|---|
VAT identification number, e.g. DE123456789 |
BT-31 |
tax number from the tax office (Steuernummer), e.g. 12/345/67890 |
BT-32 |
One of the two is enough: a seller without a VAT identification number gives the tax number in BT-32. This also applies to small businesses (Kleinunternehmer).
Which rules check the field
| Rule | What it requires | Level in XRechnung |
|---|---|---|
| BR-DE-16 | with VAT category S, Z, E, AE, K, G, L, M: BT-31, BT-32 or the tax representative (BG-11) | error |
| BR-S-02 and the other BR-*-02 to -04 | the same per category for lines, allowances and charges | error |
| BR-CO-09 | BT-31 starts with the country code (DE, Greece EL) |
error |
| BR-CO-26 | BT-29, BT-30 or BT-31 is given, so the buyer can identify the seller | error |
| BR-O-02 | with "not subject to VAT" (O) no VAT identifier | error |
Where the field is in the file
| Syntax | Element |
|---|---|
| CII | ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA" (tax number: schemeID="FC") |
| UBL | cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID with cac:TaxScheme/cbc:ID = VAT |
Common mistakes
- Neither a VAT identifier nor a tax number → BR-DE-16 and BR-S-02, the invoice is rejected.
- A VAT identifier without the country code (
123456789) → BR-CO-09. - The tax number in the VAT identifier field (
schemeID="VA"with12/345/67890) → BR-CO-09. The tax number belongs in BT-32.
Example
<!-- CII -->
<ram:SellerTradeParty>
...
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">DE123456789</ram:ID> <!-- BT-31 -->
</ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="FC">12/345/67890</ram:ID> <!-- BT-32 -->
</ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<!-- UBL -->
<cac:PartyTaxScheme>
<cbc:CompanyID>DE123456789</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
The numbers in the example are made up.
Sources: KoSIT, XRechnung specification 3.0.2 (BT-31, BT-32, BR-DE-16, BR-CO-09, BR-CO-26, BR-S-02, BR-O-02); XRechnung 3.0.2 validator configuration; German VAT Act (UStG), § 14 (4) sentence 1 no. 2.