EFX API REST - Integracion JSON
EFX API REST - Integracion JSON
El primer paso es obtener el token para realizar la autenticación como usuario. Esto se realiza mediante un request, apuntando al
endpoint https://api.dev.latam.equifax.com/v2/oauth/token
Header:
Host: api.dev.latam.equifax.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Length: el valor correspondiente al request enviado
VARIABLE VALOR
scope https://api.latam.equifax.com/business/integration-api-efx/v1
grant_type client_credentials
La respuesta obtenida será el Token necesario para validarse en las llamadas posteriores, y así poder hacer uso de nuestros
servicios
{
"access_token": "zr16O8rvKRtUiooSreSGiv",
"token_type": "Bearer",
"expires_in": 1449,
"scope": "https://api.latam.equifax.com/business/integration-api-efx/v1"
}
VARIABLES EN EL RESPONSE
access_token Token de acceso, el cual nos va a permitir acceder a los distintos endpoints del
servicio.
● REALIZAR CONSULTAS
https://api.dev.latam.equifax.com/business/integration-api-efx/v1/wserv
Header:
Host: api.dev.latam.equifax.com
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXX
Content-Type: application/json
Content-Length: el valor correspondiente al mensaje enviado
VARIABLES CONFIGURABLES
{
"applicants": {
"primaryConsumer": {
"personalInformation": {
"entity": {
"consumer": {
"names": [
{
"data": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "M"
}
}
]
}
},
"productData": {
"sector": "XX",
"billTo": "XXXXXXX",
"shipTo": "X",
"formatReport": "X",
"producto": "XXXXXXXX"
},
"clientConfig": {
"clientTxId": "XXXXXX",
"clientReference": ""
},
"variables": {},
"globalVariables": {},
"vinculos": []
}
}
}
}
{
"clientImplementationStatus": "completed",
"loteFecha": "XXXXXXXX",
"loteUsuCodigo": "XXX",
"loteNum": "XXXX",
"applicants": [
{
"SMARTS_RESPONSE": {
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "X",
"score_veraz": "XXX",
"scorecard_score3": "XXXX"
}
}
}
],
"SMARTS_CONSOLIDADO_RESPONSE": [
{
"integrantes": [
{
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "XX",
"score_veraz": "XXX",
"scorecard_score3": "XXXXXXX"
}
}
],
"AtributosGlobales": {}
}
],
"REPORTE_RESPONSE": [
{
"formato": "H",
"Data": EN CASO DE CONTAR CON EL PRODUCTO RISC:EXPERTO, EN ESTA SECCIÓN SE ENCONTRARÁ EL INFORME
EN EL FORMATO QUE HAYA SIDO SELECCIONADO (TEXTO O HTML)
}
],
"clientImplementationUUID": "0",
"clientImplementationDateCreated": "",
"clientImplementationDateModified": ""
{
"applicants": {
"primaryConsumer": {
"personalInformation": {
"entity": {
"consumer": {
"names": [
{
"data": {
"documento": "XXXXXXXXXX",
"nombre": "APELLIDO Y NOMBRE",
"sexo": "X"
}
}
]
}
},
"productData": {
"sector": "XX",
"billTo": "XXXXXX",
"shipTo": "X",
"formatReport": "X",
"producto": "XXXXXXXX"
},
"clientConfig": {
"clientTxId": "primaryConsumer",
"clientReference": ""
},
"variables": {},
"globalVariables": {},
"vinculos": []
}
},
"primaryConsumer1":{
"personalInformation": {
"entity": {
"consumer": {
"names": [
{
"data": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO Y NOMBRE",
"sexo": "X"
}
}
]
}
},
"productData": {
"sector": "XX",
"billTo": "XXXXXX",
"shipTo": "X",
"formatReport": "X",
"producto": "XXXXXXXXXX"
},
"clientConfig": {
"clientTxId": "primaryConsumer1",
"clientReference": ""
},
"variables": {},
"globalVariables": {},
"vinculos": []
}
}
}
}
"clientImplementationStatus": "completed",
"loteFecha": "XXXXXXXX",
"loteUsuCodigo": "XXX",
"loteNum": "XXXX",
"applicants": [
{
"SMARTS_RESPONSE": {
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "XX",
"score_veraz": "XXX",
"scorecard_score3": "XXXX"
}
}
},
{
"SMARTS_RESPONSE": {
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "XX",
"score_veraz": "XXX",
"scorecard_score3": "XXXXXX"
}
}
}
],
"SMARTS_CONSOLIDADO_RESPONSE": [
{
"integrantes": [
{
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "XX",
"score_veraz": "XXX",
"scorecard_score3": "XXXXX"
}
},
{
"variablesDeEntrada": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "X"
},
"VariablesDeSalida": {
"poblacion": "XX",
"score_veraz": "XXX",
"scorecard_score3": "XXXXXX"
}
}
],
"AtributosGlobales": {
"Es Global": "XXX"
}
}
],
"REPORTE_RESPONSE": [
{
"formato": "H",
"data": EN CASO DE CONTAR CON EL PRODUCTO RISC:EXPERTO, EN ESTA SECCIÓN SE ENCONTRARÁ EL INFORME
DEL PRIMER INTEGRANTE, EN EL FORMATO QUE HAYA SIDO SELECCIONADO (TEXTO O HTML)
},
{
"formato": "H",
"data": EN CASO DE CONTAR CON EL PRODUCTO RISC:EXPERTO, EN ESTA SECCIÓN SE ENCONTRARÁ EL INFORME
DEL SEGUNDO INTEGRANTE, EN EL FORMATO QUE HAYA SIDO SELECCIONADO (TEXTO O HTML)
}
],
"clientImplementationUUID": "primaryConsumer",
"clientImplementationDateCreated": "",
"clientImplementationDateModified": ""
}
VARIABLES ADICIONALES
En caso de que el funcional de InterConnect contenga mayores variables a las standard (DNI, sexo y nombre), las mismas se
deberán especificarse dentro de “Variables”. Por ejemplo, si el cliente tiene como variables adicionales “provincia”, “fecha de
nacimiento”, “fecha de ingreso” e “ingreso_neto_mensual_1”, se estructuraran de la siguiente manera:
{
"applicants": {
"primaryConsumer": {
"personalInformation": {
"entity": {
"consumer": {
"names": [
{
"data": {
"documento": "XXXXXXXX",
"nombre": "APELLIDO, NOMBRE",
"sexo": "M"
}
}
]
}
},
"productData": {
"sector": "XX",
"billTo": "XXXXXX",
"shipTo": "X",
"formatReport": "X",
"producto": "XXXXXXXXX"
},
"clientConfig": {
"clientTxId": "XXXXXXXX",
"clientReference": ""
},
"variables": {
"provincia": "17",
"fecha_nacimiento": "29/07/1994",
"fecha_de_ingreso": "01/02/2014",
"ingreso_neto_mensual_1": "98500",
"ingreso_neto_mensual_2": "96000"
},
},
"globalVariables": {},
"vinculos": []
}
}
}
}