VAT registration identifier scheme for specified business partners

Error BR-FXEXT-03 Factur-X

Only a VAT registration ID may be provided for the following business partners: the line level Ship-To (BT-X-66), the line level Ultimate-Ship-To (BT-X-84), the Sales-Agent (BT-X-340), the Buyer-Tax-Representative (BT-X-367), the Product-Enduser (BT-X-144), the Buyer-Agent (BT-X-411), the document level Ship-To (BT-X-161), the document level Ultimate-Ship-To (BT-X-180), the Ship-From (BT-X-199), the Invoicer (BT-X-223), the Invoicee (BT-X-242), the document level Payee (BT-X-257), the Payer (BT-X-481), or the payment-term-specific Payee (BT-X-509).

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

For one of the specified business partners, ram:ID has a schemeID value other than VA. The rule checks the ID’s scheme, not its format or content.

What the rule means

VA identifies a VAT registration number. For the business partners listed in the rule, this field may use only that scheme.

Please mark the business partner’s VAT registration ID with `VA`

A business partner’s tax registration uses a scheme other than VA. You can update the entry in the invoice.

What to do
  1. Identify which business partner the affected ram:SpecifiedTaxRegistration belongs to.
  2. For an invoicee registration, check the call to AddInvoiceeTaxRegistration(...); for a ship-to registration, check the call to AddShipToTaxRegistration(...).
  3. Set schemeID="VA" for the associated ram:ID.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="ZZ">123</ram:ID>
</ram:SpecifiedTaxRegistration>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID schemeID="VA">123</ram:ID>
</ram:SpecifiedTaxRegistration>
Check in FactoorSharp
  • FacturXInvoice.AddInvoiceeTaxRegistration(no, schemeID) (BT-X-242-00)
  • FacturXInvoice.AddShipToTaxRegistration(no, schemeID) (BT-X-66-00)
Technical details

The XPath checks whether the schemeID attribute has the value VA. Registrations within ram:SellerTradeParty are excluded by the rule context.

Where the rule applies

The rule applies to ram:ID within ram:SpecifiedTaxRegistration when the registration does not belong to the seller.

Context (rule/@context)
//ram:SpecifiedTaxRegistration/ram:ID[not(ancestor::ram:SellerTradeParty)]
Test expression (assert/@test)
@schemeID='VA'