Seller VAT identifier for an export charge

Error BR-G-04 EN 16931

An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63).

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 G, both the seller VAT identifier in ram:SellerTradeParty and the tax representative VAT identifier in ram:SellerTaxRepresentativeTradeParty are missing. The rule requires at least one of these two identifiers.

What the rule means

VAT category G denotes an export outside the EU. The invoice must therefore contain the VAT identifier of the seller or the seller’s tax representative.

Affected fields BG-21 BT-102 BT-31 BT-63
Please add the seller’s or tax representative’s VAT identifier

For a charge related to an export outside the EU, both the seller’s and the tax representative’s VAT identifiers are missing. Adding either identifier resolves the issue.

What to do
  1. Check the seller in ram:SellerTradeParty and, if needed, add the VAT identifier using AddSellerTaxRegistration(...).
  2. Alternatively, check whether a VAT identifier is present in ram:SellerTaxRepresentativeTradeParty.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="FC">12345</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:SellerTaxRepresentativeTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">DE123456789</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTaxRepresentativeTradeParty: BT-63)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.GetSellerTaxRegistration() (BT-31)
  • FacturXInvoice.GetSellerTaxRepresentativeTaxRegistration() (BT-63)
  • FacturXInvoice.GetShipToTaxRegistration() (BT-63)
Technical details

The XPath checks the invoice for at least one ram:SpecifiedTaxRegistration/ram:ID with schemeID='VA' under the seller or the tax representative. The test uses an OR condition.

Where the rule applies

The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value G for export outside the EU.

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