Use an allowed invoice type code

Warning BR-DE-17 XRechnung

Only the following codes from code list UNTDID 1001 should be transmitted with the element "Invoice type code" (BT-3): 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) and 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

The normalized content of ram:TypeCode is not one of the allowed codes 326, 380, 384, 389, 381, 875, 876 or 877.

What the rule means

The invoice type code identifies the kind of document. Only the explicitly listed codes are allowed by this rule.

Affected fields BT-3
Please choose an allowed invoice type code

Your invoice type code is not among the values allowed by this rule. Replace it with one of the permitted codes.

What to do
  1. Check the value in ram:TypeCode under rsm:ExchangedDocument.
  2. Use one of the codes 326, 380, 384, 389, 381, 875, 876 or 877.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<rsm:ExchangedDocument>
  <ram:TypeCode>999</ram:TypeCode>
</rsm:ExchangedDocument>
✓ Correct
<rsm:ExchangedDocument>
  <ram:TypeCode>380</ram:TypeCode>
</rsm:ExchangedDocument>
Check in FactoorSharp
  • FacturXInvoice.Type (BT-3)
Technical details

The test removes leading and trailing whitespace and compares the remaining value of ram:TypeCode with the specified list.

Where the rule applies

The rule checks the invoice type in ram:TypeCode under rsm:ExchangedDocument.

Original message from the Schematron
Mit dem Element "Invoice type code" (BT-3) sollen ausschließlich folgende Codes aus der Codeliste UNTDID 1001 übermittelt werden: 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) und 381 (Credit note),875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
normalize-space(rsm:ExchangedDocument/ram:TypeCode) = ('326', '380', '384', '389', '381', '875', '876', '877')