solicitar corrección
curl --request POST \
--url https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion \
--header 'Content-Type: application/json' \
--header 'NUFI-API-KEY: <nufi-api-key>' \
--header 'X-Workspace: <x-workspace>' \
--data '
{
"documentId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El INE está vencido, favor de subir identificación vigente",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ"
}
]
}
'import requests
url = "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion"
payload = {
"documentId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El INE está vencido, favor de subir identificación vigente",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ"
}
]
}
headers = {
"NUFI-API-KEY": "<nufi-api-key>",
"X-Workspace": "<x-workspace>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'NUFI-API-KEY': '<nufi-api-key>',
'X-Workspace': '<x-workspace>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
documentId: 'e735a41f-303b-4c4b-8217-ecc33c4b9e6a',
secciones: [
{
seccion: 'LegalRepresentative',
estatus: 'Rechazada',
comentario: 'El INE está vencido, favor de subir identificación vigente',
entidadReferencia: 'JUAN CARLOS PEREZ LOPEZ'
}
]
})
};
fetch('https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentId' => 'e735a41f-303b-4c4b-8217-ecc33c4b9e6a',
'secciones' => [
[
'seccion' => 'LegalRepresentative',
'estatus' => 'Rechazada',
'comentario' => 'El INE está vencido, favor de subir identificación vigente',
'entidadReferencia' => 'JUAN CARLOS PEREZ LOPEZ'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"NUFI-API-KEY: <nufi-api-key>",
"X-Workspace: <x-workspace>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion"
payload := strings.NewReader("{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("NUFI-API-KEY", "<nufi-api-key>")
req.Header.Add("X-Workspace", "<x-workspace>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion")
.header("NUFI-API-KEY", "<nufi-api-key>")
.header("X-Workspace", "<x-workspace>")
.header("Content-Type", "application/json")
.body("{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["NUFI-API-KEY"] = '<nufi-api-key>'
request["X-Workspace"] = '<x-workspace>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Corrección solicitada correctamente",
"data": {
"expedienteId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"seccionesActualizadas": 6,
"resumen": {
"aceptadas": 2,
"rechazadas": 4,
"entidadesAfectadas": {
"representantes": 3,
"sucursales": 1,
"expediente": 2
}
},
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El documento de identificación está vencido...",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ",
"entidadesResueltas": [
{
"id": "44ce9ddd-f5db-4684-a1e5-acf145d3e207",
"referencia": "JUAN CARLOS PEREZ LOPEZ",
"coincidencia": "exacta"
}
],
"fechaActualizacion": "2025-10-27T15:30:00.000Z"
},
{
"seccion": "ArticleIncorporation",
"estatus": "Aceptada",
"entidadesResueltas": [
{
"id": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"referencia": "Expediente",
"coincidencia": "expediente"
}
],
"fechaActualizacion": "2025-10-27T15:30:00.000Z"
}
],
"notificacionEnviada": true,
"linkCorreccion": "https://kyb.empresa.com/correcciones/e735a41f-303b-4c4b-8217-ecc33c4b9e6a"
},
"warnings": []
}Endpoints
Solicitar correción
POST
/
expedientes
/
solicitar-correccion
solicitar corrección
curl --request POST \
--url https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion \
--header 'Content-Type: application/json' \
--header 'NUFI-API-KEY: <nufi-api-key>' \
--header 'X-Workspace: <x-workspace>' \
--data '
{
"documentId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El INE está vencido, favor de subir identificación vigente",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ"
}
]
}
'import requests
url = "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion"
payload = {
"documentId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El INE está vencido, favor de subir identificación vigente",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ"
}
]
}
headers = {
"NUFI-API-KEY": "<nufi-api-key>",
"X-Workspace": "<x-workspace>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'NUFI-API-KEY': '<nufi-api-key>',
'X-Workspace': '<x-workspace>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
documentId: 'e735a41f-303b-4c4b-8217-ecc33c4b9e6a',
secciones: [
{
seccion: 'LegalRepresentative',
estatus: 'Rechazada',
comentario: 'El INE está vencido, favor de subir identificación vigente',
entidadReferencia: 'JUAN CARLOS PEREZ LOPEZ'
}
]
})
};
fetch('https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentId' => 'e735a41f-303b-4c4b-8217-ecc33c4b9e6a',
'secciones' => [
[
'seccion' => 'LegalRepresentative',
'estatus' => 'Rechazada',
'comentario' => 'El INE está vencido, favor de subir identificación vigente',
'entidadReferencia' => 'JUAN CARLOS PEREZ LOPEZ'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"NUFI-API-KEY: <nufi-api-key>",
"X-Workspace: <x-workspace>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion"
payload := strings.NewReader("{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("NUFI-API-KEY", "<nufi-api-key>")
req.Header.Add("X-Workspace", "<x-workspace>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion")
.header("NUFI-API-KEY", "<nufi-api-key>")
.header("X-Workspace", "<x-workspace>")
.header("Content-Type", "application/json")
.body("{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nufi.azure-api.net/kyb/expedientes/solicitar-correccion")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["NUFI-API-KEY"] = '<nufi-api-key>'
request["X-Workspace"] = '<x-workspace>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documentId\": \"e735a41f-303b-4c4b-8217-ecc33c4b9e6a\",\n \"secciones\": [\n {\n \"seccion\": \"LegalRepresentative\",\n \"estatus\": \"Rechazada\",\n \"comentario\": \"El INE está vencido, favor de subir identificación vigente\",\n \"entidadReferencia\": \"JUAN CARLOS PEREZ LOPEZ\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Corrección solicitada correctamente",
"data": {
"expedienteId": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"seccionesActualizadas": 6,
"resumen": {
"aceptadas": 2,
"rechazadas": 4,
"entidadesAfectadas": {
"representantes": 3,
"sucursales": 1,
"expediente": 2
}
},
"secciones": [
{
"seccion": "LegalRepresentative",
"estatus": "Rechazada",
"comentario": "El documento de identificación está vencido...",
"entidadReferencia": "JUAN CARLOS PEREZ LOPEZ",
"entidadesResueltas": [
{
"id": "44ce9ddd-f5db-4684-a1e5-acf145d3e207",
"referencia": "JUAN CARLOS PEREZ LOPEZ",
"coincidencia": "exacta"
}
],
"fechaActualizacion": "2025-10-27T15:30:00.000Z"
},
{
"seccion": "ArticleIncorporation",
"estatus": "Aceptada",
"entidadesResueltas": [
{
"id": "e735a41f-303b-4c4b-8217-ecc33c4b9e6a",
"referencia": "Expediente",
"coincidencia": "expediente"
}
],
"fechaActualizacion": "2025-10-27T15:30:00.000Z"
}
],
"notificacionEnviada": true,
"linkCorreccion": "https://kyb.empresa.com/correcciones/e735a41f-303b-4c4b-8217-ecc33c4b9e6a"
},
"warnings": []
}Endpoint para solicitar correcciones en un expediente KYB. Permite aprobar o rechazar secciones específicas, registrar comentarios y notificar al usuario. Si hay rechazos, el documento pasa a estado “Pendiente de Corrección”.
Método y ruta
- POST
/expedientes/solicitar-correccion
Headers requeridos
NUFI-API-KEY(string)X-Workspace(string UUID)
Body
documentId(string UUID, requerido)secciones(array[object], requerido; 1–50 items)seccion(string, requerido)estatus(string, requerido;Aceptada|Rechazada)comentario(string, requerido siestatus = Rechazada, máx. 500)entidadId(string UUID, opcional)entidadReferencia(string, opcional)
notificarUsuario(boolean, default true)mensajeGeneral(string, opcional, máx. 1000)
Body
application/json
ID único del documento/expediente al que se solicitarán correcciones.
Required array length:
1 - 50 elementsShow child attributes
Show child attributes
Si enviar notificación al usuario cuando hay secciones rechazadas.
Mensaje general para el usuario.
Maximum string length:
1000Example:
"Su expediente KYB requiere algunas correcciones menores."
Was this page helpful?
⌘I
.png?fit=max&auto=format&n=SrFWYqQUIKuRmdvu&q=85&s=29a9d6074794b17ba1b2d2cd5d208849)