Seller and buyer VAT identifiers for an intra-community charge

Error BR-IC-04 EN 16931

An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and 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 a charge with VAT category K, either the VAT identifiers of both the seller and the tax representative are missing, or the buyer’s VAT identifier is missing. A seller or tax representative VAT identifier is required, as well as a buyer VAT identifier.

What the rule means

Category K denotes an intra-community supply. For this case, the rule requires a VAT identifier for the seller or the seller’s tax representative and a VAT identifier for the buyer.

Affected fields BG-21 BT-102 BT-31 BT-63 BT-48
Please add the seller’s and buyer’s VAT identifiers

For a charge related to an intra-community supply, required VAT identifiers are missing. You need one for the seller or the seller’s tax representative and one for the buyer.

What to do
  1. Add the seller’s VAT identifier using AddSellerTaxRegistration(...), or check the tax representative’s VAT identifier.
  2. Add the buyer’s VAT identifier using AddBuyerTaxRegistration(...).
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
<ram:SellerTaxRepresentativeTradeParty/>
<ram:BuyerTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE123456789</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">FR12345678901</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:BuyerTradeParty>
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 combines two conditions with AND: a VAT identifier with schemeID='VA' for the seller or tax representative, and a VAT identifier with schemeID='VA' for the buyer.

Where the rule applies

The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge with VAT category K for an intra-community supply. It also checks the tax registrations of the seller or tax representative and the buyer.

Context (rule/@context)
//ram:SpecifiedTradeAllowanceCharge[ram:ChargeIndicator/udt:Indicator='true']/ ram:CategoryTradeTax[ram:CategoryCode = 'K']
Test expression (assert/@test)
( //ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ ram:ID[@schemeID = 'VA'] ) and //ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA']