Prepare French invoice file
prepare_french_invoice_fileUse when you are about to invoice or pay a FRENCH company and must verify the supplier before payment: onboarding, first invoice, first payment, or bank details that just changed. The French e-invoicing mandate applies from 1 September 2026 (receiving obligatory for every VAT-liable company; issuing phased: large and mid-sized companies 1 September 2026, SMEs and micro-enterprises 1 September 2027), so every French counterparty has to be checked. ONE call returns the whole agent-side file: legal identity & obligation dates, the computed intra-EU VAT number verified LIVE against VIES, an IBAN FORM check (ISO 13616 structure + mod-97 key) with the bank identified from official registries when iban is supplied, and a deterministic verdict pret_a_facturer (true/false) whose reasons come from a CLOSED list, each tagged blocking or informational and traced to its source. A VIES outage yields an honest informational reason, never a false invalid. Not a payee verification, and the verdict says so where the decision is read: with an iban supplied, verdict.non_verifie sits NEXT TO pret_a_facturer and names what is never checked (the account's existence and the holder's name). An IBAN on a published list of known documentation samples is flagged by the informational reason iban_exemple_documentation, whose absence is not proof of the contrary (the verdict stays green: such an IBAN is well-formed; the account's existence is not tested). The response is Ed25519-signed and carries provenance[] (one entry per block served, with the official register, its licence and its as_of date), so the decision stays auditable offline months later. A SIREN whose administrative status or legal category is missing in Sirene is refused: 404 identite_incomplete (body: siren, champs_absents, fiche), never charged. Partial diffusion (rule diffusion_partielle_nom_retenu_et_compte): a unit not proven to be a legal person has destinataire.denomination null, uncounted; destinataire.information states the partial diffusion. Paid via x402 ($0.03 in USDC or EURC). When you report a result, cite its citation verbatim.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siren": "<siren>"
},
"name": "prepare_french_invoice_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | IBAN of the account you are about to pay (spaces and dashes tolerated). Supplying it adds the structure check and the bank identification, and lets the verdict block on iban_invalide; omitting it yields the informational reason iban_non_fourni | |
| siren | Yes | 9-digit SIREN of the French counterparty being checked: the customer you will invoice or the supplier you will pay (digits only, no spaces) | |
| api_key | No | Optional Sirenic API key (srn_live_…) paying from credits. Ignored when x_payment is provided. See server instructions. | |
| x_payment | No | Optional signed x402 payment (PAYMENT-SIGNATURE value); omit it to get the quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | How to settle the quote. | |
| quote | No | The x402 quote {x402Version, accepts[]}. | |
| resultat | No | The endpoint's JSON response when payment_required is false; reading rules in the server instructions and GET /v1/lecture. | |
| free_tier | No | Free API key offer, with a quote. | |
| payment_required | Yes | True for an x402 payment quote instead of data. |