Pular para o conteúdo principal

Webhooks de abertura de conta

Após a chamada de solicitação de reserva de conta de conta é enviado um webhook do tipo account_request.status_change com o status pending_additional_data, esse evento é o gatilho para que seja enviada a requisição para confirmação da abertura de conta.

A resposta da solicitação de abertura de conta poderá retornar o status “pending_kyc_analysis” a depender da configuração de integração do parceiro.

Neste caso, a resposta sobre a aprovação ou reprovação da abertura da conta será retornada de forma assíncrona via webhook.

O número de conta será reservado no momento da solicitação de abertura, porém neste momento a conta ainda não estará aberta. Somente após a conclusão da análise de KYC da QI Tech a conta estará aberta.

Webhook aprovação KYC

Webhook Body
{
"data": {
"account_info": {
"account_digit": "3",
"account_branch": "0001",
"account_number": "1638634"
},
"account_request_key": "dc575950-dcce-48e1-99a6-5fb0ada63d86"
},
"event_datetime": "2022-09-02 22:39:39",
"key": "dc575950-dcce-48e1-99a6-5fb0ada63d86",
"status": "pending_additional_data",
"webhook_type": "account_request.status_change"
}

Enumeradores account_request_status

EnumDescription
pending_kyc_analysisPendente aprovação KYC
pending_additional_dataPendente informações adicionais
rejectedAbertura rejeitada

Contas de Pessoa Jurídica

Account Opened

WEBHOOK_TYPE
account
STATUS
account_opened
Webhook Body
{
"data": {
"account_info": {
"account_key": "6d30a0b1-cb90-4ceb-b1ea-5bd600cdf3c8",
"account_digit": "2",
"account_branch": "0001",
"account_number": "2359934",
"financial_institution_code": "329"
},
"allowed_user": {
"name": "Juliana Tereza Bernardes",
"document_number": "12364480084"
},
"account_owner": {
"name": "VOVO LUCIA CONVENIENCIA LTDA",
"document_number": "12380702000105"
}
},
"event_datetime": "2022-09-02 22:39:39",
"key": "dc575950-dcce-48e1-99a6-5fb0ada63d86",
"status": "account_opened",
"webhook_type": "account"
}

Account Rejected

WEBHOOK_TYPE
account
STATUS
account_rejected
Webhook Body
{
"data": {
"account_info": {
"account_digit": "2",
"account_branch": "0001",
"account_number": "2359934",
"financial_institution_code": "329"
},
"allowed_user": {
"name": "Juliana Tereza Bernardes",
"document_number": "97564480084"
},
"account_owner": {
"name": "VOVO LUCIA CONVENIENCIA LTDA",
"document_number": "09080702000105"
}
},
"event_datetime": "2022-09-02 22:39:39",
"key": "dc575950-dcce-48e1-99a6-5fb0ada63d86",
"status": "account_rejected",
"webhook_type": "account"
}

Contas de Pessoa Física

Account Opened

WEBHOOK_TYPE
account
STATUS
account_opened
Webhook Body
{
"key":"b5978088-2860-4b78-bd44-77b961354014",
"data":{
"account_info":{
"account_key":"b7593804-2223-48b3-8a61-f48a651de1d4",
"account_digit":"5",
"account_branch":"0001",
"account_number":"3998360",
"financial_institution_code":"329"
},
"account_owner":{
"name":"Pedro Pinho",
"document_number":"97634408077"
}
},
"status":"account_opened",
"webhook_type":"account",
"event_datetime":"2024-01-09 14:35:46"
}

Account Rejected

WEBHOOK_TYPE
account
STATUS
account_rejected
Webhook Body
{
"key":"84864614-2860-4b78-bd44-77b961354014",
"data":{
"account_info":{
"account_key":"1435dbavf-2860-4b78-bd44-77b961354014",
"account_digit":"5",
"account_branch":"0001",
"account_number":"3998360",
"financial_institution_code":"329"
},
"account_owner":{
"name":"Pedro Pinho",
"document_number":"97634408077"
}
},
"status":"account_rejected",
"webhook_type":"account",
"event_datetime":"2024-01-09 14:35:46"
}