Subject codes for invoice notes (UNTDID 4451): codes such as AAI, REG and SUR
An e-invoice can contain remarks as free text (invoice note). Every note can be preceded by a subject code that states the topic, e.g. AAI for general information or REG for regulatory information. The codes come from the UNTDID 4451 list; EN 16931 permits only part of them.
The subject code is optional. A code that is not in the permitted list 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 subject code is BT-21 (Invoice note subject code) of the group invoice note (BG-1), the text of the note is BT-22 (Invoice note). An invoice can have several notes, each with its own subject code.
In CII the code is ram:ExchangedDocument/ram:IncludedNote/ram:SubjectCode. In UBL there is no separate element: the code is placed at the beginning of cbc:Note between two # characters, e.g. #AAI#text of the note.
Fields in the glossary: BT-21
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 |
|---|---|---|
AAI |
General information | For remarks without a specific topic. |
REG |
Regulatory information | For information given because of regulations. |
SUR |
Supplier remarks | For remarks of the seller to the buyer. |
AAB |
Terms of payment | For remarks on the terms of payment. The payment terms themselves go into BT-20. |
PMT |
Payment information | For remarks on the payment. |
PMD |
Payment details | For information to match a payment, e.g. on the remittance information. |
AAK |
Price conditions | For remarks on prices and price conditions. |
TXD |
Tax information | For remarks on tax. EN 16931 provides separate fields for the reason of a VAT exemption (BT-120, BT-121). |
CUS |
Customs information | For remarks on the customs declaration. |
PRD |
Product information | For remarks on the delivered goods. |
ZZZ |
Mutually defined | For topics whose meaning seller and buyer have agreed between themselves. |
Typical errors
-
A custom or abbreviated code such as INFO or HR that is not in the list.
Validation rule: BR-CL-08 -
The code in lower case (aai) or with spaces.
Validation rule: BR-CL-08 -
UBL: the text of a note contains three characters between two # that are not a code, e.g. "Order #123#". The first pair of # is checked wherever it appears in the text, not only at the beginning.
Validation rule: BR-CL-08
In E-Rechnungsfreund
In the invoice form, expert view, section "Invoice notes (BG-1)", enter a three-letter code in upper case in the field "Subject code (BT-21)" or leave the field empty; the remark itself goes into the field "Note text".
Source and license
Source of the codes: UNECE (UN/CEFACT), UNTDID 4451 (Text subject code qualifier). The complete and binding list is available there. EN 16931 permits only part of the codes for e-invoices.
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.