Provide a seller identifier

Error BR-CO-26 EN 16931

In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.

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

The buyer cannot identify the seller because ram:SellerTradeParty contains none of the accepted identifiers. Neither ram:ID, ram:GlobalID, ram:SpecifiedLegalOrganization/ram:ID, nor a VAT identifier in ram:SpecifiedTaxRegistration/ram:ID with schemeID='VA' is present.

What the rule means

At least one seller identifier must be present so that the buyer can identify the supplier automatically. The rule accepts the seller identifier, the legal registration identifier, or the VAT identifier.

Affected fields BT-29 BT-30 BT-31
Please provide an identifier for the seller

The seller details do not contain any of the identifiers accepted for identification. Add a seller identifier, a legal registration identifier, or a VAT identifier.

What to do
  1. Add a seller identifier, a legal registration identifier, or a VAT identifier to ram:SellerTradeParty.
  2. For the VAT identifier, check the call to AddSellerTaxRegistration(...).
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:ID>SELLER-123</ram:ID>
</ram:SellerTradeParty>
Check in FactoorSharp
  • FacturXInvoice.AddSellerTaxRegistration(no, schemeID) (BT-31)
  • FacturXInvoice.GetSellerTaxRegistration() (BT-31)
  • FacturXInvoice.SellerTaxRegistration (BT-31)
  • GlobalID.SchemeID (Seller legal registration identifier: BT-30)
  • TaxRegistration.SchemeID (For Seller VAT identifier: BT-31)
Technical details

The test passes if at least one of the four XPath expressions selects a value. For the tax registration, only ram:ID with schemeID='VA' is considered.

Where the rule applies

The rule applies to the seller details in ram:SellerTradeParty.

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