Provide a seller VAT identifier for the export allowance

Error BR-G-03 EN 16931

An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) 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 an allowance in category G, both the seller’s VAT identifier and the tax representative’s VAT identifier are missing. At least one of these identifiers with schemeID VA must be present.

What the rule means

Code G denotes export outside the EU. The rule requires a VAT identifier for the seller or the seller’s tax representative in this case.

Affected fields BG-20 BT-95 BT-31 BT-63
Please provide a seller VAT identifier for the export allowance

The allowance is marked with category G for export outside the EU, but the seller’s or tax representative’s VAT identifier is missing. Add one of these identifiers to the invoice.

What to do
  1. Check category G in the allowance’s ram:CategoryCode.
  2. Add the seller’s VAT identifier using AddSellerTaxRegistration(...).
  3. Alternatively, check the tax representative’s VAT identifier with schemeID VA.
  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>G</ram:CategoryCode>
  </ram:CategoryTradeTax>
</ram:SpecifiedTradeAllowanceCharge>
✓ Correct
<ram:SpecifiedTradeAllowanceCharge>
  <ram:ChargeIndicator>
    <udt:Indicator>false</udt:Indicator>
  </ram:ChargeIndicator>
  <ram:CategoryTradeTax>
    <ram:CategoryCode>G</ram:CategoryCode>
  </ram:CategoryTradeTax>
  <ram:SellerTradeParty>
    <ram:SpecifiedTaxRegistration>
      <ram:ID schemeID="VA">SELLER-VAT</ram:ID>
    </ram:SpecifiedTaxRegistration>
  </ram:SellerTradeParty>
</ram:SpecifiedTradeAllowanceCharge>
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)
Good to know

For either permitted identifier, schemeID must have the value VA.

Technical details

The XPath test requires at least one of the two ram:SpecifiedTaxRegistration/ram:ID entries with schemeID VA: for the seller or for the tax representative.

Where the rule applies

The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge with category G. It checks the seller’s or the seller’s tax representative’s VAT identifier.

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