Pular para o conteúdo principal

Webhooks de Consulta de Saldo

O webhook retornado terá duas opções. Ou ele retorna um sucesso, ou uma falha.

Em caso de sucesso:

Response Body
{
"key": "843ab07e-b16f-4dfa-b048-37c464483aa5",
"status": "success",
"webhook_type": "fgts_available_balance",
"event_datetime": "2022-07-14T18:31:29",
"data": {
"reference_date": "2022-07-14",
"periods": [{
"amount": 776.41,
"due_date": "2023-01-01"
},
{
"amount": 508.25,
"due_date": "2024-01-01"
},
{
"amount": 286,
"due_date": "2025-01-01"
}
]
}
}

Em caso de falha:

Request Body
{
"key": "843ab07e-b16f-4dfa-b048-37c464483aa5",
"status": "failed",
"webhook_type": "fgts_available_balance",
"event_datetime": "2022-07-14T18:31:29",
"data": {
"enumerator": "unauthorized_institution",
"description": "Institution isn’t authorized by the client"
}
}

Erros existentes na consulta:

Os erros existentes são:

Dígitos do CPFEnumeradorDescrição
90ongoing_operationThere's an ongoing operation
91unauthorized_institutionInstitution isn't authorized by the client
92inexistent_anniversary_membershipClient does not have membership for anniversary withdraw on current date
93on_locked_date_rangeNot permitted action on current date
94anniversary_membership_egressClient moving away from anniversary membership. It needs to be canceled before requesting a reserve
95processing_pending_changesChanges on client's FGTS account are still being processed
96, 97, 98 e 99caixa_errorRequest wasn't able to process due to an error on CEF