Endpoint to fetch the result of a process on by Unico.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
processIdstringRequired
Process ID.
Responses
200
Process details successfully obtained.
application/json
400
When the process ID is invalid.
application/json
401
Access-token error.
application/json
404
When the process could not be found.
application/json
get
/client/v1/process/{processId}
The content returned in the process.services.documents.doc.data parameter, referring to the OCR Extraction technology, can be consulted below:
Type: CNH
Content: Brazilian National Driving License
String numero;
String rgNumero;
String cpfNumero;
String nomeCivil;
List string filiacao;
Datetime dataNascimento;
Datetime data_habilitacao;
Datetime data_expiracao;
Datetime data_emissao;
String local_emissao;
String categoria;
String renachNumero;
Type: RG
Content: Brazilian General Registration
String numero;
String orgao_emissor;
String uf_emissor;
String cpfNumero;
String carteira_profissionalNumero;
String certificado_militarNumero;
String cnsNumero;
String nis_pis_pasepNumero;
String ctpsNumero;
String ctps_serie;
String ctps_uf;
String titulo_eleitorNumero;
String nomeCivil;
String nome_social;
List string filiacao;
Datetime dataNascimento;
String naturalidade;
Datetime data_emissao;
Type: CIN
Content: Brazilian national Identity Card
string rgNumero;
string cpfNumero;
string nomeCivil;
string nome_social;
List string filiacao;
Datetime dataNascimento;
Datetime data_expiracao;
Datetime data_emissao;
string orgao_emissor;
string local_emissao;
string naturalidade;
string nacionalidade;
Type: Passport
Content: Brazilian Passport
string numero;
string nome;
string sobrenome;
string pais_emissor;
string nacionalidade;
string naturalidade;
Datetime data_nascimento;
Datetime data_emissao;
Datetime data_expiracao;
string autoridade.
Type: UNKNOWN
Content: Unknown document.
If the response from the result parameter is "PROCESS_RESULT_INVALID_IDENTITY" we will not request the steps following the capture of the selfie (documents and/or electronic signature).
If we are unable to extract a field from the document, it is not listed in the API return.
The link returned in signed_url is valid for 5 minutes. A GET request must be made during the process to refresh the link and extend its validity.
The document returned in the signed_url will always be a single PDF with the documents separated into front and back.
Tips:
To implement your business rules, always validate the response from the capabilities by checking the parameters in the following order:
state = PROCESS_STATE_FINISHED AND result = PROCESS_RESULT_OK:
THEN, you can proceed with decision-making by analyzing the authenticationInfo parameter.
If you receive state = PROCESS_STATE_FINISHED AND result = PROCESS_RESULT_ERROR, interpret this as an error in the biometric process and attempt the process again.
To improve the performance of your operation, you can use our Webhooks and only query the results of processes that are in the finalized statuses.
Errors
code
message
description
3
process id is invalid
When the process ID is invalid.
message
description
Jwt header is an invalid JSON
When the access token used contains incorrect characters.
Jwt is expired
When the access token used has expired.
code
message
description
5
error getting process: rpc error: code = NotFound desc = process not found
When the process ID was not found.
No detailed error code will be provided for this situation, only the HTTP status code.