Provide seller and buyer identifiers for the reverse-charge charge

Error BR-AE-04 EN 16931

An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47).

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

The charge is assigned to category AE for reverse charge, but at least one required identifier is missing: a seller or tax representative identifier on the seller side, and a VAT identifier or legal registration identifier on the buyer side. The test requires a matching identifier on both sides.

What the rule means

For a charge subject to reverse charge, both the seller and buyer must be identifiable through one of the identifiers allowed for their respective side. The rule ensures that the required party details for this tax treatment are present.

Affected fields BG-21 BT-102 BT-31 BT-32 BT-63 BT-48 BT-47
Please add seller and buyer identifiers for the reverse-charge charge

The charge is marked as reverse charge, but the invoice is missing required identifiers for the seller and buyer. Add one of the accepted identifiers for each side.

What to do
  1. Check the identifiers in SellerTradeParty and BuyerTradeParty.
  2. For the seller, add either an identifier with schemeID VA or FC using AddSellerTaxRegistration(...), or the tax representative’s VAT identifier.
  3. For the buyer, add either a VAT identifier using AddBuyerTaxRegistration(...) or a legal registration identifier using LegalOrganization.ID.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>true</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>AE</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE123456789</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE987654321</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:BuyerTradeParty>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTradeParty: BT-32; BuyerTradeParty: BT-47; SellerTaxRepresentativeTradeParty: BT-63)
  • TaxRegistration.SchemeID (For Seller VAT identifier: BT-31; For Seller tax registration identifier: BT-32)
  • FacturXInvoice.AddBuyerTaxRegistration(no, schemeID) (BT-48)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.BuyerTaxRegistration (BT-48)
Technical details

The XPath requires either a seller identifier (VA or FC) or the tax representative’s VAT identifier (VA), and additionally either the buyer’s VAT identifier (VA) or the buyer’s ram:SpecifiedLegalOrganization/ram:ID. Both grouped expressions must be satisfied; the rule context limits the check to charges in category AE.

Where the rule applies

The rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value AE for reverse charge.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'AE']
Test expression (assert/@test)
( //ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = ('VA', 'FC')] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ ram:ID[@schemeID = 'VA'] ) and ( //ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID )
Changes in the KoSIT validation rules
  • 2024-06-202024-06-20 · AddedCEN unexpected tests on BR-AE-02, BR-AE-03, and BR-AE-04 with BT-32 and no BT-31 in CII
  • 2024-06-202024-06-20 · Changedtests on BR-AE-02, BR-AE-03, and BR-AE-04 moved from `src/test/unexpected` to `src/test/cen-unit-tests`