> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sahlfinancial.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Registry checks

> Identifier and registry checks by API key and in the console: SIREN or SIRET, EU VAT, LEI, IBAN, Moroccan RIB and ICE. What runs, which public source answers, and what is only confirmed by a person.

Small checks for company and bank identifiers, available two ways: with an API key under `/v1/partner/registry` (scope `registry:read`, below) and in the **Integrations** page of the console, for a signed-in member. Both run the same checks.

Each integration has an honest status on the page: `live` (works now), `configured` or `needs_setup` (needs a credential), `manual` (a reviewer confirms it on the official portal) and `coming_soon`. The page never shows `manual` items as automated.

## With an API key

| Endpoint | Body | Checks |
| - | - | - |
| `GET /v1/partner/registry` | none | Lists the checks, their input fields, their source and whether they call a third party. |
| `POST /v1/partner/registry/siren` | `query`: a SIREN (9 digits), a SIRET (14 digits) or a company name, up to 120 characters | French company. |
| `POST /v1/partner/registry/vat` | `country` (2 letters, `EL` or `GR` for Greece, `XI` for Northern Ireland), `number` (up to 30 characters, country prefix optional) | EU VAT number (VIES). |
| `POST /v1/partner/registry/lei` | `lei`: the 20-character LEI | Legal Entity Identifier (GLEIF). |
| `POST /v1/partner/registry/iban` | `iban`, spaces allowed | IBAN of any country. |
| `POST /v1/partner/registry/rib` | `rib`: a 24-digit RIB or a 28-character Moroccan IBAN | Moroccan RIB or IBAN. |
| `POST /v1/partner/registry/ice` | `ice`: a 15-digit ICE | Moroccan ICE. |

Open to every plan, scope `registry:read`. Not metered: no document is read and nothing counts against your quota. Each key is limited to 60 calls a minute on these routes. Every body also takes an optional `environment` (`sandbox` or `production`); `X-Sahl-Environment` does the same, and the Sandbox is the default. Production calls need your workspace to be approved for Production API calls (see [Go live](https://docs.sahlfinancial.com/go-live.md#partner-document-apis)). Nothing is stored.

Every answer carries `available`, `environment`, `source` and `message`. When a third party does not answer, the call is still a 200 with `available: false` and a `message`: it never turns into a 5xx. The offline checks are always `available: true`.

```bash cURL theme={"dark"}
curl -X POST https://app.sahlfinancial.com/api/v1/partner/registry/vat \
  -H "Authorization: Bearer $SAHL_API_KEY" -H "Content-Type: application/json" \
  -d '{"country": "FR", "number": "FR12345678901"}'
```

```javascript JavaScript theme={"dark"}
const res = await fetch("https://app.sahlfinancial.com/api/v1/partner/registry/vat", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SAHL_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ country: "FR", number: "FR12345678901" }),
});
const vat = await res.json();
if (vat.available && vat.valid) console.log(vat.name);
```

```python Python theme={"dark"}
import os, requests

vat = requests.post(
    "https://app.sahlfinancial.com/api/v1/partner/registry/vat",
    headers={"Authorization": f"Bearer {os.environ['SAHL_API_KEY']}"},
    json={"country": "FR", "number": "FR12345678901"},
).json()
```

```json theme={"dark"}
{
  "available": true,
  "environment": "sandbox",
  "source": "EU VIES",
  "message": null,
  "valid": true,
  "vat": "FR12345678901",
  "name": "...",
  "address": "...",
  "request_date": "2026-11-24"
}
```

| Check | Answer fields (besides the four above) |
| - | - |
| `siren` | `found`, `check` (`kind` `siren` or `siret`, `normalized`, `siren`, `valid`, `message`: the Luhn check, when the query is a number), `results[]` (up to 5: `siren`, `name`, `legal_form_code`, `activity_code`, `status` `active` or `ceased`, `address`, `siret_hq`, `created`, `establishments`). A number whose key does not hold is answered without calling the directory. |
| `vat` | `valid`, `vat`, `name`, `address`, `request_date`. |
| `lei` | `found`, `lei`, `name`, `jurisdiction`, `entity_status`, `registration_status`, `next_renewal`, `country`, `city`. |
| `iban` | `normalized`, `country`, `valid`, `length_ok` (`null` when the country is not listed), `mod97_ok`, `note`. |
| `rib` | `kind` (`rib` or `iban`), `normalized`, `formatted`, `valid`, `rib_key_ok`, `iban_check_ok`, `bank_code`, `bank_name`, `bank_logo`, `bank_known`, `account_checked` (always `false`), `note`. |
| `ice` | `ice`, `format_valid`, `checksum_ok` (`null` when the format is invalid), `registry_checked` (always `false`), `known` (`raison_sociale`, `address`, `source`, `last_seen_at`: only what your own KYB reads named for this ICE in the same environment, or `null`), `note`. |

The ICE check here is the same as `POST /v1/kyb/ma/ice-check` without the `ice.checked` event. Errors: 422 `invalid_environment` or `environment_conflict`, 403 for a missing `registry:read` scope or a Production gate, 429 `rate_limit_exceeded`.

## What is live

| Check | What it does | Source | Needs the internet |
| - | - | - | - |
| French company (SIREN, SIRET) | Checks the format and the Luhn key, then looks the company up by SIREN, SIRET or name: legal name, status (active or ceased), head-office address, activity code. | The State's open directory, Recherche d'entreprises (Licence Ouverte 2.0). | Yes |
| EU VAT (VIES) | Confirms a VAT number is active in an EU member state (and Northern Ireland) and returns the name and address when the country shares them. | The European Commission's VIES service. | Yes |
| LEI | Looks a Legal Entity Identifier up: legal name, jurisdiction, entity and registration status, next renewal date, country and city. | GLEIF, open data (CC0). | Yes |
| IBAN, any country | Checks the length for the country and the mod-97 check digits. | None: computed by Sahl. | No |
| RIB or IBAN, Morocco | Checks a 24-digit RIB or a 28-character `MA` IBAN: the RIB key, the IBAN check digits, and which bank the first three digits name. | None: computed by Sahl. | No |
| ICE, Morocco | Checks that the ICE has 15 digits and that its check key matches the commonly used rule. Also shows what your workspace's own KYB documents already said about this ICE. | None: computed by Sahl. | No |

Three of these (SIREN or SIRET, VAT and LEI) call a free public service that Sahl does not control. If that service is down or slow, the check answers `available: false` with a reason, and the page says so instead of guessing.

## What these checks do not prove

* **The RIB, IBAN and ICE checks validate the number itself.** The RIB answer says `account_checked: false` and the ICE answer says `registry_checked: false`. They do not confirm that an account exists, who holds it, or that a company is registered. The ICE check key rule is not officially published, so a mismatch is a reason to look closer, not a refusal.
* **A match in the French directory is public data, not a certified extract.** A Kbis stays the proof for a bank.
* **VIES depends on each member state.** A member state's service can be unavailable.
* **There is no query to a Moroccan registry.** Morocco has no public ICE or RC registry API, and Sahl does not query one.

## What a person confirms

These appear on the page as `manual`. Sahl names the portal and the document to check, and shows the numbers it read so they can be pasted. They are not automated and never marked verified by Sahl.

| Item | Where a reviewer confirms it |
| - | - |
| Registre du commerce (Morocco) | OMPIC's DirectInfo, against the Modèle J. |
| ICE, IF and RC (Morocco) | The tax administration's company search. |
| CNSS attestation | The CNSS verification portal, with the attestation reference and the employer's affiliation number. |
| Quebec enterprise register | The Registraire des entreprises du Québec extract. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.