No VAT identifier for a charge not subject to VAT

Error BR-O-04 EN 16931

An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

For such a charge, the invoice contains at least one VAT identifier for the seller, the seller’s tax representative, or the buyer. The rule checks identifiers in ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA".

What the rule means

Tax code O means “not subject to VAT.” For a charge in this category, the checked VAT identifiers for the seller, tax representative, and buyer must not be present in the invoice.

Affected fields BG-21 BT-102 BT-31 BT-63 BT-48
Please remove the VAT identifiers for a charge not subject to VAT

A document level charge is marked as not subject to VAT (O), while the invoice contains one of the VAT identifiers excluded for this category. You can adjust the relevant seller, tax representative, or buyer details.

What to do
  1. Check the charge and its tax category O.
  2. If needed, remove the seller VAT identifier set with AddSellerTaxRegistration(...).
  3. Also check the tax representative’s and buyer’s VAT identifiers; use AddBuyerTaxRegistration(...) for the buyer.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE123456789</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>O</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTaxRepresentativeTradeParty: BT-63)
  • FacturXInvoice.AddBuyerTaxRegistration(no, schemeID) (BT-48)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.BuyerTaxRegistration (BT-48)
  • FacturXInvoice.GetBuyerTaxRegistration() (BT-48)
Technical details

The test requires all three paths to ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA'] to be empty: seller, seller’s tax representative, and buyer.

Where the rule applies

The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax contains tax code O.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'O']
Test expression (assert/@test)
not(/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']) and not (//ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'])
Changes in the KoSIT validation rules
  • 2022-11-152022-11-15 · AddedTests on interference of BR-DE-16 with BR-O-02, BR-O-03, and BR-O-04