Seller tax identification for IGIC

Error BR-AF-02 EN 16931

An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IGIC" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/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

If the invoice contains an invoice line with category L (IGIC), the test’s required tax identification is missing: either a seller identifier with schemeID VA or FC, or a tax representative VAT identifier with schemeID VA.

What the rule means

An invoice containing the IGIC category must include at least one of the seller or tax representative identifiers specified by the test.

Affected fields BG-25 BT-151 BT-31 BT-32 BT-63
Please add a seller or tax representative identifier for IGIC

The invoice contains an invoice line in the IGIC category L, but none of the tax identifiers checked for this case is present. Any one of the accepted identifiers is sufficient.

What to do
  1. Add a seller identifier with schemeID VA or FC using FacturXInvoice.AddSellerTaxRegistration(no, schemeID).
  2. Alternatively, add the tax representative’s VAT identifier with schemeID VA.
  3. Check the seller or tax representative details in LegalOrganization.ID and the identifier type in TaxRegistration.SchemeID.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeTax>
  <ram:CategoryCode>L</ram:CategoryCode>
</ram:ApplicableTradeTax>
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="XX">123</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
✓ Correct
<ram:ApplicableTradeTax>
  <ram:CategoryCode>L</ram:CategoryCode>
</ram:ApplicableTradeTax>
<ram:SellerTradeParty>
  <ram:SpecifiedTaxRegistration>
    <ram:ID schemeID="VA">123</ram:ID>
  </ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
Check in FactoorSharp
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTradeParty: BT-32; SellerTaxRepresentativeTradeParty: BT-63)
  • TaxRegistration.SchemeID (For Seller VAT identifier: BT-31; For Seller tax registration identifier: BT-32)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.GetSellerTaxRegistration() (BT-31)
  • FacturXInvoice.GetSellerTaxRepresentativeTaxRegistration() (BT-63)
Technical details

The XPath test accepts either a seller identifier with schemeID VA or FC, or a tax representative identifier with schemeID VA.

Where the rule applies

The rule applies to invoices with at least one invoice line whose VAT category is L for IGIC. It checks the seller’s and the seller’s tax representative’s tax registrations.

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