Seller tax identifier for specified VAT codes

Error BR-DE-16 XRechnung

If the tax codes S, Z, E, AE, K, G, L or M are used in an invoice, at least one of the elements "Seller VAT identifier" (BT-31), "Seller tax registration identifier" (BT-32) or "SELLER TAX REPRESENTATIVE PARTY" (BG-11) shall be transmitted.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

If the checked VAT information uses type VAT with one of the codes S, Z, E, AE, K, G, L or M, an accepted seller tax identifier is missing. At least one of the following is required: a non-empty VAT identifier with schemeID VA, a non-empty tax registration identifier with schemeID FC, or ram:SellerTaxRepresentativeTradeParty.

What the rule means

For the specified VAT categories, one of the seller tax identification items allowed by the test, or a tax representative, must be provided. The test checks the codes as values of ram:CategoryCode on VAT information of type VAT.

Affected fields BT-31 BT-32 BG-11
Please add a seller tax identifier for this VAT category

Your invoice uses one of the checked VAT categories, but the required seller tax identification information is missing. You can provide an applicable seller identifier or a tax representative.

What to do
  1. Check the VAT category in the VAT information, for example ram:CategoryCode.
  2. Add a non-empty seller identifier with schemeID VA or FC, or provide ram:SellerTaxRepresentativeTradeParty.
  3. You can use AddSellerTaxRegistration(...) to provide a seller identifier.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeSettlement>
    <ram:ApplicableTradeTax>
      <ram:TypeCode>VAT</ram:TypeCode>
      <ram:CategoryCode>S</ram:CategoryCode>
    </ram:ApplicableTradeTax>
  </ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
✓ Correct
<ram:IncludedSupplyChainTradeLineItem>
  <ram:SpecifiedLineTradeSettlement>
    <ram:ApplicableTradeTax>
      <ram:TypeCode>VAT</ram:TypeCode>
      <ram:CategoryCode>S</ram:CategoryCode>
    </ram:ApplicableTradeTax>
  </ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
  <ram:SellerTradeParty>
    <ram:SpecifiedTaxRegistration>
      <ram:ID schemeID="VA">DE123456789</ram:ID>
    </ram:SpecifiedTaxRegistration>
  </ram:SellerTradeParty>
</ram:ApplicableHeaderTradeAgreement>
Check in FactoorSharp
  • TaxRegistration.SchemeID (For Seller VAT identifier: BT-31; For Seller tax registration identifier: BT-32)
  • LegalOrganization.ID (SellerTradeParty: BT-31; SellerTradeParty: BT-32)
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.GetSellerTaxRegistration() (BT-31)
  • FacturXInvoice.SellerTaxRegistration (BT-31)
Technical details

The test activates the requirement when one of the checked VAT items has type VAT and one of the listed codes. It then requires a non-empty ram:SpecifiedTaxRegistration/ram:ID with schemeID VA or FC, or ram:SellerTaxRepresentativeTradeParty.

Where the rule applies

The rule applies to VAT information on invoice lines and at document level, as well as to seller information under ram:ApplicableHeaderTradeAgreement.

Original message from the Schematron
Wenn in einer Rechnung die Steuercodes S, Z, E, AE, K, G, L oder M verwendet werden, muss mindestens eines der Elemente "Seller VAT identifier" (BT-31), "Seller tax registration identifier" (BT-32) oder "SELLER TAX REPRESENTATIVE PARTY" (BG-11) übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
not( ( rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode = 'VAT' and rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M') ) or ( rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ ram:CategoryTradeTax = 'VAT' and rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeAllowanceCharge/ram:CategoryTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M') ) or ( rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:TypeCode = 'VAT' and rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax/ram:CategoryCode = ('S', 'Z', 'E', 'AE', 'K', 'G', 'L', 'M') ) ) or ((rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ ram:SpecifiedTaxRegistration/ram:ID[ normalize-space(@schemeID)='VA' or normalize-space(@schemeID)='FC' ][boolean(normalize-space(.))], rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTaxRepresentativeTradeParty))
Changes in the KoSIT validation rules
  • 2022-11-152022-11-15 · AddedTests on interference of BR-DE-16 with BR-O-02, BR-O-03, and BR-O-04