Skip to content

Error

FX-SCH-A-000519: Use an allowed tax type code for an invoice discount

In short

Error: fails the selected checks.

FX-SCH-A-000519 means the tax type code for a discount on the whole invoice (BG-20) is not allowed. For VAT, use VAT in ram:CategoryTradeTax/ram:TypeCode within the discount, then export and recheck your file.

On this page

What it means

In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty ram:TypeCode inside the discount's ram:CategoryTradeTax against the permitted tax type codes. It applies to discounts identified by ram:ChargeIndicator/udt:Indicator equal to false. 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 discount'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 discount 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 discount. 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
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-000519 still fails, and which other rules do.

Updated 6 November 2026