Asapeca E-Invoice

Validation rules explained

BR-CO-17 VAT amount of a category does not match

Official rule text

VAT category tax amount (BT-117) = VAT category taxable amount (BT-116) x (VAT category rate (BT-119) / 100), rounded to two decimals.

Source: KoSIT validator configuration for XRechnung (original text).

Fields concerned
VAT breakdown › VAT amount (BT-117), VAT breakdown › Taxable amount (BT-116), VAT breakdown › VAT rate (BT-119)
Level in the check
Error — the invoice is rejected

What the rule requires

In each row of the VAT breakdown, the VAT amount (BT-117) is the taxable amount (BT-116) times the rate (BT-119) divided by 100, rounded to two decimals.

How it is checked

KoSIT's configuration allows a tolerance here: the stated VAT amount may differ from the rounded result by up to 1.00 (in UBL: less than 1.00). At rate 0 the VAT amount must be 0 (more precisely: below 0.50). Amounts are compared without sign, so credit notes with negative amounts are checked the same way.

So a one-cent rounding difference does not trigger this rule. When it fires, the error is usually somewhere else.

Common causes

How to fix it

Calculate per category and rate: taxable amount (BT-116) × rate (BT-119) / 100, rounded once commercially to the cent. The German Ministry of Finance requires VAT to the cent with commercial rounding (UStAE section 14.5 (20), as quoted in KoSIT's FAQ).

Example (CII)

<ram:ApplicableTradeTax>
  <ram:CalculatedAmount>102.13</ram:CalculatedAmount>       <!-- BT-117 = 537.50 × 19 % = 102.125 → 102.13 -->
  <ram:TypeCode>VAT</ram:TypeCode>
  <ram:BasisAmount>537.50</ram:BasisAmount>                 <!-- BT-116 -->
  <ram:CategoryCode>S</ram:CategoryCode>                    <!-- BT-118 -->
  <ram:RateApplicablePercent>19</ram:RateApplicablePercent> <!-- BT-119 -->
</ram:ApplicableTradeTax>

Based on the official documentation · sources · Last checked: 2026-10-13

Check an invoice →