Skip to content

Error

FX-SCH-A-000476: Use an allowed tax type code for the discount

In short

Error: fails the selected checks.

FX-SCH-A-000476 means the tax type code in an invoice-level discount's tax details is not allowed by Basic WL. Correct ram:TypeCode inside the affected ram:CategoryTradeTax. For VAT, use VAT.

On this page

What it means

In the Basic WL profiles of Factur-X and ZUGFeRD, this rule checks a non-empty ram:TypeCode in ram:CategoryTradeTax against the profile's tax-type list. It applies to ram:SpecifiedTradeAllowanceCharge under ram:ApplicableHeaderTradeSettlement where the charge indicator text equals false, identifying an invoice-level discount (BG-20). An empty code value passes this test. FX-SCH-A-000473 separately checks the number of ram:TypeCode elements.

Why it matters

The tax type identifies the tax described by the discount's tax block. An unlisted code fails this profile requirement without proving that a recipient cannot process it.

How to fix it

For VAT, set the affected ram:TypeCode to VAT. Keep the VAT category in its separate ram:CategoryCode field. If your software produces the wrong tax type code and you cannot change it, ask its supplier to correct the export. Export the corrected invoice and check it again.

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 WL 1.0.9-2
ZUGFeRD 2.5 BASIC WL 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

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

Updated 6 November 2026