Beleq / Validator / KoSIT Error Codes / BR-27
FATAL · BR-27 EN 16931 (v1.3.16) Verified with KoSIT v1.6.3 (0-Error Fix) BT-146

How to Fix KoSIT Error BR-27: Negative Net Price in BT-146

KoSIT 1.6.3 rejects invoices with negative item net prices (BT-146 ChargeAmount < 0). The error is triggered by negative values in the NetPriceProductTradePrice. Fix it by ensuring ChargeAmount is non-negative.

Official KoSIT v1.6.3 Schematron Message (EN16931 XRechnung (CII))
[BR-27]-The Item net price (BT-146) shall NOT be negative.

1. Why KoSIT Validator v1.6.3 Rejects This Invoice

EN 16931 explicitly prohibits negative net prices for items (BT-146). The KoSIT Validator v1.6.3 checks this via XPath: in CII, it evaluates ram:ChargeAmount >= 0 under ram:NetPriceProductTradePrice. In UBL, it checks cac:Price/cbc:PriceAmount >= 0. Negative values violate the standard and are rejected as invalid. This rule applies to both XRechnung and ZUGFeRD 2.3 formats.

CII Context: //ram:IncludedSupplyChainTradeLineItem
CII Schematron Test: (ram:SpecifiedLineTradeAgreement/ram:NetPriceProductTradePrice/ram:ChargeAmount) >= 0
UBL Context: cac:InvoiceLine | cac:CreditNoteLine

2. KoSIT-Verified XML Example: Broken vs. Fixed

✕ Invalid CII XML — Rejected by KoSIT 1.6.3 (BR-27)
<ram:SpecifiedLineTradeAgreement>
  <ram:NetPriceProductTradePrice>
    <ram:ChargeAmount>-2000.00</ram:ChargeAmount>
  </ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
  <ram:BilledQuantity unitCode="H87">1.00</ram:BilledQuantity>
✓ Fixed CII XML — Passed KoSIT 1.6.3 (0 Errors)
<ram:SpecifiedLineTradeAgreement>
  <ram:NetPriceProductTradePrice>
    <ram:ChargeAmount>2000.00</ram:ChargeAmount>
  </ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
  <ram:BilledQuantity unitCode="H87">1.00</ram:BilledQuantity>

The broken XML has a negative ChargeAmount of -2000.00, which violates BR-27. The fixed XML changes the value to 2000.00, ensuring the net price is non-negative. This correction aligns with EN 16931 and passes the KoSIT Validator v1.6.3 without errors.

3. Step-by-Step Fix Checklist

  1. Step 1: Inspect the ram:ChargeAmount or cac:Price/cbc:PriceAmount field in the XML to confirm it is not negative.
  2. Step 2: Apply the EN 16931 / XRechnung correction by ensuring the value is non-negative (e.g., change -2000.00 to 2000.00).
  3. Step 3: Re-validate with Beleq's free KoSIT v1.6.3 validator to confirm the fix is applied and the invoice is compliant.

4. Common Shopify Store & DATEV Workflow Trigger

In German Shopify B2B workflows, some plugins incorrectly encode discounts or partial refunds by setting the item's ChargeAmount to a negative value. This violates EN 16931 and causes rejection by DATEV and KoSIT. Beleq prevents this by validating the XML before upload, ensuring that all ChargeAmount values are non-negative and compliant with XRechnung 3.0 and ZUGFeRD 2.3 standards.

Guide (DE): Partial Refunds & TypeCode 381 Credit Notes →

5. Frequently Asked Questions

Can I encode discounts or refunds using negative net prices in XRechnung?

No, EN 16931 explicitly prohibits negative net prices (BT-146). Discounts and refunds must be encoded using proper mechanisms like allowances or separate credit notes.

Does this rule apply to ZUGFeRD 2.3 as well?

Yes, BR-27 applies to both XRechnung 3.0 and ZUGFeRD 2.3, as they are both based on EN 16931. Negative net prices are invalid in both formats.

Related KoSIT Error Codes

Validate your ZUGFeRD PDF or XRechnung XML free online

Check your hybrid ZUGFeRD PDF or XRechnung XML in under 1 second against the official German KoSIT Validator v1.6.3 — 100% RAM-based on Frankfurt servers with zero retention and no registration.

Open Free KoSIT v1.6.3 Validator → See Beleq for Shopify