Provide seller and buyer identifiers for Reverse Charge

Error BR-AE-03 EN 16931

An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) 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

An allowance with VAT category AE is missing at least one required identifier. The invoice must contain either a seller VAT identifier with schemeID VA, a seller tax registration identifier with schemeID FC, or a tax representative VAT identifier. It must also contain either a buyer VAT identifier with schemeID VA or a buyer identifier in ram:SpecifiedLegalOrganization/ram:ID.

What the rule means

For Reverse Charge, identifiers for the seller or the seller’s tax representative and for the buyer must be present in the designated invoice groups. The test requires at least one seller-side identifier and at least one of the two buyer identifiers.

Affected fields BG-20 BT-95 BT-31 BT-32 BT-63 BT-48 BT-47
Please provide seller and buyer identifiers for Reverse Charge

The allowance is marked with category AE for Reverse Charge, but a required seller-side or buyer identifier is missing. Add the missing information to the appropriate invoice group.

What to do
  1. Check the AE value in the allowance’s ram:CategoryCode.
  2. Provide a seller identifier with schemeID VA or FC, or the tax representative’s VAT identifier with schemeID VA, using AddSellerTaxRegistration(...) or the corresponding registration data.
  3. Provide the buyer’s VAT identifier using AddBuyerTaxRegistration(...), or a buyer identifier in LegalOrganization.ID.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>AE</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>AE</ram:CategoryCode>
  </ram:CategoryTradeTax>
  <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>
</ram:SpecifiedTradeAllowanceCharge>
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

On the seller side, a seller VAT identifier (VA), a seller tax registration identifier (FC), or the tax representative’s VAT identifier (VA) is sufficient. On the buyer side, either a buyer VAT identifier (VA) or a buyer identifier in ram:SpecifiedLegalOrganization/ram:ID is sufficient.

Technical details

The XPath test joins two conditions with and: a seller identifier (VA or FC) or a tax representative VAT identifier (VA), and a buyer VAT identifier (VA) or a ram:SpecifiedLegalOrganization/ram:ID.

Where the rule applies

The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode is AE. It checks identifiers for the seller or the seller’s tax representative, and for the buyer.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='false']/ 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`