Provide a seller or tax representative VAT identifier for exports

Error BR-G-02 EN 16931

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

At least one invoice line is marked with G for export outside the EU, but both the seller’s VAT identifier and the tax representative’s VAT identifier are missing.

What the rule means

For an invoice line in category G, the seller’s VAT identifier or the seller’s tax representative’s VAT identifier must be provided.

Affected fields BG-25 BT-151 BT-31 BT-63
Please add the seller’s or tax representative’s VAT identifier for the export line

An invoice line is marked with G for export outside the EU, but no VAT identifier for the seller or tax representative is provided. Add either 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. Make sure the identifier is supplied with schemeID VA.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
<ram:SellerTaxRepresentativeTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">SELLER-VAT</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 test accepts a ram:ID with schemeID VA under either ram:SellerTradeParty or ram:SellerTaxRepresentativeTradeParty.

Where the rule applies

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

Context (rule/@context)
//rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ ram:ApplicableTradeTax[ram:CategoryCode = 'G']
Test expression (assert/@test)
( //ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID = 'VA'] or //ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ ram:ID[@schemeID = 'VA'] )