What it means
In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty ram:TypeCode inside the charge's ram:CategoryTradeTax against the permitted tax type codes. It applies to charges identified by ram:ChargeIndicator/udt:Indicator equal to true. An empty value passes this particular test; the rule does not check whether the element is present.
Why it matters
The tax type identifies which tax the charge's category refers to. It is separate from the VAT category and the VAT rate.
How to fix it
Check the tax type exported for the charge on the whole invoice. For VAT, ram:CategoryTradeTax/ram:TypeCode must contain VAT in capitals, not a percentage or a local tax abbreviation. Keep the VAT category and rate appropriate to the charge. If your software writes an invalid code, report this rule id to its supplier, then export and recheck.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Value of 'ram:TypeCode' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 BASIC | 1.0.9-2 |
| ZUGFeRD 2.5 BASIC | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000522 still fails, and which other rules do.
Related rules
- FX-SCH-A-000523 Use a valid reason code for an invoice charge
- FX-SCH-A-000524 Use an allowed due date format code
- FX-SCH-A-000525 Use a valid currency code on the invoice VAT total
- FX-SCH-A-000526 Use a valid currency code on the accounting VAT total
- FX-SCH-A-000527 Use an allowed payment means code
- FX-SCH-A-000528 Use a valid VAT accounting currency code