Country codes in e-invoices: DE, AT, CH and more according to ISO 3166-1
In an e-invoice the country of an address is not a name such as "Germany" but a two-letter code according to ISO 3166-1 (alpha-2), e.g. DE for Germany or AT for Austria.
The code list for EN 16931 takes over all codes of the standard and adds 1A for Kosovo and XI for Northern Ireland. Any other value makes the validation fail.
Check whether your e-invoice uses valid codes, or create an e-invoice in the form and pick the codes from selection lists.
Where does the code belong?
The country code is part of the postal addresses: BT-40 (seller) and BT-55 (buyer) are always mandatory, BT-69 (tax representative) and BT-80 (deliver to address) are mandatory as soon as that address is given. The country of origin of an item in BT-159 is optional.
In CII it is ram:CountryID in ram:PostalTradeAddress (country of origin: ram:OriginTradeCountry/ram:ID), in UBL cbc:IdentificationCode in cac:Country (country of origin: cac:OriginCountry).
Frequently used codes
A selection of frequently used codes, not the complete code list. The complete list is published by the source named below.
| Code | Meaning | Explanation |
|---|---|---|
DE |
Germany | Two letters in upper case, not DEU (three-letter code) and not D. |
AT |
Austria | Not A and not AUT. |
CH |
Switzerland | Not SUI or CHE. |
FR |
France | EU member state. |
NL |
Netherlands | EU member state. |
BE |
Belgium | EU member state. |
LU |
Luxembourg | EU member state. |
IT |
Italy | EU member state. |
ES |
Spain | EU member state. |
PL |
Poland | EU member state. |
GR |
Greece | GR in the address. EL is the country prefix of the Greek VAT number, but not a country code according to ISO 3166-1. |
GB |
United Kingdom | The code is GB, not UK. |
XI |
Northern Ireland | Not a code from ISO 3166-1, but added in the code list for EN 16931. |
1A |
Kosovo | Not a code from ISO 3166-1, but added in the code list for EN 16931. |
US |
United States | Not USA (three-letter code). |
Typical errors
-
A country name such as "Germany" or a three-letter code such as DEU instead of the two-letter code.
Validation rule: BR-CL-14 -
UK instead of GB or EL instead of GR, lower case (de) or spaces in the code.
Validation rule: BR-CL-14 -
The country of seller or buyer is missing, e.g. because it is only written as a name in an address line.
Validation rule: BR-09, BR-11 -
Tax representative or deliver to address without a country code.
Validation rule: BR-20, BR-57 -
An invalid code in the country of origin of an item.
Validation rule: BR-CL-15
In E-Rechnungsfreund
In the invoice form, sections "Seller (BG-4)" and "Buyer (BG-7)", select an entry from the list in the field "Country" (both views).
In the expert view likewise in the sections "Tax representative (BG-11)" and "Delivery address / different recipient (BG-13)", and for a line in the field "Country of origin (BT-159)".
Source and license
Source of the codes: ISO, ISO 3166-1 (Country codes). The complete and binding list is available there.
The meanings and explanations of the frequently used codes and the notes on typical errors are editorial texts and not part of the source.
Explanation of the code list, not legal or tax advice.