Alias:
SERVICE_EMPLOYEES_KYC · Preço: R$ 4,10 por consulta · Exige purposePOST /v1/services. Você pode combinar este serviço com outros na mesma chamada, enviando cada identificador uma vez.
Campos do request
| Campo | Obrigatório | Descrição |
|---|---|---|
services | sim | Inclua "SERVICE_EMPLOYEES_KYC" na lista. |
cnpj | sim | CNPJ, com ou sem pontuação. |
purpose | sim | Finalidade do tratamento. Este serviço trata dados pessoais. |
Campos em result
| Campo | Descrição | Tipo |
|---|---|---|
cnpj | CNPJ | number |
employees_kyc_flagged_json | Funcionários Sinalizados | text |
employees_kyc_flagged_count | Total de Funcionários Sinalizados | number |
employees_kyc_summary | Resumo do KYC dos Funcionários | text |
employees_kyc_previously_sanctioned_count | Funcionários com Histórico de Sanção | number |
employees_kyc_currently_sanctioned_count | Funcionários Sancionados | number |
employees_kyc_currently_pep_count | Funcionários PEP | number |
employees_kyc_total_employees | Total de Funcionários Analisados | number |
result traz também outcome, o resumo da consulta: clear, alert, match, no_match ou not_found.
curl --request POST 'https://api.omni-ward.com/v1/services' \
--header 'Authorization: Bearer $OMNI_WARD_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: $(uuidgen)' \
--data '{
"services": [
"SERVICE_EMPLOYEES_KYC"
],
"cnpj": "00000000000000",
"purpose": "Abertura de conta"
}'
const res = await fetch('https://api.omni-ward.com/v1/services', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OMNI_WARD_API_KEY}`,
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
"services": [
"SERVICE_EMPLOYEES_KYC"
],
"cnpj": "00000000000000",
"purpose": "Abertura de conta"
}),
});
const { results } = await res.json();
import os, uuid, requests
res = requests.post(
"https://api.omni-ward.com/v1/services",
headers={"Authorization": f"Bearer {os.environ['OMNI_WARD_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"services": [
"SERVICE_EMPLOYEES_KYC"
],
"cnpj": "00000000000000",
"purpose": "Abertura de conta"
},
timeout=90,
)
results = res.json()["results"]
$ch = curl_init("https://api.omni-ward.com/v1/services");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("OMNI_WARD_API_KEY"),
"Content-Type: application/json",
"Idempotency-Key: " . bin2hex(random_bytes(16)),
],
CURLOPT_POSTFIELDS => '{"services":["SERVICE_EMPLOYEES_KYC"],"cnpj":"00000000000000","purpose":"Abertura de conta"}',
]);
$results = json_decode(curl_exec($ch), true)["results"];
var body = """
{
"services": [
"SERVICE_EMPLOYEES_KYC"
],
"cnpj": "00000000000000",
"purpose": "Abertura de conta"
}
""";
var request = HttpRequest.newBuilder(URI.create("https://api.omni-ward.com/v1/services"))
.header("Authorization", "Bearer " + System.getenv("OMNI_WARD_API_KEY"))
.header("Content-Type", "application/json")
.header("Idempotency-Key", UUID.randomUUID().toString())
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
{
"results": [
{
"service": "SERVICE_EMPLOYEES_KYC",
"status": {
"code": 200,
"message": "Success"
},
"result": {
"cnpj": 0,
"employees_kyc_flagged_json": "texto",
"employees_kyc_flagged_count": 0,
"employees_kyc_summary": "texto",
"employees_kyc_previously_sanctioned_count": 0,
"employees_kyc_currently_sanctioned_count": 0,
"employees_kyc_currently_pep_count": 0,
"employees_kyc_total_employees": 0,
"outcome": "clear"
},
"simulated": false,
"costMinor": 410
}
],
"totalCostMinor": 410
}
{
"error": {
"code": "validation_failed",
"message": "Alguns serviços não podem ser executados. Nada foi consultado nem cobrado.",
"correlationId": "4f1c9a7e-2b1d-4c55-9a51-0d2f6f1c2a10",
"details": {
"results": [
{
"service": "SERVICE_EMPLOYEES_KYC",
"status": {
"code": 422,
"message": "Validation failed"
},
"result": null,
"errors": [
{
"field": "cnpj",
"code": "required",
"message": "Informe CNPJ: este serviço exige o campo."
}
]
}
]
}
}
}
