Company check
KYB in één aanroep: registerstatus, btw (VIES), LEI en bestuurders.
🎁 Proefperiode: 3 gratis aanroepen / dag (per aanroeper, per tool)
Tools
Probeer nu een echte aanroep
Wat je agent verstuurt
{
"company_name": "Mistral AI",
"country": "FR"
}Kale curl stopt bij de 402-challenge: voeg een x402-client toe (tabs Node.js of Python) om automatisch te betalen.
# Kale curl stopt bij de 402-challenge: voeg een x402-client toe (tabs Node.js of Python) om automatisch te betalen.
curl -X POST 'https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company' \
-H 'content-type: application/json' \
-d '{"company_name":"Mistral AI","country":"FR"}'De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// npm install @x402/fetch @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const res = await fetchWithPayment("https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"company_name":"Mistral AI","country":"FR"}),
});
console.log(await res.json());De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
# pip install "x402[httpx]" eth_account
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
async def main() -> None:
client = x402Client()
account = Account.from_key(os.environ["EVM_PRIVATE_KEY"])
register_exact_evm_client(client, EthAccountSigner(account))
async with x402HttpxClient(client) as http:
response = await http.post("https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company", json={"company_name":"Mistral AI","country":"FR"})
await response.aread()
print(response.json())
asyncio.run(main())De Java-referentieclient uit de officiële x402-repository. Er is nog geen gepubliceerde Java-SDK: de handtekening lever je zelf (bijv. met web3j).
// Reference client from github.com/coinbase/x402 (java/): build it with `mvn clean install`, then
// <dependency><groupId>org.x402</groupId><artifactId>x402</artifactId><version>1.0.0-SNAPSHOT</version></dependency>
import org.x402.client.X402HttpClient;
import org.x402.crypto.CryptoSigner;
import java.math.BigInteger;
import java.net.URI;
import java.net.http.HttpResponse;
import java.util.Map;
public class Call {
public static void main(String[] args) throws Exception {
// You provide the EIP-3009 signature (for example with web3j) from your private key (env EVM_PRIVATE_KEY).
CryptoSigner signer = new CryptoSigner() {
@Override
public String sign(Map<String, Object> payload) {
return signWithWallet(System.getenv("EVM_PRIVATE_KEY"), payload);
}
};
X402HttpClient client = new X402HttpClient(signer);
BigInteger amount = BigInteger.valueOf(9000); // $0.009 in USDC (6 decimals)
String usdcOnBase = "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
String payTo = "<the seller address from the 402 challenge>";
HttpResponse<String> response = client.get(URI.create("https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company"), amount, usdcOnBase, payTo);
System.out.println(response.body());
}
}De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// go get github.com/x402-foundation/x402/go/v2
package main
import (
"context"
"fmt"
"io"
"net/http"
"os"
"time"
"strings"
x402 "github.com/x402-foundation/x402/go/v2"
x402http "github.com/x402-foundation/x402/go/v2/http"
evm "github.com/x402-foundation/x402/go/v2/mechanisms/evm/exact/client"
evmsigners "github.com/x402-foundation/x402/go/v2/signers/evm"
)
func main() {
signer, _ := evmsigners.NewClientSignerFromPrivateKey(os.Getenv("EVM_PRIVATE_KEY"))
client := x402.Newx402Client().Register("eip155:*", evm.NewExactEvmScheme(signer))
httpClient := x402http.WrapHTTPClientWithPayment(http.DefaultClient, x402http.Newx402HTTPClient(client))
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
req, _ := http.NewRequestWithContext(ctx, "POST", "https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company", strings.NewReader(`{"company_name":"Mistral AI","country":"FR"}`))
req.Header.Set("content-type", "application/json")
res, err := httpClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res.StatusCode, string(body))
}De x402-SDK regelt de 402, de handtekening en de nieuwe poging voor je: één aanroep, één resultaat.
// Cargo.toml: x402-reqwest = "0.6", x402-chain-eip155, alloy-signer-local, reqwest, tokio (features = ["full"])
use alloy_signer_local::PrivateKeySigner;
use reqwest::Client;
use std::sync::Arc;
use x402_chain_eip155::V2Eip155ExactClient;
use x402_reqwest::{ReqwestWithPayments, ReqwestWithPaymentsBuild, X402Client};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let signer: Arc<PrivateKeySigner> = Arc::new(std::env::var("EVM_PRIVATE_KEY")?.parse()?);
let x402 = X402Client::new().register(V2Eip155ExactClient::new(signer));
let http = Client::new().with_payments(x402).build();
let res = http
.post("https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company")
.header("content-type", "application/json")
.body(r#"{"company_name":"Mistral AI","country":"FR"}"#)
.send()
.await?;
println!("{} {}", res.status(), res.text().await?);
Ok(())
}Wat de x402-client van je agent achter de schermen doet (technisch, ter illustratie).
- 1
Endpoint aanroepen
→POST https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company content-type: application/json { "company_name": "Mistral AI", "country": "FR" }←402 Payment RequiredHTTP/1.1 402 Payment Required PAYMENT-REQUIRED: <base64> { "x402Version": 2, "accepts": [ { "scheme": "exact", "network": "eip155:8453", "amount": "9000", "asset": "USDC", "payTo": "0x…" } ] } - 2
Betaling ondertekenen (lokaal)
Je wallet ondertekent lokaal een USDC-machtiging. Alleen de handtekening verlaat je machine.
→wallet.sign(transferWithAuthorization, to: payTo, value: 9000 ($0.009 USDC), network: base)←signaturePAYMENT-SIGNATURE: <signed authorisation> - 3
Opnieuw met de handtekening
→POST https://api.17711.xyz/registry/company-check-service/v1/company-check/verify_company PAYMENT-SIGNATURE: <signed authorisation> content-type: application/json { "company_name": "Mistral AI", "country": "FR" }←200 OKHTTP/1.1 200 OK PAYMENT-RESPONSE: <settlement receipt> { … the tool's JSON answer … }
De x402-SDK doet stap 2 en 3 voor je.
Probeer het live
Een echte API-aanroep vanuit je browser, met de gratis aanroepen van deze dienst.
OpenAPI-definitie
OpenAPI-definitie · company_check_verify_company
{
"operationId": "company_check_verify_company",
"summary": "Company check (KYB): registry status, VAT number validation (VIES), LEI and directors of a company by name, SIREN or VAT number ($0.009, x402)",
"description": "Verifies that a company exists and is in good standing, from official public registers. Send a `company_name`, a `registration_number` (French SIREN or SIRET), an EU `vat_number` (with country prefix) or a `lei`; add `country` to narrow a search. The answer gives the legal name, trade name, status (active or closed), legal form, registration number, address, creation and closure dates, activity code, employee bracket and size category; the validation of its EU VAT number against the European VIES service (valid, invalid, or unavailable) with the name and address registered for it; its LEI record with registration status and direct and ultimate parent companies; for French companies the directors and officers with their role (president, managing director, board members), the statutory auditors, and the revenue and net result of the latest published years. Flags point out what matters: closed company, invalid VAT number, VAT name mismatch, lapsed LEI, ambiguous name (other candidates are listed). Outside France only the LEI register and EU VAT validation are available, and the answer says so. Only public register data is returned. No language model is involved. A company that is not found is not charged. Costs $0.009 per call. Results are stored and reused: the response says when the registers were queried (`retrieved_at`), how old the answer is (`age_seconds`) and whether it came from a stored result (`from_cache`); send `max_age_seconds` to choose the oldest answer you accept, or 0 to force a fresh check. A call usually takes 1 to 5 seconds. Free trial: 3 free calls per caller IP address, per tool, per 24 hours (and at most 50 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.009 USDC per call.",
"x-price-usdc": "0.009",
"x-payment-info": {
"price": {
"mode": "fixed",
"currency": "USD",
"amount": "0.009000"
},
"protocols": [
{
"x402": {}
}
]
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"company_name": {
"description": "The company's name (`OVH`, `Mistral AI`). Give at least one of `company_name`, `registration_number`, `vat_number` or `lei`.",
"type": [
"string",
"null"
]
},
"registration_number": {
"description": "A company registration number: a French SIREN (9 digits) or SIRET (14 digits), or a number from another register (then give `country`).",
"type": [
"string",
"null"
]
},
"vat_number": {
"description": "An EU VAT number with its country prefix (`FR22424761419`, `DE811907980`).",
"type": [
"string",
"null"
]
},
"lei": {
"description": "A Legal Entity Identifier (20 characters).",
"type": [
"string",
"null"
]
},
"country": {
"description": "ISO 3166-1 alpha-2 country code (`FR`, `DE`) to narrow a name or number search.",
"type": [
"string",
"null"
]
},
"max_age_seconds": {
"description": "The oldest answer you accept, in seconds. Omit it for the default (answers up to 6 hours old); `0` forces a fresh check, including a new VAT validation.",
"type": [
"integer",
"null"
],
"minimum": 0
}
}
},
"example": {
"company_name": "string",
"registration_number": "string",
"vat_number": "string",
"lei": "string",
"country": "string",
"max_age_seconds": 0
}
}
}
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"matched_by": {
"type": "string",
"description": "How the company was identified: `lei`, `vat_number`, `registration_number` or `name`."
},
"confidence": {
"type": "string",
"description": "`high` (identified by a number), `medium` (a clear name match) or `low` (several similar names)."
},
"company": {
"type": "object",
"properties": {
"legal_name": {
"type": "string"
},
"trade_name": {
"description": "Commercial name or acronym, when different.",
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"description": "`active`, `closed` or `unknown`."
},
"country": {
"type": "string",
"description": "ISO country code of the legal seat."
},
"legal_form": {
"description": "Legal form (`SAS`, `SARL`, ...) or its register code.",
"type": [
"string",
"null"
]
},
"registration_number": {
"description": "Number in the company register (SIREN for France).",
"type": [
"string",
"null"
]
},
"head_office_id": {
"description": "SIRET of the head office (France).",
"type": [
"string",
"null"
]
},
"vat_number": {
"type": [
"string",
"null"
]
},
"lei": {
"type": [
"string",
"null"
]
},
"address": {
"type": [
"string",
"null"
]
},
"created_at": {
"description": "Date of creation (YYYY-MM-DD).",
"type": [
"string",
"null"
]
},
"closed_at": {
"description": "Date of closure (YYYY-MM-DD), when closed.",
"type": [
"string",
"null"
]
},
"activity_code": {
"description": "Main activity code (NAF/APE for France).",
"type": [
"string",
"null"
]
},
"employees": {
"description": "Employee size bracket, e.g. `50-99`.",
"type": [
"string",
"null"
]
},
"size_category": {
"description": "Size category: `PME`, `ETI`, `GE`.",
"type": [
"string",
"null"
]
}
},
"required": [
"legal_name",
"status",
"country"
]
},
"vat": {
"description": "VAT number validation, when a VAT number is known.",
"anyOf": [
{
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "The number as checked, with country prefix."
},
"status": {
"type": "string",
"description": "`valid`, `invalid` or `unavailable` (the EU service did not answer: try again later)."
},
"registered_name": {
"description": "Name registered for the VAT number, when the member state discloses it.",
"type": [
"string",
"null"
]
},
"registered_address": {
"type": [
"string",
"null"
]
},
"checked_at": {
"type": "string",
"description": "When the number was validated (UTC)."
}
},
"required": [
"number",
"status",
"checked_at"
]
},
{
"type": "null"
}
]
},
"lei": {
"anyOf": [
{
"type": "object",
"properties": {
"lei": {
"type": "string"
},
"entity_status": {
"type": "string",
"description": "Entity status in the LEI register (`ACTIVE`, `INACTIVE`)."
},
"registration_status": {
"type": "string",
"description": "Registration status of the LEI (`ISSUED`, `LAPSED`, ...)."
},
"next_renewal": {
"type": [
"string",
"null"
]
},
"direct_parent": {
"anyOf": [
{
"type": "object",
"properties": {
"lei": {
"type": "string"
},
"legal_name": {
"type": "string"
},
"country": {
"type": [
"string",
"null"
]
}
},
"required": [
"lei",
"legal_name"
]
},
{
"type": "null"
}
]
},
"ultimate_parent": {
"anyOf": [
{
"type": "object",
"properties": {
"lei": {
"type": "string"
},
"legal_name": {
"type": "string"
},
"country": {
"type": [
"string",
"null"
]
}
},
"required": [
"lei",
"legal_name"
]
},
{
"type": "null"
}
]
}
},
"required": [
"lei",
"entity_status",
"registration_status"
]
},
{
"type": "null"
}
]
},
"directors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Full name of the person or the legal entity."
},
"role": {
"type": "string",
"description": "Role as published (`Président de SAS`, `Directeur Général`, `Commissaire aux comptes titulaire`...)."
},
"kind": {
"type": "string",
"description": "`person` or `company`."
},
"born": {
"description": "Month and year of birth (`1975-01`) for a person, as published in the register.",
"type": [
"string",
"null"
]
},
"nationality": {
"type": [
"string",
"null"
]
},
"registration_number": {
"description": "Registration number of a legal-entity director.",
"type": [
"string",
"null"
]
}
},
"required": [
"name",
"role",
"kind"
]
},
"description": "Officers and statutory auditors published in the register (France only)."
},
"financials": {
"type": "array",
"items": {
"type": "object",
"properties": {
"year": {
"type": "integer",
"minimum": 0
},
"revenue": {
"description": "Revenue, in euros.",
"type": [
"integer",
"null"
]
},
"net_result": {
"description": "Net result, in euros.",
"type": [
"integer",
"null"
]
}
},
"required": [
"year"
]
},
"description": "Revenue and net result of the latest published years (France only)."
},
"other_candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"registration_number": {
"type": "string"
},
"city": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
}
},
"required": [
"name",
"registration_number",
"status"
]
},
"description": "Other companies that matched a name search (to disambiguate)."
},
"flags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"severity": {
"type": "string",
"description": "`critical`, `high` or `medium`."
},
"code": {
"type": "string",
"description": "Stable code, e.g. `sanctioned`, `phishing`, `theft`, `mixer`, `blacklist_doubt`."
},
"message": {
"type": "string"
}
},
"required": [
"severity",
"code",
"message"
]
},
"description": "Things to know: closed company, invalid VAT number, name mismatch, lapsed LEI."
},
"sources": {
"type": "array",
"items": {
"type": "string"
},
"description": "The registers consulted."
},
"coverage_note": {
"type": "string",
"description": "What this answer does not cover for the company's country."
},
"retrieved_at": {
"type": "string",
"description": "When the registers were queried (UTC)."
},
"age_seconds": {
"type": "integer",
"minimum": 0,
"description": "How old this answer is, in seconds (0 for a fresh check)."
},
"from_cache": {
"type": "boolean",
"description": "`true` when this answer was served from a stored result."
}
},
"required": [
"matched_by",
"confidence",
"company",
"directors",
"financials",
"other_candidates",
"flags",
"sources",
"coverage_note",
"retrieved_at",
"age_seconds",
"from_cache"
]
},
"example": {
"matched_by": "string",
"confidence": "string",
"company": {
"legal_name": "string",
"trade_name": "string",
"status": "string",
"country": "string",
"legal_form": "string",
"registration_number": "string",
"head_office_id": "string",
"vat_number": "string",
"lei": "string",
"address": "string",
"created_at": "string",
"closed_at": "string",
"activity_code": "string",
"employees": "string",
"size_category": "string"
},
"vat": {
"number": "string",
"status": "string",
"registered_name": "string",
"registered_address": "string",
"checked_at": "string"
},
"lei": {
"lei": "string",
"entity_status": "string",
"registration_status": "string",
"next_renewal": "string",
"direct_parent": {
"lei": "string",
"legal_name": "string",
"country": "string"
},
"ultimate_parent": {
"lei": "string",
"legal_name": "string",
"country": "string"
}
},
"directors": [
{
"name": "string",
"role": "string",
"kind": "string",
"born": "string",
"nationality": "string",
"registration_number": "string"
}
],
"financials": [
{
"year": 0,
"revenue": 0,
"net_result": 0
}
],
"other_candidates": [
{
"name": "string",
"registration_number": "string",
"city": "string",
"status": "string"
}
],
"flags": [
{
"severity": "string",
"code": "string",
"message": "string"
}
],
"sources": [
"string"
],
"coverage_note": "string",
"retrieved_at": "string",
"age_seconds": 0,
"from_cache": false
}
}
}
},
"402": {
"description": "Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "x402 v2 PaymentRequired challenge",
"properties": {
"x402Version": {
"type": "integer"
},
"error": {
"type": "string"
},
"resource": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"description": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"accepts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"scheme": {
"type": "string"
},
"network": {
"type": "string"
},
"amount": {
"type": "string",
"description": "Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."
},
"asset": {
"type": "string"
},
"payTo": {
"type": "string"
},
"maxTimeoutSeconds": {
"type": "integer"
},
"extra": {
"type": "object"
}
}
}
}
},
"required": [
"x402Version",
"accepts"
]
}
}
}
},
"default": {
"description": "Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "ErrorEnvelope"
}
}
}
}
}
}