Exemplos de responses por flow Nesta seção, você encontrará todos os cenários de response para processos finalizados no by Unico
Responses separadas por flows
idlive
Para uma jornada apenas com validação da prova de vida .
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "idlive" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_FALSE" ,
"score" : 0
} ,
"authenticationId" : "d19bb608-56e8-4c3d-aaa2-4a6cbd72fb30" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE"
] ,
"expiresAt" : "2024-10-24T15:17:46.413146Z"
}
}
id
Para uma jornada com validação da prova de vida + verificação de identidade .
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "id" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDLIVE"
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
idcheck
Para uma jornada com validação da prova de vida + verificação de identidade + score de risco no caso de inconclusivo do unicoId.
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "idcheck" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_TRUE" ,
"score" : 50
} ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE" ,
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDCHECK"
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
idocs
Para uma jornada com validação da prova de vida + verificação de identidade + score de risco no caso de inconclusivo do unicoId + captura e reaproveitamento de documentos.
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "iddocs" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_TRUE" ,
"score" : 50
} ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE" ,
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDCHECK" ,
"PROCESS_CAPACITY_IDDOCS"
] ,
"services" : [
{
"documents" : [
{
"doc" : {
"version" : 2 ,
"code" : "RG" ,
"data" : {
"dataExpiracao" : "2025-10-35T00:00:00Z" ,
"dataHabilitacao" : "2022-08-09T00:00:00Z" ,
"dataNascimento" : "1950-06-30T00:00:00Z" ,
"nomeCivil" : "John Doe" ,
"rgNumero" : "5478854" ,
"categoria" : "D" ,
"cpfNumero" : "73689290074" ,
"dataEmissao" : "2020-08-09T00:00:00Z" ,
"localEmissao" : "DEREX SP" ,
"numero" : "85775532778" ,
"renachNumero" : ""
} ,
} ,
"typified" : true ,
"cpf_match" : true ,
"face_match" : true ,
"doc_id" : "1e61a978-3673-4fdd-8fa8-808d0a26d131" ,
"validate_doc" : true ,
"reused_doc" : true ,
"signed_url": "https://api.datafortress.dev.private.unico.run/url-signer/signature/dmF1bHQ6[...]OXc9PQ%3D%3D"
}
] ,
"consent_granted" : true
}
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
idsign
Para uma jornada com validação da prova de vida + verificação de identidade + score de risco no caso de inconclusivo do unicoId + assinatura eletrônica.
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "idsign" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_TRUE" ,
"score" : 50
} ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE" ,
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDCHECK" ,
"PROCESS_CAPACITY_IDSIGN"
] ,
"services" : [
{
"envelopeId" : "4d4f3d90-04a3-4259-b63b-930ab10d2e47" ,
"documentIds" : [
"03307601-b518-49ca-b368-ae3919e24e54"
]
} ,
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
iddocssign
Para uma jornada com validação da prova de vida + verificação de identidade + score de risco no caso de inconclusivo do unicoId + captura e reaproveitamento de documentos + assinatura eletrônica.
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "iddocssign" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_TRUE" ,
"score" : 50
} ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDCHECK" ,
"PROCESS_CAPACITY_IDDOCS" ,
"PROCESS_CAPACITY_IDSIGN" ,
"PROCESS_CAPACITY_IDLIVE"
] ,
"services" : [
{
"documents" : [
{
"doc" : {
"version" : 2 ,
"code" : "RG" ,
"data" : {
"dataExpiracao" : "2025-10-35T00:00:00Z" ,
"dataHabilitacao" : "2022-08-09T00:00:00Z" ,
"dataNascimento" : "1950-06-30T00:00:00Z" ,
"nomeCivil" : "John Doe" ,
"rgNumero" : "5478854" ,
"categoria" : "D" ,
"cpfNumero" : "73689290074" ,
"dataEmissao" : "2020-08-09T00:00:00Z" ,
"localEmissao" : "DEREX SP" ,
"numero" : "85775532778" ,
"renachNumero" : ""
} ,
} ,
"typified" : true ,
"cpf_match" : true ,
"face_match" : true ,
"doc_id" : "1e61a978-3673-4fdd-8fa8-808d0a26d131" ,
"validate_doc" : true ,
"reused_doc" : true ,
"signed_url": "https://api.datafortress.dev.private.unico.run/url-signer/signature/dmF1bHQ6[...]OXc9PQ%3D%3D"
}
] ,
"consent_granted" : true
} ,
{
"envelopeId" : "4d4f3d90-04a3-4259-b63b-930ab10d2e47" ,
"documentIds" : [
"03307601-b518-49ca-b368-ae3919e24e54"
]
}
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
idcheckserpro
Para uma jornada com validação da prova de vida + verificação de identidade + score de risco no caso de inconclusivo do unicoId + retorno de similaridade da Serpro.
Copiar {
"process" : {
"id" : "53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"flow" : "idcheckserpro" ,
"callbackUri" : "/path/to/callback-url/" ,
"userRedirectUrl" : "https://cadastro.dev.unico.app/process/53060f52-f146-4c12-a234-5bb5031f6f5b" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "73689290074" ,
"friendlyName" : "John Doe" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
] ,
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"authenticationResult" : "AUTHENTICATION_RESULT_INCONCLUSIVE" ,
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_TRUE" ,
"score" : 50
} ,
"authenticationId" : "fd433602-d496-4291-adbb-dda95a3e50b1" ,
"livenessResult" : "LIVENESS_RESULT_LIVE" ,
"serproResult" : {
"score" : 50
}
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE" ,
"PROCESS_CAPACITY_IDUNICO" ,
"PROCESS_CAPACITY_IDCHECK"
] ,
"createdAt" : "2023-10-05T18:28:58.537985Z" ,
"finishedAt" : "2023-10-09T15:15:25.417105Z" ,
"expiresAt" : "2023-10-09T15:15:25.417105Z"
}
}
idtoken
Para uma jornada com validação da prova de vida + validação (1:1)
Copiar {
"process" : {
"id" : "ede08bf6-e167-4249-9501-2a93b5d1ffc3" ,
"flow" : "idtoken" ,
"callbackUri" : "/" ,
"userRedirectUrl" : "https://cadastro.uat.unico.app/process/ede08bf6-e167-4249-9501-2a93b5d1ffc3" ,
"state" : "PROCESS_STATE_FINISHED" ,
"result" : "PROCESS_RESULT_OK" ,
"createdAt" : "2024-10-28T19:54:23.313015Z" ,
"finishedAt" : "2024-10-28T20:02:43.620300Z" ,
"person" : {
"duiType" : "DUI_TYPE_BR_CPF" ,
"duiValue" : "12345678909" ,
"email" : "luke@unico.co" ,
"phone" : "5521999249999" ,
"notifications" : [
{
"notificationChannel" : "NOTIFICATION_CHANNEL_WHATSAPP"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_EMAIL"
} ,
{
"notificationChannel" : "NOTIFICATION_CHANNEL_SMS"
}
]
} ,
"purpose" : "creditprocess" ,
"authenticationInfo" : {
"scoreEngineResult" : {
"scoreEnabled" : "SCORE_ENABLED_FALSE" ,
"score" : 0
} ,
"authenticationId" : "c95ea805-b001-4926-a99e-c0be7ef0b663" ,
"livenessResult" : "LIVENESS_RESULT_LIVE" ,
"bioTokenEngineResult" : "BIO_TOKEN_ENGINE_RESULT_POSITIVE"
} ,
"capacities" : [
"PROCESS_CAPACITY_IDLIVE" ,
"PROCESS_CAPACITY_IDTOKEN"
] ,
"expiresAt" : "2024-11-04T19:54:23.312326Z" ,
"companyData" : {}
}
}
Os exemplos de response acima consideram somente processos que estão com o state = PROCESS_STATE_FINISHED
e result = PROCESS_RESULT_OK
. Para ver os responses que não consideram somente essas condições, veja a seção Cenários de reponse .
Não encontrou algo ou ainda precisa de ajuda? Se já é um cliente ou parceiro, pode entrar em contato através da Central de Ajuda .