bcs-policy-management-api-services icon

bcs-policy-management-api-services

(0 reviews)

home

resources/download-069c970f-a336-4d04-af73-7b8be10e965a-dd584c6f-8880-498d-b376-d296e0f955c9.png


API INFORMATION

Title: policy-management-api-services


Last Version: 1.5.34

Protocols: HTTPS

URI Sandbox:

URI QA:

URILive:

DESCRIPTION

Summary


-Status Submit:

Description: Keep the bank's systems updated with the statuses generated in visual time for each case.

Path:

POST /policy-management/v1/status-submit

Request information:

request:
  source: Bank Origin System
  statusCode: Application Status
depAcctStmtRec:
  depAcctId:
    acctId: Credit Application Number / application
personInfo:
  govIssueIdent:
      identSerialNum: Identification number
      govIssueIdentType: Id type identification
  personType: Applicant Type
  policy:
    signature
      issDt: Insurability date
    status: Client status
    descriptionDesc: Observation
    pmtsPlanProdType: Assigned Plan
product:
  productType: Product Type
covered:
  coveredCode: Amparo Code
  exclude: Excluded
  insurancePremiumAmt: Extra premium percentage

Response information:

depAcctStmtRec:

depAcctId
  refNumber: Credit Application Number / application

govIssueIdent:

govIssueIdentType: Id type
identSerialNum: Identification number
> Example of Body to Response Successfull.
{
  "responseType": {
    "value": "OK"
  },
  "depAcctStmtRec":{
    "depAcctId":{
       "refNumber": "550100000001028"
    },
  },
  "govIssueIdent": {
    "identSerialNum": "1234567890",
    "govIssueIdentType": "CC"
  }
}
> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "00001",
    "errorDesc": "Error en el enviar estado de la solicitud",
    "errorType": "TPS"
  }
}

-Status Update:

Description: This operation allows updating case information.

PUT

/policy-management/v1/status-update:

Mapping Request

Field BCS (campo)Description(Descripcion)Type (Tipo)Pattern / Min-Max value / Dictionary-EnumRequired(Requerido)
request.sourceSistema Origen del Bancostring^[ñAa-zA-z,0-9_ ,\W]*$ , minLength: 0 , maxLength: 1YES
request.statusCodeEstado de la SolicitudString - enumSE AP NE DE NR AE AG CM PC AN AV DI FS IT PE PS SOYES
depAcctStmtRec.depAcctId.acctIdNumero Solicitud CreditoString^[ñAa-zA-z,0-9_ ,\W]*$ , minLength: 0 , maxLength: 15YES
product.producTypeTipo productoString^[ñAa-zA-z,0-9_ ,\W]*$ ,minLength: 0 , maxLength: 4YES
personInfo.govIssueIdent.govIssueIdentTypeTipo Identificación.String - enumCC CE PA TI NI PEYES
personInfo.govIssueIdent.identSerialNumNúmero de IdentificaciónStringminLength: 0 , maxLength: 30YES
personInfo.personTypeTipo solicitanteString^[ñAa-zA-z,0-9_ ,\W]*$ ,minLength: 0 , maxLength: 15NO
personInfo.policy.signature.issDtFecha de asegurabilidaddateTimeYYYY-MM-DDYES
personInfo.policy.statusEstado del clienteString - enumSE AP NE DE NR AE AG CM PC AN AV DI FS IT PE PS SOYES
personInfo.policy.descriptionDescCausa Justificacion ObservaciónString^[ñAa-zA-z,0-9_ ,\W]*$ , minLength: 0 , maxLength: 200YES
personInfo.policy.pmtsPlanProdTypePlan AsignadoString^[ñAa-zA-z,0-9_ ,\W]*$ , minLength: 0 , maxLength: 3NO
personInfo.policy.excludeRequiere ExtraPrimaString - enumfalse true , minLength: 1 , maxLength: 5NO
personInfo.policy.PercentagePorcentaje Extra PrimaString^[0-9]*$ ,minLength: 1 , maxLength: 5NO
coverageInfo[].coverageIdCódigo de AmparoString^[Aa-zA-z,0-9_ ,\W]*$ , maxLength: 10NO
coverageInfo[].excludeExcluidoBooleanNO
coverageInfo[].percentagePorcentaje PrimaStringmaxLength: 3NO
insuranceInfo.coveredCodeCase numberString^[0-9]*$YES

Mapping request example:


{
  "request": {
    "source": "1",
    "statusCode": "AP"
  },
  "depAcctStmtRec": {
    "depAcctId": {
      "acctId": "550100000000001"
    }
  },
  "personInfo": {
    "govIssueIdent": {
      "identSerialNum": "1234567890",
      "govIssueIdentType": "CC"
    },
    "personType": "1",
    "policy": {
      "signature": {
        "issDt": "1967-02-26"
      },
      "status": "AE",
      "descriptionDesc": "1",
      "pmtsPlanProdType": "1",
      "exclude": "true",
      "percentage": "10"
    }
  },
  "product": {
    "productType": "0"
  },
  "coverageInfo": [
    {
      "exclude": true,
      "percentage": "S",
      "coverageId": "2"
    }
  ],
  "insuranceInfo": {
    "coveredCode": "1"
  },
  "sequenceProductRequested": "111"
}

Mapping Response OK

CampoDescripcionTipoLongitud
depAcctStmtRec.depAcctId.refNumberNúmero de la solicitudString15
govIssueIdent.govIssueIdentTypeTipo Identificación.String3
govIssueIdent.identSerialNumNúmero IdentificaciónString15

Mapping response example:

{
  "depAcctStmtRec": {
    "depAcctId": {
      "refNumber": "550100000001028"
    }
  },
  "govIssueIdent": {
    "identSerialNum": "1234567890",
    "govIssueIdentType": "CC"
  }
}

Mapping Response Error

> Mapping Response Error.
CampoDescripcionTipo
responseType.valueTipo de RespuestaString
responseDetail.errorCodeCódigo de Error. Ejemplo: “200”String
responseDetail.errorDescDescripción de Error Ejemplo: “Consulta Exitosa”String
responseDetail.errorTypeTipo de ErrorString
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "00001",
    "errorDesc": "Error en la actualizacion",
    "errorType": "TPS"
  }
}

statusCode table:

ConceptoCredito 6S4UVisual Time
AprobadoAPAP
NegadoNENE
Negado RelacionadoNRNR
Autorización exámenes médicosAEn/a
Agendamiento exámenes médicosAGn/a
Agendamiento exámenes médicosCMn/a
pendiente calificaciónPCn/a
Proceso en segurosSESE
siniestro entrada analizar y evaluar cason/aAN
siniestro esperando documenton/aAV
Desistidon/aDE
Documentación Incompletan/aDI
formalización del siniestron/aFS
interrupción de términosn/aIT
pendiente evaluaciónn/aPE
pago del siniestron/aPS
siniestro objetado después de 60 díasn/aSO

Client status table

Estado del cliente
SE
AP
NE
DE
NR

> Diagram of sequence.

resources/Diagrams-90205e08-ce9c-4ed7-951d-8074e6ef3159.jpg


- Insurance Case Create :

Description: This operation allows receives information from the bank to start the process of creating insurability cases in VT

Path:

POST

/policy-management/v1/insurance/case:

Request information:

CampoMAPPER (cs-visual-time-sapi)DESCRIPCIÓNTIPOLONGITUDRequerido
channelObject
channel.sPnameDomainEl nombre de dominio es el que envía la información.String15YES
channel.userUserNameEl usuario que envía la información para crear el casoString10YES
insuranceInfo[]Cases[]Información sobre los casos.ArrayYES
insuranceInfo[].descCases[].ProcessPor defecto, viene como GestionDeExamenesMedicosString30YES
insuranceInfo[].refInfo[]Cases[].EntitiesArrayYES
insuranceInfo[].refInfo[].curAmt.amtCases[].Entities[].ApprovedAmountMonto de valor que se aprueba para el creditofloat15YES
insuranceInfo[].refInfo[].cityIdCases[].Entities[].CityCiudad de donde llega la solicitudString5YES
insuranceInfo[].refInfo[].relationshipTypeCases[].Entities[].PortfolioTypeSi el producto es individual o colectivo.Int2YES
insuranceInfo[].refInfo[].createdDtCases[].Entities[].CreationDateFecha de creación de la solicitud. Formato aaaa-mm-dd.Dateaaaa-mm-dd.YES
insuranceInfo[].refInfo[].requestNumberCases[].Entities[].RequestNumberNúmero de solicitud enviado por el banco.int15YES
insuranceInfo[].refInfo[].submitOffice.branchIdCases[].Entities[].OfficeBank branch.String5YES
insuranceInfo[].refInfo[].trnSrcInfo.codeCases[].Entities[].BankSystemOriginInt1YES
insuranceInfo[].refInfo[].productTypeCases[].Entities[].ProductTypeOpciones de tipo de producto: 3701 Vida Individual (acsel/x), 3703 Deudor Individual (BCS), 34VD Deudor Colectivo (BCS).String4YES
insuranceInfo[].refInfo[].flagAutomCases[].Entities[].AutomaticRequestCampo que evalúa si la solicitud ha sido creada automáticamente o no. El valor por defecto para este campo debería ser “Verdadero” (True).BooleanYES
insuranceInfo[].refInfo[].applicantInfo[]Cases[].Entities[].Applicants[]Informacion de los solicitantesArrayYES
insuranceInfo[].refInfo[].applicantInfo[].personName.firstNameCases[].Entities[].Applicants[].FirstNameNombre de pila del solicitante.String20YES
insuranceInfo[].refInfo[].applicantInfo[].personName.middleNameCases[].Entities[].Applicants[].SecondNameSegundo nombre del solicitante.String20NO
insuranceInfo[].refInfo[].applicantInfo[].personName.lastNameCases[].Entities[].Applicants[].FirstLastNameApellido del solicitante.String20YES
insuranceInfo[].refInfo[].applicantInfo[].personName.secondLastNameCases[].Entities[].Applicants[].secondLastNameSegundo apellido del solicitante.String20NO
insuranceInfo[].refInfo[].applicantInfo[].govIssueIdent.identSerialNumCases[].Entities[].Applicants[].IdentificationNúmero de identificación del solicitante.Int15YES
insuranceInfo[].refInfo[].applicantInfo[].govIssueIdent.govIssueIdentTypeCases[].Entities[].Applicants[].IdentificationTypeTipo de identificación del solicitante.String3YES
insuranceInfo[].refInfo[].applicantInfo[].applicantTypeCases[].Entities[].Applicants[].ApplicantTypeSi se trata de un caso individual, se guardará como 1-Titular principal.int1YES
insuranceInfo[].refInfo[].applicantInfo[].planRequestedCases[].Entities[].Applicants[].PlanRequestedGuardar el plan al que pertenece el solicitante.String3YES
insuranceInfo[].refInfo[].applicantInfo[].personInfo.birthDtCases[].Entities[].Applicants[].ApplicantDetails.BirthdateFecha de nacimiento del solicitante. Formato AAAA-MM-DD.DateAAAA-MM-DDYES
insuranceInfo[].refInfo[].applicantInfo[].orgInfo.addr1Cases[].Entities[].Applicants[].ApplicantDetails.WorkAddressDirección de trabajo del solicitante.String45YES
insuranceInfo[].refInfo[].applicantInfo[].orgInfo.cityIdCases[].Entities[].Applicants[].ApplicantDetails.WorkCityCiudad de trabajo del solicitante.String5YES
insuranceInfo[].refInfo[].applicantInfo[].contactInfo.cellPhoneCases[].Entities[].Applicants[].ApplicantDetails.CellPhoneNumberNúmero de teléfono celular del solicitante.Int10YES
insuranceInfo[].refInfo[].applicantInfo[].contactInfo.cityIdCases[].Entities[].Applicants[].ApplicantDetails.CityCiudad del solicitante.String5YES
insuranceInfo[].refInfo[].applicantInfo[].profileCases[].Entities[].Applicants[].ApplicantDetails.ProfilePerfil del solicitante.Int1NO
insuranceInfo[].refInfo[].applicantInfo[].personInfo.genderCases[].Entities[].Applicants[].ApplicantDetails.GenderGénero del solicitante.String1YES
insuranceInfo[].refInfo[].applicantInfo[].birthDtCases[].Entities[].Applicants[].ApplicantDetails.InsurabilityDatePor defecto, se envía la misma fecha de nacimiento. Formato AAAA-MM-DD.DateAAAA-MM-DD.YES
insuranceInfo[].refInfo[].applicantInfo[].contactInfo.emailAddrCases[].Entities[].Applicants[].ApplicantDetails.EmailDirección de correo electrónico del solicitante.String50NO
insuranceInfo[].refInfo[].applicantInfo[].contactInfo.additionalphoneNum.cellPhoneCases[].Entities[].Applicants[].ApplicantDetails.HomePhoneNumberNúmero de teléfono fijo del hogar del solicitante.Int7YES
insuranceInfo[].refInfo[].applicantInfo[].contactInfo.addr1Cases[].Entities[].Applicants[].ApplicantDetails.HomeAddressDirección del solicitante.String45YES
insuranceInfo[].refInfo[].applicantInfo[].orgInfo.additionalPhoneNum.cellPhoneCases[].Entities[].Applicants[].ApplicantDetails.WorkPhoneNumberNúmero de teléfono del trabajo del solicitante.Int7YES
insuranceInfo[].refInfo[].applicantInfo[].businessOcucupation.certcodeCases[].Entities[].Applicants[].ApplicantDetails.OccupationOcupación del solicitante.Int4YES
insuranceInfo[].refInfo[].applicantInfo[].question[]Cases[].Entities[].Applicants[].ApplicantDetails.InsurabilityStatement[]Preguntas sobre la información de la declaración de asegurabilidad del solicitante.ArrayYES
insuranceInfo[].refInfo[].applicantInfo[].question[].questionIdentCases[].Entities[].Applicants[].ApplicantDetails.InsurabilityStatement[].QuestionIdCódigo de la pregunta.Int2YES
insuranceInfo[].refInfo[].applicantInfo[].question[].answerCases[].Entities[].Applicants[].ApplicantDetails.InsurabilityStatement[].AnswerRespuesta TRUE - FALSE.BooleanTRUE/FALSEYES
insuranceInfo[].refInfo[].applicantInfo[].question[].descCases[].Entities[].Applicants[].ApplicantDetails.InsurabilityStatement[].CommentsSi existen observaciones.String200YES
> Example of Body to Request Successfull.

{
    "channel": {
        "sPname": "domain",
        "user": "admon"
    },
    "insuranceInfo": [
      {
        "desc": "GestionDeExamenesMedicos",
        "refInfo": [
          {
            "curAmt": {
                 "amt": 50000000
            },
            "cityId": "11001",
            "relationshipType": 1,
            "createdDt": "1967-02-26",
            "requestNumber": 1216827820,
            "submitOffice": {
              "branchId": "0166"
            },
            "trnSrcInfo": {
              "code": 6
            },
            "productType": "34VO",
            "flagAutom": true,
            "applicantInfo": [
              {
                "personName": {
                    "firstName": "DORA",
                    "middleName": "NELLY",
                    "lastName": "RESTREPO",
                    "secondLastName": "HERRERA"
                },
                "personInfo":{
                    "birthDt": "1967-02-26",
                    "gender": "1"
                },
                "govIssueIdent": {
                      "identSerialNum": 10003598,
                      "govIssueIdentType": "CC"
                },
                "applicantType": 1,
                "planRequested": "001",
                "orgInfo": {
                  "addr1": "KR 1 12 66",
                  "cityId": "81001",
                  "additionalPhoneNum": {
                    "cellPhone": 7403462
                  }
                },
                "contactInfo": {
                  "cellPhone": 3212587913,
                  "cityId": "11001",
                  "emailAddr": "s9m3b9o7@bancocajasocial.com",
                  "additionalPhoneNum": {
                    "cellPhone": 4296111
                  },
                  "addr1": "KR 22 06 32"
                },
                "profile": 0,
                "birthDt": "1967-02-26",
                "businessOcucupation": {
                  "certcode": "05"
                },
                "question": [
                    {
                      "questionIdent": 1,
                      "answer": true,
                      "desc": ""
                    },
                            {
                      "questionIdent": 2,
                      "answer": false,
                      "desc": ""
                    },
                            {
                      "questionIdent": 3,
                      "answer": false,
                      "desc": ""
                    },
                            {
                      "questionIdent": 4,
                      "answer": false,
                      "desc": ""
                    },
                            {
                      "questionIdent": 5,
                      "answer": false,
                      "desc": ""
                    }
                  ]
              }
            ]
          }
        ]
      }
    ]
  }

Response information:

CampoMAPPER (cs-visual-time-sapi)DESCRIPCIÓNTIPO
insuranceInfo.policyIdCaseIdNumero del casoString
insuranceInfo.trnSrcInfo.CodeBankSystemIdOrigen de la aplicación del banco.Int
insuranceInfo.requestNumberRequestIdNúmero de solicitud.Int
insuranceInfo.productTypeBankProductIdTipos de productos 3701 Vida Individual – 3703 Individual Deudor 34VD (colectivo).String
insuranceInfo.startDtTransactionTimesTampMarca de tiempo de la transacciónDate
insuranceInfo.responseType.valuecabeceraSalida.tipoRespuestaDevuelve el estado de la transaccionString
insuranceInfo.responseDetail.errorCodecabeceraSalida.respuestaError.codigoErrorDevuelve codigo de error encontradoString
insuranceInfo.responseDetail.errorDesccabeceraSalida.respuestaError.descripcionErrorDescripción del errorString
insuranceInfo.responseDetail.errorTypecabeceraSalida.respuestaError.tipoErrorTipo de error devueltoString
insuranceInfo.refInfo.spRefIdrespuestaSolicitudCaso.proceso.codigoCódigo del itemString
insuranceInfo.refInfo.validityTimerespuestaSolicitudCaso.proceso.numeroRadicadoDuración del procesoString
insuranceInfo.refInfo.statusDesccabeceraSalida.proceso.itemsTrabajo.itemTrabajo.estadoEstado del procesoString
insuranceInfo.refInfo.effDtcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.fechaEstimadaSolucionFecha en la cual se estima la soluciónString
insuranceInfo.refInfo.startDtcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.itemTrabajofechaIngresoFecha de ingreso de itemString
insuranceInfo.refInfo.applicantInfo.spRefIdcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.codigoCodigo perteneciente a la tareaString
insuranceInfo.refInfo.applicantInfo.amtcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.costoCosto asignado a la tareaString
insuranceInfo.refInfo.applicantInfo.desccabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.descripcionDescripción de la tareaString
insuranceInfo.refInfo.applicantInfo.validityPeriodcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.duracionEstimadaEstimacón de la duraciónString
insuranceInfo.refInfo.applicantInfo.orgInfo.desccabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.nombreNombre de la tarea asiganada Ejmplo. "CancelarCaso"String
insuranceInfo.refInfo.applicantInfo.orgInfo.desc2cabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.nombrePantallaNombre de la pantallaString
insuranceInfo.refInfo.applicantInfo.prioritycabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.prioridadPrioridad asignada a la tarea - "Normal"String
insuranceInfo.refInfo.applicantInfo.orgInfo.messagecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.textoAyudaTexto de apoyo para la ayudaString
insuranceInfo.refInfo.applicantInfo.orgInfo.refTypecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.tarea.tipoTipo de la tarea - "EventString
insuranceInfo.namecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.mensajesGuardados.entidadesEntidades correspondientes a un mensajeString
insuranceInfo.flagScreencabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.clasePantallaDefinición del Flujo de TrabajoString
insuranceInfo.applicantInfo.codecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.codigoCódigo del flujoString
insuranceInfo.applicantInfo.desccabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.descripcionDescripción del flujo de trabajoString
insuranceInfo.applicantInfo.startDtcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.fechaCreacionFecha de Creación del flujoString
insuranceInfo.applicantInfo.externalIdcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.llaveGlobalLlave Global del flujo de trabajo, identificador único de 35 caracteres alfanumericoString
insuranceInfo.applicantInfo.mainLocationcabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.localizacionPrincipalDeterminación del Flujo principal de trabajo. Para este caso "FIFO"String
insuranceInfo.applicantInfo.namecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.nombreNombre del flujo de trabajo - GestionDeExamenesMedicosString
insuranceInfo.applicantInfo.desc2cabeceraSalida.itemsTrabajo.itemTrabajo.flujoTrabajo.nombrePantallaIdentificador del nombre de la pantalla asignada al flujo de trabajo- "Gestión de exámenes médicos"String
insuranceInfo.applicantInfo.ordercabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.ordenPantallaOrden en el cual se asigna la pantallaString
insuranceInfo.applicantInfo.refTypecabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.tipoDescripción del tipo del flujo de trabajoString
insuranceInfo.applicantInfo.itemGeneric1cabeceraSalida.proceso.itemsTrabajo.itemTrabajo.flujoTrabajo.usoPatronRadicacionTipo de uso de patron de radicación - ProcessString

Response information:

> Example of Body to Response Successfull.
{
    "insuranceInfo": {
        "policyId": 23032220,
        "trnSrcInfo": {
            "code": "1"
        },
        "requestNumber": "14516",
        "productType": "3704",
        "transactionTimestamp": "2023-12-12T19:43:23.9152169-05:00",
        "responseType": {
            "value": "OK"
        },
        "responseDetail": {
            "errorCode": "",
            "errorDesc": "",
            "errorType": ""
        },
        "refInfo": {
            "spRefId": "3606690",
            "validityTime": "0",
            "statusDesc": "Inactive",
            "effDt": "2023-12-12T19:43:23.9152169-05:00",
            "startDt": "",
            "applicantInfo": {
                "spRefId": "160",
                "amt": "0",
                "desc": "",
                "validityPeriod": "0",
                "priority": "Normal",
                "orgInfo": {
                    "desc": "CancelarCaso",
                    "desc2": "nombrePantalla",
                    "message": "",
                    "refType": "Event"
                }
            }
        },
        "name": "",
        "flagScreen": "True",
        "applicantInfo": {
            "code": "1",
            "desc": "",
            "startDt": "2023-12-13T00:43:36.778Z",
            "externalId": "55f198d7-2ddf-4bdb-b1ad-c03d4b303fa",
            "mainLocation": "FIFO",
            "name": "GestionDeExamenesMedicos",
            "desc2": "Gestión de exámenes médicos",
            "order": "1",
            "refType": "",
            "itemGeneric1": "Process"
        }
    }
}
Response Error mapping
CampoDescripcionTipo
responseType.valueTipo de RespuestaString
responseDetail.errorCodeCódigo de Error. Ejemplo: “200”String
responseDetail.errorDescDescripción de Error Ejemplo: “Consulta Exitosa”String
responseDetail.errorTypeTipo de ErrorString
> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "00001",
    "errorDesc": "Error en la actualizacion",
    "errorType": "TPS"
  }
}

- [Life] Simulation :

Description: This service allows you to create a Life Insurance Simulation (xAPI)

Path: [ Method: POST ]

/policy-management/v1/life/simulation:

Request [] information:

[
product:
     productIdNumber (Required) : Contains information of product identifier eg. :
          24297 = Tu Ingreso Protegido
          27298 = Tu Ahorro Amigo
          31300    = AP Individual Banco Caja Socia
insuranceInfo:
     channel (Required) : Contains information of  Sale Channel Id , eg:
          101   = Directo
          102    = Consultores Neg. Institucional
          103    = Corredores
          104    = FVD Consumo
          105    = Agencias
          106    = Agentes
          107    = Hall Bancario
          108    = Telemercadeo
          109    = Corresponsal Individual
          110    = Medios Virtuales
          111    = Licitaciones
          112    = Afinidad
          113    = FVD Microfinanzas
          114    = Oficinas
          115    = Aplicación Móvil
          116    = Mercadeo Directo
          117    = Corresponsal Convenios
          118    = FVD Hipotecario
          119    = FVD Libranzas <br>
          120    = FVD Tarjeta de Crédito
          121    = Consultores Riesgos Laborales
     personName:
         birthDt (Required) : Contains information of insured's date of birth .

]

> Request example.

[
  {
    "product": {
      "productIdNumber": "24297"
    },
    "insuranceInfo": {
      "channel": "101",
      "personName": {
        "birthDt": "30-12-1990"
      }
    }
  },
  {
    "product": {
      "productIdNumber": "31300"
    },
    "insuranceInfo": {
      "channel": "109",
      "personName": {
        "birthDt": "25-10-1980"
      }
    }
  }
]

>Response information:

  responseDetail:
      errorCode: Contains information of Error code
      errorDesc: Contains information of Error description
      startDt:  Contains information of transaction timestamp
 insuranceInfo[]:
      product:
          productLine: Contains information of business line code
          productClass: Contains information of product identifier
          coverageId: Contains information of module code.
          desc:  Contains information of  module description.
          fee:
              totalInsurableValue: Contains information of total premium
          freq: Contains information of premium payment frequency code:
        1 = Anual
        2 = Semestral
        3 = Trimestral
        4 = Bimestral
        5 = Mensual
        6 = Único
        8 = Cuotas
        10000 = Indefinido
        7 = Diaria
      coverageInfo []:
          coverageId:  Contains information of coverage id
          desc:  Contains information of coverage description
          amt: Contains information of fixed amount insured
          fee:
              insuranPremiumValue: Contains information of fixed premium
          insuranPremiumValue: Contains information of Annual Premium Amount.

> Example of Body to Response Successfull.


{
  "responseDetail": {
    "errorCode": "",
    "errorDesc": "",
    "startDt": "2023-07-19T10:28:27.0131805-05:00"
  },
  "insuranceInfo": [
    {
      "product": {
        "productLine": 31,
        "productClass": 31300,
        "idItem": 1,
        "desc": "Plan 1 5 MM",
        "fee": {
          "totalInsurableValue": 200
        },
        "freq": 1
      },
      "coverageInfo": [
        {
          "coverageId": 1,
          "desc": "Muerte Accidental",
          "amt": 5000000.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 59880.0
        },
        {
          "coverageId": 2,
          "desc": "Incapacidad Total y Permanente Accidental",
          "amt": 0.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 0.0
        }
      ]
    },
    {
      "product": {
        "productLine": 31,
        "productClass": 31300,
        "idItem": 2,
        "desc": "Plan 2 10 MM",
        "fee": {
          "totalInsurableValue": 300
        },
        "freq": 2
      },
      "coverageInfo": [
        {
          "coverageId": 1,
          "desc": "Muerte Accidental",
          "amt": 10000000.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 83880.0
        },
        {
          "coverageId": 2,
          "desc": "Incapacidad Total y Permanente Accidental",
          "amt": 0.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 0.0
        }
      ]
    }
  ]
}

> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "",
    "errorDesc": "",
    "errorType": ""
  }
}

- [Life] Quote :

Description: This service allows you to create a Life Insurance Quote (xAPI)

Path: [ Method: POST ]

/policy-management/v1/life/quote:

Request [] information:

[

productIdnumber:
  Contains information of product code:
    24297     =  Tu Ingreso Protegido
    27298     =  Tu Ahorro Amigo
    31300     =  AP Individual Banco Caja Socia

freq:
    1  =  Anual
    2  =  Semestral
    3  =  Trimestral
    4  =  Bimestral
    5  =  Mensual
    6  =  Único
    8  =  Cuotas
    10000     =  Indefinido
    7  =  Diaria

channel
    101     =  Directo
    102     =  Consultores Neg. Institucional
    103     =  Corredores
    104     =  FVD Consumo
    105     =  Agencias
    106     =  Agentes
    107     =  Hall Bancario
    108     =  Telemercadeo
    109     =  Corresponsal Individual
    110     =  Medios Virtuales
    111     =  Licitaciones
    112     =  Afinidad
    113     =  FVD Microfinanzas
    114     =  Oficinas
    115     =  Aplicación Móvil
    116     =  Mercadeo Directo
    117     =  Corresponsal Convenios
    118     =  FVD Hipotecario
    119     =  FVD Libranzas
    120     =  FVD Tarjeta de Crédito
    121     =  Consultores Riesgos Laborales

cityId
    421      =  Bucaramanga principal
    1001    =  Dirección General
    2013    =  Ibagué
    2016    =  Bogotá
    2017    =  Yopal
    2018    =  Villavicencio
    2026    =  Neiva
    2029    =  Duitama
    3004    =  Barranquilla
    3014    =  Valledupar
    3015    =  Cartagena
    3023    =  Santa Marta
    4003    =  Medellín
    4006    =  Pereira
    4011    =  Manizales
    4021    =  Armenia
    4025    =  Montelibano
    4027    =  Montería
    5002    =  Cali
    5008    =  Buenaventura
    5019    =  Pasto
    5022    =  Popayán
    6005  =  Bucaramanga

coverageId
    1     =  24 24297 Plan 1 500K 4 Cuotas
    2     =  24 24297 Plan 2 700K 4 Cuotas
    3     =  24 24297 Plan 3 900K 4 Cuotas
    4     =  24 24297 Plan 4 1.2M 4 Cuotas
    5     =  24 24297 Plan 5 500K 6 Cuotas
    6     =  24 24297 Plan 6 700K 6 Cuotas
    7     =  24 24297 Plan 7 900K 6 Cuotas
    8     =  24 24297 Plan 8 1.2M 6 Cuotas
    1     =  24 24298 Plan 1 100K 6 Cuotas
    2     =  24 24298 Plan 2 200K 6 Cuotas
    3     =  24 24298 Plan 3 300K 6 Cuotas
    4     =  24 24298 Plan 4 400K 6 Cuotas
    1     =  31 31300 Plan 1 $5 MM
    2     =  31 31300 Plan 2 $10 MM
    3     =  31 31300 Plan 3 $5 MM Asist
    4     =  31 31300 Plan 4 $10 MM Asist
    5     =  31 31300 Plan 5 $25 MM
    6     =  31 31300 Plan 6 $50 MM
    7     =  31 31300 Plan 7 $25 MM Asist
    8     =  31 31300 Plan 8 $50 MM Asist
    9     =  31 31300 Plan 9 $75 MM
    10  =  31 31300 Plan 10 $100 MM
    11  =  31 31300 Plan 11 $75 MM Asist
    12  =  31 31300 Plan 12 $100 MM Asist
    13  =  31 31300 Plan 13 $125 MM
    14  =  31 31300 Plan 14 $150 MM
    15  =  31 31300 Plan 15 $125 MM Asist
    16  =  31 31300 Plan 16 $150 MM Asist

personType
    1     =  Persona Natural
    2     =  Empresa (Persona Jurídica)

govIssueIdentType
    1     =  N.I.T.
    2     =  Cédula de Ciudadanía
    3     =  Cédula de Extranjería
    4     =  Tarjeta de Identidad
    5     =  Pasaporte
    6     =  Registro Civil
    7     =  Registro Médico
    8     =  N.U.I.P.
    9     =  C.I.I.U.
    10  =  P.E.P
    11  =  Provisional
    12  =  Permiso Protección Temporal

Gender
    1     =  Femenino
    2     =  Masculino
    3     =  No informado

PhoneType
    1     =  Oficina
    2     =  Celular
    3     =  Fax
    4     =  Particular
    5     =  Otros
    6     =  Contacto

]

> Request example.

{
    "product": {
        "productIdNumber": 31300,
        "freq": 1
    },
    "entprAgreement": {
        "cityId": "6005"
    },
    "coverageInfo": {
        "coverageId": 1
    },
    "insuranceInfo": {
        "personType": 1,
        "channel": 101,
        "govIssueIdent": {
            "govIssueIdentType": 3,
            "identSerialNum": "300541"
        },
        "personName": {
            "lastName": "XXXXXXX",
            "secondLastName": "XXXXXXX",
            "firstName": "XXXXXXXXXX",
            "middleName": "XXXXXXXXXX",
            "thirdName": "XXXXXXXXXX",
            "fullName": "XXXXXXXXXX",
            "birthDt": "19-03-1970",
            "gender": 1
        },
        "contactInfo": [
            {
                "emailAddr": "TESTE@GMAIL.COM",
                "phoneNum": [
                    {
                        "phoneType": 4,
                        "phoneAreaCode": 55,
                        "phone": "11999999999"
                    },
                    {
                        "phoneType": 2,
                        "phoneAreaCode": 55,
                        "phone": "11999999999"
                    }
                ]
            }
        ],
        "coverageInfo": [
            {
                "coverageId": 1,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 3,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 3,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 3,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ],
        "additionalData": [
            {
                "coverageId": 1,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 3,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 3,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 1,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ],
        "listValidation": [
            {
                "coverageId": 1,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 3,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 3,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt":  501000,
                "rate": 2.9925,
                "ccAcctRec": {
                    "brand": 1,
                    "rate": 5,
                    "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ]
    },

    "identVerifyEntity": [
        {
            "idItem": 100391531,
            "rate": 50,
            "order": 1
        },
        {
            "idItem": 100150827,
            "rate": 50,
            "order": 1
        }
    ],
    "additionalData": [
        {
            "key": "SecondName",
            "value": "Pedro"
        }
    ]
}

>Response information:

  pmtReferences:
    pmtAuthId: Contains information of pmtAuthId
  responseDetail:
    errorCode: Contains information of Error code
    errorDesc: Contains information of Error description
    startDt:  Contains information of transaction timestamp
 insuranceInfo:
    coverageInfo[]:
      coverageId: Contains information of coverageId
      validityPeriod: Contains information of validityPeriod
      validityTime: Contains information of validityTime
      amt: Contains information of amt
      rate: Contains information of rate
      ccAcctRec:
        brand: Contains information of brand
        rate: Contains information of rate
        amt: Contains information of amt
      insuranPremiumValue: Contains information of insuranPremiumValue
      desc: Contains information of desc
      additionalData:
        type: Contains information of type
        amt: Contains information of amt
 invoicePremium:
    fee:
      totalInsurableValue: Contains information of Net premium
      amt: Contains information of amt
    billId: Contains information of billId
    insuranPremiumValue: Contains information of premium

> Example of Body to Response Successfull.


{
    "pmtReferences": {
        "pmtAuthId": 0
    },
    "responseDetail": {
        "errorCode": "",
        "errorDesc": "",
        "startDt": ""
    },
    "insuranceInfo": {
        "coverageInfo": [
            {
                "coverageId": 0,
                "validityPeriod": 0,
                "validityTime": 0,
                "amt": 0.0,
                "rate": 0.0,
                "ccAcctRec": {
                    "brand": 0,
                    "rate": 0.0,
                    "amt": 0.0
                },
                "insuranPremiumValue": 0,
                "desc": "",
                "additionalData": [
                    {
                        "type": 0,
                        "amt": 0.0
                    }
                ]
            }
        ]
    },
    "invoicePremium": {
        "fee": {
            "totalInsurableValue": 0.0,
            "amt": 0.0
        },
        "billId": 0,
        "insuranPremiumValue": 0.0
    }
}
> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "",
    "errorDesc": "",
    "errorType": ""
  }
}

...


- [Life] issuing :

Description: This service allows you to create a Life Insurance issuing

Path: [ Method: POST ]

/policy-management/v1/life/issuing:

Request [] information:

 product:
     productIdNumber(Required) : Contains information of product identifier:
            24297 =  Tu Ingreso Protegido
            27298 =  Tu Ahorro Amigo
            3130  =  AP Individual Banco Caja Socia
    freq(Required) :  Contains information of product identifier:
          1 =  Anual
          2 =  Semestral
          3    = Trimestral
          4    = Bimestral
          5    = Mensual
          6    = Único
          8    = Cuotas
          10000    = Indefinido
          7    = Diaria
 entprAgreement:
     cityId(Required) : Contains information of city identifier:
          421        Bucaramanga principal
          1001    Dirección General
          2013    Ibagué
          2016    Bogotá
          2017    Yopal
          2018    Villavicencio
          2026    Neiva
          2029    Duitama
          3004    Barranquilla
          3014    Valledupar
          3015    Cartagena
          3023    Santa Marta
          4003    Medellín
          4006    Pereira
          4011    Manizales
          4021    Armenia
          4025    Montelibano
          4027    Montería
          5002    Cali
          5008    Buenaventura
          5019    Pasto
          5022    Popayán
          6005    Bucaramanga
 pmtReferences:
        pmtAuthId (Required) : Quote code, take the value that the quote returns
        pmtType (Required) : pay method
coverageInfo:
        coverageId (Required) :  Coverage module identifier :
                  24    24297    1    Plan 1 500K 4 Cuotas
                  24    24297    2    Plan 2 700K 4 Cuotas
                  24    24297    3    Plan 3 900K 4 Cuotas
                  24    24297    4    Plan 4 1.2M 4 Cuotas
                  24    24297    5    Plan 5 500K 6 Cuotas
                  24    24297    6    Plan 6 700K 6 Cuotas
                  24    24297    7    Plan 7 900K 6 Cuotas
                  24    24297    8    Plan 8 1.2M 6 Cuotas
                  24    24298    1    Plan 1 100K 6 Cuotas
                  24    24298    2    Plan 2 200K 6 Cuotas
                  24    24298    3    Plan 3 300K 6 Cuotas
                  24    24298    4    Plan 4 400K 6 Cuotas
                  31    31300    1    Plan 1 $5 MM
                  31    31300    2    Plan 2 $10 MM
                  31    31300    3    Plan 3 $5 MM Asist
                  31    31300    4    Plan 4 $10 MM Asist
                  31    31300    5    Plan 5 $25 MM
                  31    31300    6    Plan 6 $50 MM
                  31    31300    7    Plan 7 $25 MM Asist
                  31    31300    8    Plan 8 $50 MM Asist
                  31    31300    9    Plan 9 $75 MM
                  31    31300    10    Plan 10 $100 MM
                  31    31300    11    Plan 11 $75 MM Asist
                  31    31300    12    Plan 12 $100 MM Asist
                  31    31300    13    Plan 13 $125 MM
                  31    31300    14    Plan 14 $150 MM
                  31    31300    15    Plan 15 $125 MM Asist
                  31    31300    16    Plan 16 $150 MM Asist "
personInfo:
    personType (Required): Person type code.
    govIssueIdentType (Required) :
              Identification document type code
              1    N.I.T.
              2    Cédula de Ciudadanía
              3    Cédula de Extranjería
              4    Tarjeta de Identidad
              5    Pasaporte
              6    Registro Civil
              7    Registro Médico
              8    N.U.I.P.
              9    C.I.I.U.
              10 P.E.P
              11 Provisional
              12 Permiso Protección Temporal
   identSerialNum (Required):  identification number
   lastName: last name
   secondLastName: second surname
   firstName: first name
   middleName: middle name
   thirdName: tercer Nombre
   fullName: fullname
   birthDt: date of birth DD-MM-YYYY
   gender: gender
   country: nationality
   contactInfo: contact informaction
    postAddr: array address
     addr1: customer address
     floor: floor number
     stateProv: department code
     cityId: city code
     neighborhood: municipality code
     postalCode: ZIP code
     emailAddr: email addres
     phoneNum: array phones
      phoneType: type of phone
      phoneAreaCode(Required): country code corresponding to the telephone number
      phone(Required): Country code corresponding to the phone number
   ccAcctRec: Credit card information in case the payment method is through it
          code (Required):     Bank code
                1    Banco De Bogotá
                2    Banco Popular
                6    Banco Itau Corpbanca Colombia
                7    Bancolombia S.A.
                8    Scotiabank S.A.
                9    Citibank Colombia
                12    Banco Gnb Sudameris Colombia
                13    Bbva Colombia <br>
                19    Red Multibanca Colpatria S.A.
                23    Banco De Occidente
                32    Banco Caja Social
                40    Banco Agrario De Colombia S.A.
                51    Banco Davivienda S.A.
                52    Banco Av Villas
                53    Banco W S.A.
                58    Banco Procredit
                60    Banco Pichincha S.A.
                61    Bancoomeva <br>
                62    Banco Falabella S.A.
                65    Banco Santander S.A.
                507    Nequi <br>
                558 BANCO CREDIFINANCIERA S.A.
         cardType:  Card type code :
              1    Visa
              2    Mastercard
              3    Magna
              4    Diners
              5    American Express
         acctId: Card number
         expDt: Credit card expiration date
         token: Token management
         dayofDebitMonthly: Day for automatic debit
         pmtMethod: Bank account information in case the payment method is through an account
     depAcctId:
          bankId:    Bank code
                1    Banco De Bogotá
                2    Banco Popular
                6    Banco Itau Corpbanca Colombia
                7    Bancolombia S.A.
                8    Scotiabank S.A.
                9    Citibank Colombia
                12    Banco Gnb Sudameris Colombia
                13    Bbva Colombia <br>
                19    Red Multibanca Colpatria S.A.
                23    Banco De Occidente
                32    Banco Caja Social
                40    Banco Agrario De Colombia S.A.
                51    Banco Davivienda S.A.
                52    Banco Av Villas
                53    Banco W S.A.
                58    Banco Procredit
                60    Banco Pichincha S.A.
                61    Bancoomeva <br>
                62    Banco Falabella S.A.
                65    Banco Santander S.A.
                507    Nequi <br>
                558 BANCO CREDIFINANCIERA S.A.
          acctType: Card type code:
                            1   Visa
                            2    Mastercard
                            3    Magna
                            4    Diners
                            5    American Express

         acctId: Card number
        dayofDebitMonthly: Credit card expiration date
        pmtMethod: Bank direct debit type. Default value

insuranceInfo:

    coverageInfo:
      coverageId: Insurance policy code
      role: Customer role, used in personal insurance lines
      validityPeriod: Type of insurance duration, used in personal insurance lines
      validityTime: Policy duration
      amt: Coverage insured amount, used in personal insurance lines
      rate: Rate (per mille) applied to the insured amount of the coverage to determine the annual premium to be charged for the coverage
      ccAcctRec:
        brand: Indicator of deductible or excess when coverage allows variation. Possible values according to table 64
        rate: Percentage of deductible/excess to be applied when the coverage allows variation
        amt: Fixed amount of deductible or excess when the coverage allows variation
     insuranPremiumValue: Annual premium amount of the coverage
     desc: Description of the coverage

    additionalData:
      coverageId: Insurance policy code
      role: Customer role, used in personal insurance lines
      validityPeriod: Type of insurance duration, used in personal insurance lines
      validityTime: Policy duration
      amt: Coverage insured amount, used in personal insurance lines
      rate: Rate (per mille) applied to the insured amount of the coverage to determine the annual premium to be charged for the coverage
      ccAcctRec:
        brand: Indicator of deductible or excess when coverage allows variation. Possible values according to table 64
        rate: Percentage of deductible/excess to be applied when the coverage allows variation
        amt: Fixed amount of deductible or excess when the coverage allows variation
     insuranPremiumValue: Annual premium amount of the coverage
     desc: Description of the coverage

   listValidation:
      coverageId: Insurance policy code
      role: Customer role, used in personal insurance lines
      validityPeriod: Type of insurance duration, used in personal insurance lines
      validityTime: Policy duration
      amt: Coverage insured amount, used in personal insurance lines
      rate: Rate (per mille) applied to the insured amount of the coverage to determine the annual premium to be charged for the coverage
      ccAcctRec:
        brand: Indicator of deductible or excess when coverage allows variation. Possible values according to table 64
        rate: Percentage of deductible/excess to be applied when the coverage allows variation
        amt: Fixed amount of deductible or excess when the coverage allows variation
     insuranPremiumValue: Annual premium amount of the coverage
     desc: Description of the coverage


identVerifyEntity: Basic capital code
 idItem: Producer Code
 rate: Insurable basic capital value
 order: Percentage of basic capital to be insured

additionalData:
  key: key for added value
  value: added value



request :


 {
    "product": {
        "productIdNumber": "24297",
        "freq": "1"
    },
    "entprAgreement": {
        "cityId": "421"
    },
    "pmtReferences": {
        "pmtAuthId" : "1",
                "pmtType": "1"
    },
       "coverageInfo":{
                  "coverageId": "1"
        },
    "personInfo": {
        "personType": "4",
        "govIssueIdentType": "12",
        "identSerialNum": "55444111",
        "lastName": "XXXXXXX",
        "secondLastName": "XXXXXXX",
        "firstName": "XXXXXXXXXX",
        "middleName": "XXXXXXXXXX",
        "thirdName": "XXXXXXXXXX",
        "fullName": "XXXXXXXXXX",
        "birthDt": "2022-12-11",
        "gender": "1",
        "country": "28",
        "contactInfo" :{
          "postAddr": [
            {
                "addr1": "Calle 4",
                "floor": "414",
                "stateProv": "35",
                "cityId": "38041",
                 "neighborhood": "38041",
                "postalCode": "04011031",
                "phoneNum": [
                            {
                           "phoneType": "4",
                           "phoneAreaCode": "55",
                           "phone": "11999999999"
                             },
                           {
                        "phoneType": "2",
                       "phoneAreaCode": "55",
                        "phone": "11999999999"
                       }
                ]
            }

           ]
         },
         "ccAcctRec": [
                  {
                 "code": "65",
                 "cardType": "3",
                 "acctId": "696369321563",
                 "expDt": "02/26",
                 "token": "6as5df-6d5f4ga-as5df-as5d4d4d",
                 "dayofDebitMonthly": 31,
                  "pmtMethod": "2"
                   }
         ],
      "depAcctId": [
           {
            "bankId": "558",
            "acctType": "2",
            "acctId": "696369321563",
            "dayofDebitMonthly": 3,
            "pmtMethod": "2"
           }
        ]
    },
    "insuranceInfo": {

        "coverageInfo": [
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ],
        "additionalData": [
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ],
        "listValidation": [
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            },
            {
                "coverageId": 1,
                "role": 2,
                "validityPeriod": 100,
                "validityTime": 100,
                "amt": 501000,
                "rate": 2.9925,
                "ccAcctRec": {
                      "brand": 3,
                      "rate": 5,
                      "amt": 25000
                },
                "insuranPremiumValue": 152200,
                "desc": "XXXXXXXXXXXXX"
            }
        ]

    },
      "beneficiary": [
         {
        "personInfo": {
            "personType": "4",
            "govIssueIdentType": "12",
            "identSerialNum": "55444111",
            "lastName": "XXXXXXX",
            "secondLastName": "XXXXXXX",
            "firstName": "XXXXXXXXXX",
            "middleName": "XXXXXXXXXX",
            "thirdName": "XXXXXXXXXX",
            "fullName": "XXXXXXXXXX",
            "rate": "100",
            "relationshipType": "5000",
            "birthDt": "2022-12-11",
                "gender": "1"
            }
        }

    ],
    "identVerifyEntity": [
        {
            "idItem": 100391531 ,
            "rate": 50,
            "order": 1
        },
        {
            "idItem": 100391531 ,
            "rate": 50,
            "order": 1
        }
    ],
    "additionalData": [
                {
                      "key": "SecondName",
                      "value": "Pedro"
                          }
            ]
}

Response information:

  responseDetail:
      errorCode: Contains information of Error code
      errorDesc: Contains information of Error description
      startDt:  Contains information of transaction timestamp

 insuranceInfo{}:
      cSpRefId: Origen del cobro
      trnRquId: Numero de cobro
      operationType: billType
      effDt: fecha ini
      endDt: fecha fin
      insuranPremiumValue: Suma Asegurada de la cobertura
      fee:
       amt: Impuestos
     rate: Comision
     policyId: Numero de poliza
     certCode: Certificado
     forExRateInqRq:
        depAcctId: Numero de cotizacion

> Example of Body to Response Successfull.


{
    "insuranceInfo":{
        "cSpRefId": "Emisión",
        "trnRquId":"37330",
        "operationType":"Cobro" ,
        "effDt":"2022-12-11",
        "endDt":"2022-12-11",
        "insuranPremiumValue":90998.136986,
        "fee":{
            "amt": 90998.136986
        },
        "rate":90998.136986,
        "policyId": "960",
        "certCode":  "21344545",
        "forExRateInqRq": {
            "depAcctId":"960"
        }
    }
}



- [Life] certificate:

Description: This service allows you to create a Life certificate pdf

Path: [ Method: POST ]

/policy-management/v1/life/certificate:

Request [] information:

 product:
     productIdNumber(Required) : Contains information of product identifier:
            24297 =  Tu Ingreso Protegido
            27298 =  Tu Ahorro Amigo
            3130  =  AP Individual Banco Caja Socia

  insuranceInfo:
     policyId (Required) :Number identifying the Policy/Quotation/Application
     effDt: Effective Date of The Policy/Certificate Formato string AAAA-MM-DD.
     certCode: Number identifying the certificate.

request :


{
    "product": {
      "productIdnumber": "31300"
    },
    "insuranceInfo": {
       "policyId": 45878,
         "effDt": "2023-08-24",
         "certCode": 123444
    }
  }

Response information:

  responseDetail:
      errorCode: Contains information of Error code
      errorDesc: Contains information of Error description


 insuranceInfo{}:
      binData: Certificate document in base64

> Example of Body to Response Successfull.


{
  {
  "responseDetail": {
     "errorCode": "",
     "errorDesc": ""
  },
  "insuranceInfo":  {

"binData":"JVBERi0xLjMNCiX/gfCwDQoxIDAgb2JqIA0KPDwgL1R5cGUgL0NhdGFsb2cNCi9QYWdlcyAyIDAgUg0KPj4NCmVuZG9iag0KMiAwIG9iaiAN
    Cjw8IC9UeXBlIC9QYWdlcw0KL0NvdW50IDENCi9LaWRzIFs"

  }

}

- Simulation [General] :

Path: [POST]/policy-management/v1/general/simulation

Description: Post xAPI insurance create simulation general for Life ,card-protection ,home/fire Insurance, for consult products :

Product Codes table :

product.productIdNumber (ProductCode)Description(Descripcion)productIdent
24297Tu Ingreso ProtegidoproductIdent=1
24298Tu Ahorro Amigo (Protección de ahorro)productIdent=1
31300Accidentes Personales, Individual Banco Caja SocialproductIdent=1
34299Vida protegida (Vida con enfermedades graves)productIdent=1
69308Tarjeta protegida IndividualproductIdent=2
67307Hogar ResidencialproductIdent=3

** Mapping Request/Response detailed ,located in [POST] /policy-management/v1/general/simulation :

resources/image-d3643de3-04ed-4fd7-9482-32076cc33d41.png

> Request body example (for productIdent=1 ) :

   {
    "productIdent" : "1",
    "product": {
      "productIdNumber": "31300",
      "freq":"1"
    },
    "insuranceInfo": {
      "channel": "101",
      "personName": {
        "birthDt": "30-12-1993"
      }
    }
  }

> Request body example (for productIdent=2 ) :

  {
    "productIdent" : "2",
    "product": {
      "productIdNumber": "69308",
      "freq":"1"
    },
    "insuranceInfo": {
      "channel": "101",
      "personName": {
        "birthDt": "30-12-1990"
      }
    },
    "additionalData": [
        {
            "key": "SecondName",
            "value": "Pedro"
        }
    ]
  }

> Request body example (for productIdent=3 ) :

{
  "productIdent": "3",
  "product": {
    "productIdNumber": "307",
    "freq": "1"
  },
  "insuranceInfo": {
    "channel": "101",
    "capitalization": [
      {
        "capitalizationAcctId": "2",
        "capitalizationAcctAm": "2",
        "rate": 100,
        "amt": 195000000
      }
    ],
    "riskInfo": {
      "postAddr": [
        {
          "addr1": "AVENIDA BRASIL",
          "floor": "1",
          "stateProv": "52",
          "cityId": "52835",
          "neighborhood": "5438",
          "postalCode": "01101"
        }
      ],
      "additionalData": {
        "idItem": "1",
        "areaType": "1",
        "socialClass": "1",
        "useType": "1",
        "type": "2",
        "year": "1993",
        "floor": "1",
        "desc": "Orange House",
        "housingType": "3"
      }
    }
  }
}

> Example of Body to Response Successfull.


{
  "responseDetail": {
    "errorCode": "",
    "errorDesc": "",
    "startDt": "2023-07-19T10:28:27.0131805-05:00"
  },
  "insuranceInfo": [
    {
      "product": {
        "productLine": 31,
        "productClass": 31300,
        "idItem": 1,
        "desc": "Plan 1 5 MM",
        "fee": {
          "totalInsurableValue": 200
        },
        "freq": 1
      },
      "coverageInfo": [
        {
          "coverageId": 1,
          "desc": "Muerte Accidental",
          "amt": 5000000.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 59880.0
        },
        {
          "coverageId": 2,
          "desc": "Incapacidad Total y Permanente Accidental",
          "amt": 0.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 0.0
        }
      ]
    },
    {
      "product": {
        "productLine": 31,
        "productClass": 31300,
        "idItem": 2,
        "desc": "Plan 2 10 MM",
        "fee": {
          "totalInsurableValue": 300
        },
        "freq": 2
      },
      "coverageInfo": [
        {
          "coverageId": 1,
          "desc": "Muerte Accidental",
          "amt": 10000000.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 83880.0
        },
        {
          "coverageId": 2,
          "desc": "Incapacidad Total y Permanente Accidental",
          "amt": 0.0,
          "fee": {
            "insuranPremiumValue": 0.0
          },
          "insuranPremiumValue": 0.0
        }
      ]
    }
  ]
}

####

> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ERR400"
  },
  "responseDetail": {
    "errorCode": 400,
    "errorDesc": "Payload not found",
    "errorType": "Bad Request"
  }
}

- Quote [General] :

Path: [POST]/policy-management/v1/general/quote

Description: This service allows you to create a Post xAPI insurance create quote general for Life ,card-protection ,home/fire Insurance.General Quote(xAPI) , for consult products :

Product Codes table :

product.productIdNumber (ProductCode)Description(Descripcion)productIdent
24297Tu Ingreso ProtegidoproductIdent=1
24298Tu Ahorro Amigo (Protección de ahorro)productIdent=1
31300Accidentes Personales, Individual Banco Caja SocialproductIdent=1
34299Vida protegida (Vida con enfermedades graves)productIdent=1
69308Tarjeta protegida IndividualproductIdent=2
67307Hogar ResidencialproductIdent=3

** Mapping Request/Response detailed ,located in [POST] /policy-management/v1/general/quote:

resources/image-d2c3c76b-949b-4ce1-9d00-c844a7c2adde.png

> Request body example (for productIdent=1 ) :

{
  "productIdent": "1",
  "product": {
    "productIdNumber": 34299,
    "freq": 1
  },
  "entprAgreement": {
    "cityId": "2013"
  },
  "coverageInfo": {
    "coverageId": 1
  },
  "insuranceInfo": {
    "personType": 1,
    "channel": 101,
    "govIssueIdent": {
      "govIssueIdentType": 2,
      "identSerialNum": "10229896891"
    },
    "personName": {
      "lastName": "XXXXXXX",
      "secondLastName": "XXXXXXX",
      "firstName": "XXXXXXXXXX",
      "middleName": "XXXXXXXXXX",
      "thirdName": "XXXXXXXXXX",
      "fullName": "XXXXXXXXXX",
      "birthDt": "19-03-1970",
      "gender": 1,
      "country": "0",
      "maritalStatus": "1"
    },
    "contactInfo": [
      {
        "emailAddr": "TESTE@GMAIL.COM",
        "phoneNum": [
          {
            "phoneType": 4,
            "phoneAreaCode": 55,
            "phone": "11999999999"
          }
        ]
      }
    ],
    "coverageInfo": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "additionalData": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "listValidation": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ]
  },
  "identVerifyEntity": [
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    }
  ],
  "additionalData": [
    {
      "key": "SecondName",
      "value": "Pedro"
    }
  ]
}

> Request body example (for productIdent=2 ) :

   {
  "productIdent": "2",
  "product": {
    "productIdNumber": 31300,
    "freq": 1,
    "productLine": 10
  },
  "entprAgreement": {
    "cityId": "6005"
  },
  "coverageInfo": {
    "coverageId": 1
  },
  "insuranceInfo": {
    "personType": 1,
    "channel": 101,
    "govIssueIdent": {
      "govIssueIdentType": 3,
      "identSerialNum": "300541"
    },
    "personName": {
      "lastName": "XXXXXXX",
      "secondLastName": "XXXXXXX",
      "firstName": "XXXXXXXXXX",
      "middleName": "XXXXXXXXXX",
      "thirdName": "XXXXXXXXXX",
      "fullName": "XXXXXXXXXX",
      "birthDt": "19-03-1970",
      "gender": 1,
      "country": "0",
      "maritalStatus": "1"
    },
    "contactInfo": [
      {
        "emailAddr": "TESTE@GMAIL.COM",
        "phoneNum": [
          {
            "phoneType": 4,
            "phoneAreaCode": 55,
            "phone": "11999999999"
          }
        ]
      }
    ],
    "coverageInfo": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "additionalData": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "listValidation": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ]
  },
  "identVerifyEntity": [
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    }
  ],
  "additionalData": [
    {
      "key": "SecondName",
      "value": "Pedro"
    }
  ]
}

###

> Request body example (for productIdent=3 ) :

   {
  "productIdent": "3",
  "product": {
    "productIdNumber": 307,
    "freq": 1
  },
  "entprAgreement": {
    "cityId": "1"
  },
  "coverageInfo": {
    "coverageId": 1
  },
  "insuranceInfo": {
    "channel": 101,
    "capitalization": [
      {
        "capitalizationAcctId": "2",
        "capitalizationAcctAm": "2",
        "rate": 100,
        "amt": 195000000
      }
    ],
    "riskInfo": {
      "postAddr": [
        {
          "addr1": "AVENIDA BRASIL",
          "floor": "1",
          "stateProv": "52",
          "cityId": "52835",
          "neighborhood": "5438",
          "postalCode": "01101"
        }
      ],
      "additionalData": {
        "idItem": "1",
        "areaType": "1",
        "socialClass": "1",
        "useType": "1",
        "type": "2",
        "year": "1993",
        "floor": "1",
        "desc": "Orange House",
        "housingType": "3"
      }
    },
    "personType": 1,
    "govIssueIdent": {
      "govIssueIdentType": 3,
      "identSerialNum": "300541"
    },
    "personName": {
      "issDt": "2022-12-11",
      "lastName": "XXXXXXX",
      "secondLastName": "XXXXXXX",
      "firstName": "XXXXXXXXXX",
      "middleName": "XXXXXXXXXX",
      "thirdName": "XXXXXXXXXX",
      "fullName": "XXXXXXXXXX",
      "birthDt": "1970-03-19",
      "gender": 1,
      "country": "0",
      "maritalStatus": "1"
    },
    "stipend":{
      "contractType": 12,
      "rate": 5,
      "amt": 0
    },
    "contactInfo": [
      {
        "emailAddr": "TESTE@GMAIL.COM",
        "phoneNum": [
          {
            "phoneType": 4,
            "phoneAreaCode": 55,
            "phone": "11999999999"
          }
        ]
      }
    ],
    "coverageInfo": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "additionalData": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "listValidation": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ]
  },
  "identVerifyEntity": [
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    }
  ],
  "additionalData": [
    {
      "key": "SecondName",
      "value": "Pedro"
    }
  ]
}

###

> Example of Body to Response Successfull.


{
  "pmtReferences": {
    "pmtAuthId": 1221
  },
  "responseDetail": {
    "errorCode": "",
    "errorDesc": "",
    "startDt": "2023-06-06T16:27:14.2168106-05:00"
  },
  "insuranceInfo": {
    "coverageInfo": [
      {
        "coverageId": 1,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX",
        "additionalData": {
          "type": 1,
          "amt": 12683
        }
      }
    ]
  },
  "invoicePremium": {
    "fee": {
      "totalInsurableValue": 27775,
      "amt": 2409
    },
    "billId": 1111,
    "insuranPremiumValue": 25366
  },
  "product": {
    "idItem": 1,
    "desc": "XXXXXXXXXXXXX",
    "freq": 1
  }
}

####

> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ERR400"
  },
  "responseDetail": {
    "errorCode": 400,
    "errorDesc": "Payload not found",
    "errorType": "Bad Request"
  }
}

- Issuing [General] :

Path: [POST]/policy-management/v1/general/issuing

Description: Post xAPI insurance create issuing general for Life ,card-protection ,home/fire Insurance , for consult products :

Product Codes table :

product.productIdNumber (ProductCode)Description(Descripcion)productIdent
24297Tu Ingreso ProtegidoproductIdent=1
24298Tu Ahorro Amigo (Protección de ahorro)productIdent=1
31300Accidentes Personales, Individual Banco Caja SocialproductIdent=1
34299Vida protegida (Vida con enfermedades graves)productIdent=1
69308Tarjeta protegida IndividualproductIdent=2
67307Hogar ResidencialproductIdent=3

** Mapping Request/Response detailed ,located in [POST] /policy-management/v1/general/issuing:

###

resources/image-5a5bc8a3-5cef-4d71-8c82-e4c1e4a86c07.png

> Request body example (for productIdent=1 ) :

{
  "productIdent": "1",
  "product": {
    "productIdNumber": "31300",
    "freq": "5",
    "channel": 101
  },
  "entprAgreement": {
    "cityId": "106"
  },
  "pmtReferences": {
    "pmtAuthId": "2507",
    "pmtType": "2"
  },
  "coverageInfo": {
    "coverageId": "8"
  },
  "personInfo": {
    "personType": "1",
    "govIssueIdentType": "2",
    "identSerialNum": "44458129653",
    "lastName": "SUAREZ",
    "firstName": "ANGELICA",
    "fullName": "ANGELICA SUAREZ",
    "birthDt": "1979-03-21",
    "gender": "2",
    "maritalStatus": "1",
    "country": "0",
    "contactInfo": {
      "postAddr": [
        {
          "addr1": "CL 78 45 12",
          "cityId": "11001",
          "emailAddr": "r0s5s0u5@bancocajasocial.com",
          "phoneNum": [
            {
              "phoneType": "6",
              "phoneAreaCode": "57",
              "phone": "3002222222"
            }
          ]
        }
      ]
    },
    "ccAcctRec": [
      {
        "code": "32",
        "cardType": "1",
        "acctId": "4704371043791074",
        "expDt": "12/24"
      }
    ]
  },
  "beneficiary": [
    {
      "personInfo": {
        "personType": "1",
        "govIssueIdentType": "2",
        "identSerialNum": "52433530",
        "lastName": "SUAREZ",
        "firstName": "FERNANDO",
        "fullName": "FERNANDO SUAREZ",
        "rate": "50",
        "relationshipType": "3"
      }
    },
    {
      "personInfo": {
        "personType": "1",
        "govIssueIdentType": "4",
        "identSerialNum": "456456",
        "lastName": "SUAREZ",
        "firstName": "FERNANDO",
        "fullName": "FERNANDO SUAREZ",
        "rate": "50",
        "relationshipType": "3"
      }
    }
  ],
  "additionalData": [
    {
      "key": "AUDH1V7G",
      "value": "Harol Villareal"
    }
  ]
}

> Request body example (for productIdent=2 ) :


{
  "productIdent": "2",
  "product": {
    "productIdNumber": "69308",
    "freq": "1",
    "channel": 101
  },
  "entprAgreement": {
    "cityId": "421"
  },
  "pmtReferences": {
    "pmtAuthId": "1",
    "pmtType": "1"
  },
  "coverageInfo": {
    "coverageId": "1"
  },
  "personInfo": {
    "personType": "4",
    "govIssueIdentType": "12",
    "identSerialNum": "55444111",
    "issDt": "2022-12-11",
    "lastName": "XXXXXXX",
    "secondLastName": "XXXXXXX",
    "firstName": "XXXXXXXXXX",
    "middleName": "XXXXXXXXXX",
    "thirdName": "XXXXXXXXXX",
    "fullName": "XXXXXXXXXX",
    "birthDt": "2022-12-11",
    "gender": "1",
    "country": "0",
    "maritalStatus": "1",
    "contactInfo": {
      "postAddr": [
        {
          "addr1": "Calle 4",
          "floor": "414",
          "stateProv": "35",
          "cityId": "38041",
          "neighborhood": "38041",
          "postalCode": "04011031",
          "emailAddr": "TESTE@GMAIL.COM",
          "phoneNum": [
            {
              "phoneType": "4",
              "phoneAreaCode": "55",
              "phone": "11999999999"
            },
            {
              "phoneType": "2",
              "phoneAreaCode": "55",
              "phone": "11999999999"
            }
          ]
        }
      ]
    },
    "ccAcctRec": [
      {
        "code": "65",
        "cardType": "3",
        "acctId": "696369321563",
        "expDt": "02/26",
        "token": "6as5df-6d5f4ga-as5df-as5d4d4d",
        "dayofDebitMonthly": 31,
        "pmtMethod": "2"
      }
    ],
    "depAcctId": [
      {
        "bankId": "558",
        "acctType": "2",
        "acctId": "696369321563",
        "dayofDebitMonthly": 3,
        "pmtMethod": "2"
      }
    ]
  },
  "insuranceInfo": {
    "coverageInfo": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "additionalData": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "listValidation": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ]
  },
  "beneficiary": [
    {
      "personInfo": {
        "personType": "4",
        "govIssueIdentType": "12",
        "identSerialNum": "55444111",
        "lastName": "XXXXXXX",
        "secondLastName": "XXXXXXX",
        "firstName": "XXXXXXXXXX",
        "middleName": "XXXXXXXXXX",
        "thirdName": "XXXXXXXXXX",
        "fullName": "XXXXXXXXXX",
        "rate": "100",
        "relationshipType": "5000",
        "birthDt": "2022-12-11",
        "gender": "1"
      }
    }
  ],
  "identVerifyEntity": [
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    },
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    }
  ],
  "additionalData": [
    {
      "key": "SecondName",
      "value": "Pedro"
    }
  ]
}

###

> Request body example (for productIdent=3) :


  {
  "productIdent": "3",
  "product": {
    "productIdNumber": "307",
    "freq": "1",
    "channel": 101
  },
  "entprAgreement": {
    "cityId": "421"
  },
  "pmtReferences": {
    "pmtAuthId": "1",
    "pmtType": "1"
  },
  "coverageInfo": {
    "coverageId": "1"
  },
  "insuranceInfo": {
    "capitalization": [
      {
        "capitalizationAcctId": "2",
        "capitalizationAcctAm": "2",
        "rate": 100,
        "amt": 195000000
      }
    ],
    "riskInfo": {
      "postAddr": [
        {
          "addr1": "AVENIDA BRASIL",
          "floor": "1",
          "stateProv": "52",
          "cityId": "52835",
          "neighborhood": "5438",
          "postalCode": "01101"
        }
      ],
      "additionalData": {
        "idItem": "1",
        "areaType": "1",
        "socialClass": "1",
        "useType": "1",
        "type": "2",
        "year": "1993",
        "floor": "1",
        "desc": "Orange House",
        "housingType": "3"
      }
    },
    "coverageInfo": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "additionalData": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ],
    "listValidation": [
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      },
      {
        "coverageId": 1,
        "role": 2,
        "validityPeriod": 100,
        "validityTime": 100,
        "amt": 501000,
        "rate": 2.9925,
        "ccAcctRec": {
          "brand": 3,
          "rate": 5,
          "amt": 25000
        },
        "insuranPremiumValue": 152200,
        "desc": "XXXXXXXXXXXXX"
      }
    ]
  },
  "personInfo": {
    "personType": "4",
    "govIssueIdentType": "12",
    "identSerialNum": "55444111",
    "issDt": "2022-12-11",
    "lastName": "XXXXXXX",
    "secondLastName": "XXXXXXX",
    "firstName": "XXXXXXXXXX",
    "middleName": "XXXXXXXXXX",
    "thirdName": "XXXXXXXXXX",
    "fullName": "XXXXXXXXXX",
    "birthDt": "2022-12-11",
    "gender": "1",
    "country": "28",
    "maritalStatus": "1",
    "contactInfo": {
      "postAddr": [
        {
          "addr1": "Calle 4",
          "floor": "414",
          "stateProv": "35",
          "cityId": "38041",
          "neighborhood": "38041",
          "postalCode": "04011031",
          "emailAddr": "TESTE@GMAIL.COM",
          "phoneNum": [
            {
              "phoneType": "4",
              "phoneAreaCode": "55",
              "phone": "11999999999"
            },
            {
              "phoneType": "2",
              "phoneAreaCode": "55",
              "phone": "11999999999"
            }
          ]
        }
      ]
    },
    "ccAcctRec": [
      {
        "code": "65",
        "cardType": "3",
        "acctId": "696369321563",
        "expDt": "02/26",
        "token": "6as5df-6d5f4ga-as5df-as5d4d4d",
        "dayofDebitMonthly": 31,
        "pmtMethod": "2"
      }
    ],
    "depAcctId": [
      {
        "bankId": "558",
        "acctType": "2",
        "acctId": "696369321563",
        "dayofDebitMonthly": 3,
        "pmtMethod": "2"
      }
    ]
  },
  "identVerifyEntity": [
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    },
    {
      "idItem": 100391531,
      "rate": 50,
      "order": 1
    }
  ],
  "additionalData": [
    {
      "key": "SecondName",
      "value": "Pedro"
    }
  ]
}

> Example of Body to Response Successfull.


{
  "insuranceInfo": {
    "cSpRefId": "Emisión",
    "trnRquId": "37330",
    "operationType": "Cobro",
    "effDt": "2022-12-11",
    "endDt": "2022-12-11",
    "insuranPremiumValue": 90998.136986,
    "fee": {
      "amt": 90998.136986
    },
    "rate": 90998.136986,
    "policyId": "960",
    "certCode": "21344545",
    "forExRateInqRq": {
      "depAcctId": "960"
    }
  }
}

####

> Response Error.
Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ERR400"
  },
  "responseDetail": {
    "errorCode": 400,
    "errorDesc": "Payload not found",
    "errorType": "Bad Request"
  }
}

###


- Customer payee :

**Description: insert costumer payee digital banking

Path:

POST /policy-management/v1/costumer-payee

Request information:


Request

govIssueIdent:
  govIssueIdentType: Type of identification issued by the country's government ...
POSIBLE VALUES
CC: Citizenship Card
CE: Immigration Card
LC: Driving License
NI: NIT
OT: Other
PA: Passport
RC: Civil Registry
IT: Identity Card
  identSerialNum: Identification number
beneficiary:
personName:
  firstName: First name
  middleName: Second name
  lastName: First lastname
  secondLastName: Second lastname
personInfo:
  country: natiolality
  emailAddr: email address
postAddr:
  country: country code using ISO 3166
notification:
  address: address to recive notification,
  postalCode: postal code
govIssueIdent:
  govIssueIdentType: Type of identification issued by the country's government ...
POSIBLE VALUES
CC: Citizenship Card
CE: Immigration Card
LC: Driving License
NI: NIT
OT: Other
PA: Passport
RC: Civil Registry
IT: Identity Card
  identSerialNum: Identification number
  countryName: Country name of the identification
relationshipType: Type of relationship among beneficiary and customer
submitOffice:
  branchId: Branch indentifier number
  adviserId: Advisor identifier number

Request example:

{
  "govIssueIdent": {
    "govIssueIdentType": "CC",
    "identSerialNum": "3056441"
  },
  "beneficiary": {
    "personName": {
      "firstName": "LUIS",
      "middleName": "",
      "lastName": "GONZALEZ",
      "secondLastName": ""
    },
    "personInfo": {
      "country": "169",
      "emailAddr": "smora@bancocajasocial.com"
    },
    "postAddr": {
      "country":"169"
    },
    "notification": {
      "address": "KR 80",
      "postalCode": "432566"
    },
    "govIssueIdent": {
      "govIssueIdentType": "CC",
      "identSerialNum": "3056441",
      "countryName": "COLOMBIA"
    },
    "relationshipType": "60"
  },
  "submitOffice": {
    "branchId": "1102",
    "adviserId": "4342"
  }
}

Response information:

ResponseDatail
  responseType: Estatus of the operation

Example of Body to Response Successfull.:

{
  "responseType": {
    "value": "OK"
  }
}

Response error:

Additional the error code of APIKit this resource it has some custom errors code or business errors and all errors used the following structure.
{
  "responseType": {
    "value": "ER"
  },
  "responseDetail": {
    "errorCode": "OSB-38235",
    "errorDesc": "Variable targeted for validate is not a XML",
    "errorType": "EXP"
  }
}


Reviews