Provide seller and buyer VAT identifiers for intra-community supplies

Error BR-IC-02 EN 16931

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

At least one invoice line is marked with K for an intra-community supply. However, either the seller’s or tax representative’s VAT identifier, or the buyer’s VAT identifier, is missing.

What the rule means

For an intra-community supply, the rule requires a VAT identifier for the seller or the seller’s tax representative, as well as the buyer’s VAT identifier.

Affected fields BG-25 BT-151 BT-31 BT-63 BT-48
Please add the seller’s and buyer’s VAT identifiers for the intra-community supply

An invoice line is marked with K for an intra-community supply, but one of the required VAT identifiers is missing. Provide both the seller or tax representative identifier and the buyer identifier.

What to do
  1. Check the seller identifier in LegalOrganization.ID.
  2. Add the seller’s VAT identifier using AddSellerTaxRegistration(...), or provide the tax representative’s VAT identifier.
  3. Add the buyer’s VAT identifier using AddBuyerTaxRegistration(...).
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
<ram:SellerTaxRepresentativeTradeParty/>
<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; 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 a ram:ID with schemeID VA for the seller or tax representative, and additionally a ram:ID with schemeID VA for the buyer.

Where the rule applies

This rule applies to invoice lines with VAT category K. It checks the VAT identifier of the seller or tax representative and the buyer’s VAT identifier in the trade party information.

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