BR-CL-01: The document type code is not an allowed value
This code shows up when an electronic invoice is validated. Here is what it means, why it fires, and what to change in the file.
Why this code appears
The document type code (BT-3) is not in the UNTDID 1001 subset retained by the standard. An invented code, or an order code used on an invoice, is refused.
How to fix it
Use 380 for an invoice, 381 for a credit note, 384 for a corrected invoice, 386 for a prepayment invoice, 389 for a self-billed invoice.
What it looks like in the file
These two snippets are replayed against our own checker on a complete invoice, every time the site is built. The first one raises this code, the second one does not.
What raises the code:
<ram:TypeCode>999</ram:TypeCode>
What to write instead:
<ram:TypeCode>380</ram:TypeCode>
Where it happens
This code comes from EN 16931, the European e-invoicing standard. It concerns business term BT-3.