BR-FR-09_EXT-FR-FE-06

The rule sets below word this rule differently; each wording is shown with its rule set.

In English A SIRET given as the buyer's agent identifier (EXT-FR-FE-06) must be 14 digits and start with the SIREN.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element

Message

[BR-FR-09/EXT-FR-FE-06] Le SIRET doit contenir 14 chiffres et commencer par le SIREN. SIRET : " … ", SIREN : " … ".

Context
ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:AgentParty | cn:CreditNote/cac:AccountingCustomerParty/cac:Party/cac:AgentParty
Test
not($siret) or custom:check-siret-siren-coherence($siret[1], $siren)

Checked with France e-invoice (UBL), France e-credit note (UBL), France EXTENDED-CTC-FR (UBL)

Message

BR-FR-09/EXT-FR-FE-06 : Le SIRET doit contenir 14 chiffres et commencer par le SIREN. SIRET : " … ", SIREN : " … ".

Context
rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerAgentTradeParty
Test
not($siret) or custom:check-siret-siren-coherence($siret[1], $siren)

Checked with France e-invoice (CII), France Factur-X EN 16931, France EXTENDED-CTC-FR (CII), France Factur-X EXTENDED, France Factur-X BASIC WL