Document for reference only. Active Hiring endpoints are under development.

This use case refers to the Active Hiring flow, directly through Financial Institution Channels.

With this flow, it is possible to take out a loan in your own application without depending on the worker to make a request in the Work Card (CTPS) application.

The main aspect of this change is that the endorsement service will no longer require a proposal linked to a request made in the CTPS application to perform the endorsement operation in DATAPREV.

Despite this, the auction mechanism via the work card application will continue to be available as an alternative channel for the worker. It is worth noting that it will not be possible to endorse more than one contract per relationship, with only one contract per relationship being allowed.

If the worker has sent proposals and does not link them in the endorsement, the system will automatically limit the interest rate to the lowest rate among the active proposals sent.

1. Request to consult the worker’s employment relationship list

Use this endpoint to consult the worker’s employment relationship list. The return will be the employer’s federal document, worker’s registration number and employment eligibility.

This request is mandatory for hiring through the bank correspondent channel.

In the first consultation of each worker, the partner must send the authorization to consult the worker’s data.

nsuAutorizacaoDigital This is the unique sequential number that identifies the authorization signed by the client during his/her journey. BMP may request additional information about the registration of this NSU for audit purposes, in case Dataprev questions the existence of the client’s acceptance for data consultation.

1.1 Request example

curl --location --request POST 'https://econsignadotrabalhador.moneyp.dev.br/trabalhadores/listar-autorizados-trabalhador' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "cpfTrabalhador": "string",
    "autorizacao": {
          "nsuAutorizacaoDigital": 0
    }
}'

1.2 Callback notification example

The callback notification example for this request is available in the document [Callback URL Configuration - Link List Query Event employees.

2. Request to consult employee data

Use this endpoint to consult the margin base value, available margin, eligibility of the bond and other information for credit analysis.

This request is mandatory for hiring in the bank correspondent channel.

In the first consultation of each employee, the partner must send the authorization to consult the employee’s data.

nsuAutorizacaoDigital This is the unique sequential number that identifies the authorization signed by the client during their journey. BMP may request additional information about the registration of this NSU for audit purposes, in case Dataprev questions the existence of the client’s acceptance to consult the data.

2.1 Request example

curl --location --request POST 'https://econsignadotrabalhador.moneyp.dev.br/trabalhadores/consultar-dados-trabalhador' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
  "cpfTrabalhador": "string",
  "matricula": "string",
  "codigoInscricaoEmpregador ": 0,
  "numeroInscricaoEmpregador": "string",
  "autorizacao": {
    "nsuAutorizacaoDigital": 0
  }
}'

2.2 Callback notification example

The callback notification example for this request is available in the document Callback URL Configuration - Employment Link Data Query Event.

3. Request to simulate a loan

Little information is required to simulate a loan. It is possible to simulate with or without a defined term and the same for the interest rate.

  • If you enter the term in the request, the result of the detailed simulation will be returned;
  • If you do not enter the term, the installment alternatives and their respective rates and installment amounts will be returned;
  • If you enter the interest rate in the request, the calculation will be made with the rate informed;
  • If you do not enter the interest rate, the calculation will be made with the rate previously registered in BMP.
It is not mandatory that you have already onboarded the worker, but it is recommended so that you can disable installment options that exceed the worker’s available margin.

3.1 Request examples

4. Request for worker registration

To generate the CCB document, the partner must register the worker.

4.1 Request example

curl --location 'https://econsignadotrabalhador.moneyp.dev.br/trabalhador/cadastrar-vinculo' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
    "CPF": "00796616027",
    "Matricula": "abc123",
    "NumeroInscricaoEmpregador": "nro",
    "Nome": "Tony Valadão",
    "Sexo": "M",
    "DataNascimento": "05-02-2000 12:11",
    "Elegivel": true,
    "valorMargemDisponivel": 1222.22,
    "DataAdmissao": "12-12-2024 11:59",
    "PessoaExpostaPoliticamente": 1,
    "endereco": {
        "Cep": "63122200",
        "Logradouro": "rua",
        "Bairro": "São Miguel",
        "Cidade": "Crato",
        "UF": "CE"
    },
    "CodigoCategoriaTrabalhador": 12332,
    "ValorTotalVencimentos": 123.33,
    "ValorBaseMargem": 22.22,
    "DadosContato": {
        "Email": "email@email.com",
        "TelefoneCelular1": "4712214334"
    }
}'

5. Request for employer registration

To generate the CCB document, it is necessary that the partner registers the employer.

5.1 Request example

curl --location 'https://econsignadotrabalhador.moneyp.dev.br/trabalhador/cadastrar-empregador' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
  "nome": "string",
  "documentoFederal": "string",
  "dadosContato": {
    "email": "string",
    "telefoneFixo1": "string",
    "telefoneCelular1": "string"
  },
  "endereco": {
    "cep": "string",
    "logradouro": "string",
    "nroLogradouro": "string",
    "bairro": "string",
    "complemento": "string",
    "cidade": "string",
    "uf": "string"
  }
}'

6. Request to generate a worker’s contract

In the active hiring model, there is no request made in the CTPS for the association of the worker, employer and registration number, therefore, regarding the generation of a contract in the auction model, the difference is that in this request numeroSolicitacao should not be informed, but cpfTrabalhador, registra and numeroInscricaoEmpregador should be informed.

The worker and employer must have been previously registered and in this model, it is mandatory to consult the margin available for the worker’s employment relationship to which the loan will be made.

6.1 Exemrequest example

curl --request POST --location 'https://econsignadotrabalhador.moneyp.dev.br/contratos/oferta-ativa/gerar-contrato-trabalhador' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "cpfTrabalhador": "cpf",
    "matricula": "matricula",
    "numeroInscricaoEmpregador": "numeroInscricaoEmpregador",
    "valorLiberado": 9000,
    "numeroParcelas": 24,
    "valorTaxaMensal": 3.75,
    "propostaContaPagamento": {
        "tipoConta": 0,
        "agencia": "stri",
        "agenciaDig": "s",
        "conta": "string",
        "contaDig": "s",
        "numeroBanco": "string"
    }
}'

7. Sign the employee’s CCB with facial biometrics

After generating the contract, the employee must sign the Bank Credit Note (CCB) document with facial biometrics.

The employee’s CCB must be signed by the partner, using a facial biometric signature service.

Use the endpoint below to print the CCB.

https://reports.moneyp.dev.br/ImprimirCCB?Code={{CODIGO_PROPOSTA}}&Integracao={{CODIGO_INTEGRACAO}}

The proposal code is the same as the request code sent in the callback of the /emprestimos/gerar-contrato-trabalhador endpoint.

The integration code will be informed to the partner when the approval and production credentials are delivered.

The accepted electronic signature standards are Advanced Electronic Signatures, as defined by Law 14.063/2020.

For biometric validation, the databases of the Superior Electoral Court (TSE), National Traffic Secretariat (DENATRAN), Federal Data Processing Service (SERPRO) and Electronic Identity of the Civil Registry (IDRC) are accepted.

Facial biometrics must meet liveness guarantee requirements, according to the IEEE Std 2790-2020, ISO/IEC 30107-3 and ISO/IEC 29794-5 standards.

If there are no biometrics available in government databases, it is possible to use validation with the photo of an official document. The captured biometrics must be used exclusively for the signature process and cannot be reused. During biometric capture, it is necessary to inform the worker of the purpose of the capture and the possibility of using the data by MTE/DATAPREV for audits and investigations.

With the CCB signed by the worker, continue with the inclusion of the CCB signed with facial biometrics in step 7.

8. Request to include the signed CCB and facial biometrics

After signing in the previous step, use the endpoint /loans/incluir-informacoes-contrato-trabalhador to include the worker’s contract information.

With the inclusion of the signed CCB, the loan will be registered in DATAPREV, after this inclusion, the loan will be released for payment queue.

8.1 Request example

curl --request POST --location 'https://econsignadotrabalhador.moneyp.dev.br/emprestimos/incluir-informacoes-contrato-trabalhador' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
    "contratoEmprestimo": "Arquivo PDF da CCB assinado em base64", //MANDATORY
    "dataHoraAssinatura": "dd-MM-yyyy hh:mm", //MANDATORY
    "ip": "<string>", //MANDATORY
    "numeroContrato": "<string>", //MANDATORY
    "tipoDocumento" : "<number>", //1 for RG and 2 for CPF
    "documentoOficialComFotoFrente": "Arquivo JPG da frente do documento em base64",
    "documentoOficialComFotoVerso": "Arquivo JPG do verso do documento em base64",
    "registroBiometricoFacial": "Arquivo JPG do registro biométrico facial em base64", //MANDATORY
    "baseBiometrica": "<string>", 
    "score": "<number>",
    "indicadorValidacaoComDocOficial": "<boolean>", //MANDATORY
    "latitude": "<number>",
    "longitude": "<number>",
    "dispositivo": "<string>"
}'

If the indicadorValidacaoComDocOficial field is true, the following fields become mandatory:

  • documentoOficialComFotoFrente; * documentoOficialComFotoVerso;
  • tipoDocumento.

If the indicadorValidacaoComDocOficial field is false, the following fields become mandatory:

  • baseBiometrica;
  • score​.

8.2 Example of callback notification

The example of callback notification for this request is available in the document Callback URL Configuration - Loan endorsement event.