# Greeneris SIRET/SIREN Validator

> Greeneris SIRET/SIREN Validator is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Offline Luhn-based validation of French company numbers (SIREN or SIRET) with La Poste exception support, returning validity, type, and parsed components

## Facts

- Endpoint: GET https://data.greeneris.io/v1/fr/siret-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-siret-siren-validator-5dc9fb8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dPdGjEosqkhFZA_mcb_21

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-siret-siren-validator-5dc9fb8c
```

Example prompt: Before I generate this invoice, can you check whether the French company number 44306184100047 is a valid SIRET — and tell me which rule it passed?

## When to prefer this

Use this endpoint when you need instant, offline pre-validation of French SIREN or SIRET numbers before invoicing, before querying the official Sirene API (which is slower and rate-limited), or before executing a payment. It handles both 9-digit SIREN and 14-digit SIRET formats, applies the standard INSEE Luhn rule and the documented La Poste exception (356000000*), tolerates formatting separators, and costs only $0.001 per call with a 1-year cache. Prefer it over the live Sirene registry search when you only need format/checksum validity, not company metadata.

## Known failure modes

- Number parameter missing — returns 400 bad request
- Input is not 9 or 14 digits after stripping separators — returns invalid with type unknown
- Number fails both standard Luhn and La Poste exception — returns valid: false
- Non-numeric characters beyond allowed separators (spaces, dots, dashes) — likely returns 400 or invalid
- Payment not completed (x402 protocol) — returns 402 Payment Required

## How this service works

Instant pre-validation of French company numbers before invoicing or costly Sirene API calls. Auto-detects SIREN (9 digits) vs SIRET (14 digits), applies the INSEE Luhn rule and the documented La Poste exception (356000000*: digit sum mod 5). Query: ?number=44306184100047 (spaces/dots/dashes tolerated). Returns valid, type, siren, nic and the rule applied. Pure offline computation, 1y cache.

## Output

Returns a JSON object with: `valid` (boolean), `type` (SIREN or SIRET), `siren` (first 9 digits), `nic` (last 5 digits for SIRET), and `rule` (standard Luhn or La Poste exception). Pure offline computation, no external API call, cached for 1 year.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "SIREN (9 digits) or SIRET (14 digits); separators allowed"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nic": "00047",
  "rule": "luhn",
  "type": "siret",
  "siren": "443061841",
  "valid": true,
  "number": "44306184100047",
  "source": "offline INSEE formation rule: Luhn checksum + La Poste exception (no registry lookup)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-siret-siren-validator-5dc9fb8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
