Skip to content
ES

API — KYB

This content is not available in your language yet.

El módulo KYB (Know Your Business) verifica empresas: lanza un check con los datos de la empresa y consulta su resultado. Requiere API key (X-API-Key: zkyc_...).

Prefijo: /v1/kyb.

MétodoRutaAuthDescripción
POST/v1/kybAPI keyLanzar verificación KYB
GET/v1/kybAPI keyListar checks KYB
GET/v1/kyb/:idAPI keyDetalle de un check
POST /v1/kyb
X-API-Key: zkyc_...
Content-Type: application/json
{
"companyName": "Acme Inc",
"registrationNumber": "12345678",
"country": "us"
}
CampoTipoRequeridoDescripción
companyNamestring 1–255Razón social
registrationNumberstring 1–120NoNúmero de registro mercantil
countrystring 2–8País (ISO 3166-1 alpha-2; se normaliza a minúsculas)

Respuesta 201 Created:

{
"ok": true,
"check": {
"id": "a1b2c3d4-...",
"companyName": "Acme Inc",
"registrationNumber": "12345678",
"country": "us",
"status": "pending"
}
}
Ventana de terminal
curl -X POST https://kyc.zentto.net/v1/kyb \
-H "X-API-Key: $KYC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"companyName":"Acme Inc","registrationNumber":"12345678","country":"us"}'
const { check } = await kyc.kyb.check({
companyName: "Acme Inc",
registrationNumber: "12345678",
country: "us",
});
GET /v1/kyb
X-API-Key: zkyc_...
{
"ok": true,
"checks": [
{ "id": "a1b2c3d4-...", "companyName": "Acme Inc", "country": "us", "status": "completed" }
],
"total": 1
}
const { checks, total } = await kyc.kyb.list();
GET /v1/kyb/a1b2c3d4-...
X-API-Key: zkyc_...
{ "ok": true, "check": { "id": "a1b2c3d4-...", "companyName": "Acme Inc", "country": "us", "status": "completed" } }
const { check } = await kyc.kyb.get("a1b2c3d4-...");

Vista no técnica: cómo verificar que una empresa existe y no tiene riesgos de cumplimiento.

Flujo del usuario — KYC · KYB

Editable en draw.io: descarga el SVG → en draw.io: File → Import from → Device → selecciona el SVG. Cada nodo queda editable.

Vista técnica: POST /v1/kyb → adaptador por país + AML de directivos → kyb_checks (PostgreSQL).

Flujo técnico — KYC · KYB

ComponenteTipoUbicación
POST /v1/kybRoute Expresssrc/kyb/routes.ts
GET /v1/kybRoute Expresssrc/kyb/routes.ts
GET /v1/kyb/:idRoute Expresssrc/kyb/routes.ts
src/kyb/kyb.service.tsServicio KYBsrc/kyb/kyb.service.ts
src/kyb/adapters/Patrón adaptador por paíssrc/kyb/adapters/
POST /v1/aml/screenLlamada interna (AML directivos)src/aml/routes.ts
kyb_checksTabla checks de empresasrc/db/migrations/
kyb_check_resultsTabla resultados detalladossrc/db/migrations/

Editable en draw.io: descarga el SVG → File → Import from → Device.