What it means
Line VAT information (BG-30) includes the VAT category (BT-151) and, where applicable, the VAT rate (BT-152). This rule counts ram:TypeCode elements inside each ram:ApplicableTradeTax under ram:SpecifiedLineTradeSettlement. The count must be exactly one. It does not check the code's value or whether the tax block itself exists. It applies to the Basic and EN 16931 profiles of Factur-X and ZUGFeRD.
Why it matters
The tax type identifies the tax described by the line's tax details. A missing or repeated type element does not meet the required structure.
How to fix it
Check the exported VAT details for the affected line. In XML, add the missing ram:TypeCode or remove duplicate elements within ram:ApplicableTradeTax, retaining one with the appropriate value, VAT for VAT details. If your software generates the structural error, report this rule id to its supplier. 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
Element 'ram:TypeCode' must occur exactly 1 times. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 BASIC | 1.0.9-2 |
| Factur-X 1.09 EN 16931 | 1.0.9-2 |
| ZUGFeRD 2.5 BASIC | 2.5.2 |
| ZUGFeRD 2.5 EN 16931 | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000535 still fails, and which other rules do.
Related rules
- FX-SCH-A-000536 Line VAT details need exactly one VAT category element
- FX-SCH-A-000537 Use a valid VAT category code on the line
- FX-SCH-A-000538 Use an allowed tax type code on the line
- FX-SCH-A-000539 Add the line period end date's format attribute
- FX-SCH-A-000540 Use a permitted line period end date format code
- FX-SCH-A-000541 Add the line period start date's format attribute