Provide seller and buyer identifiers for reverse charge

Error BR-AE-02 EN 16931

An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) 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

At least one invoice line uses VAT category AE for reverse charge. However, either a qualifying identifier for the seller or the seller’s tax representative is missing, or a qualifying identifier for the buyer is missing.

What the rule means

Under reverse charge, the tax liability is transferred to the buyer. The rule therefore requires an identifier for the seller or the seller’s tax representative, and a VAT identifier or legal registration identifier for the buyer.

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

An invoice line uses AE for reverse charge, but one of the required seller or buyer identifiers is missing. Add the missing identifier to the relevant party’s information.

What to do
  1. Check the seller’s LegalOrganization.ID and the identifier’s TaxRegistration.SchemeID.
  2. Add a seller identifier with VA or FC, or a tax representative VAT identifier with VA.
  3. Add a buyer VAT identifier using AddBuyerTaxRegistration(...) or a legal registration identifier.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
<ram:BuyerTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">SELLER-VAT</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">BUYER-VAT</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)
Good to know

For the seller, VA and FC are accepted; for the tax representative and the buyer VAT identifier, use VA. A legal registration identifier is also accepted for the buyer.

Technical details

The test requires a seller identifier with schemeID VA or FC, or a tax representative identifier with schemeID VA. It also requires a buyer identifier with schemeID VA or a ram:SpecifiedLegalOrganization/ram:ID.

Where the rule applies

This rule applies to invoice lines with VAT category AE under ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax. The required identifiers are in the seller, buyer, or tax representative information.

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ ram:ApplicableTradeTax[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`