Events
The FGTS callback system is an automated solution for real-time monitoring of proposal cancellations.
FGTS callbacks can be sent via parameters in the URL or via events in the request body.
URL parameters and proposal situations
Proposal callbacks are sent via URL, in this format:
When sent, the values {PROPOSAL}
, {SITUATION}
and {IDENTIFIER}
will be replaced by real values, described in the table below.
Proposal callback parameters table
Parameter | Description |
---|---|
Proposal | Unique GUID generated in the response during proposal inclusion. |
Status | Proposal status ID in our system (according to the table below). |
Identifier | If sent, this field represents the operation code sent when the proposal is included. |
Proposal status identification table
ID | Description | Objective |
---|---|---|
2 | Approved | Proposal was created and is awaiting signature. |
4 | Canceled | Proposal was canceled automatically or by the integrator. |
5 | Pending | Proposal was marked as pending and requires intervention by the integrator to request endorsement again. |
6 | Completed | Endorsement was requested at Caixa Econômica Federal (CEF). |
8 | Released | Proposal successfully endorsed and released for disbursement. |
9 | Paid | Proposal disbursement was made. |
10 | Assigned | Proposal was added to an assignment shipment and assigned to the fund. |
11 | Pending Payment | Proposal pending payment due to inconsistency in bank details, requiring intervention from the integrator to correct and return to the payment queue. |
If the callback is parameterized with the POST method, in addition to the data sent in the URL, the partner will receive in the body of the request:
- Status 9:
00 - Credit or debit made
; - Status 11:
AB - Description of the occurrence
.
If there is a problem while receiving the proposal callback, the system will make up to 3 attempts to send it.
Events
The FGTS callback notification events are:
Registered Bill
This callback is sent when a proposal is cancelled and we send a hybrid bill regarding the cancellation.
Field | Type | Description |
---|---|---|
NumCodigoBarras | String | Barcode number. |
NumLinhaDigitavel | String | Digital line of the invoice. |
PixCopiaCola | String | Copy and paste PIX. |
QRCode | String | Base64 code of the PIX Copy and paste QR code. |
VlrBoleto | Decimal | Invoice amount. |
DtVencimento | Datetime | Invoice due date. |
NumeroBoleto | String | Invoice number. |
CodigoBoleto | Guid | Invoice identifier. |
CodigoProposta | Guid | Proposal identifier. |
CodigoOperacao | Guid | Operation identifier. |
Detalhes | String | In this case, no information is returned, only the context and type of event (always NULL). |
ContextoEvento | String | Event context identifier (7 - FGTS callback). |
TipoEvento | String | Event type identifier = 5. |
NomeEvento | String | Event name description. |
DtEvento | Datetime | Event date. |
Cancellation completed
This callback is sent when the partner generates a cancellation slip and the customer pays the slip. This way, the cancellation is executed successfully.
Field | Type | Description |
---|---|---|
CodigoProposta | Guid | Proposal identifier. |
CodigoOperacao | Guid | Operation identifier. |
Detalhes | String | Field referring to cancellation information. |
ContextoEvento | String | Event context identifier (7 - FGTS callback). |
TipoEvento | String | Event type identifier = 1. |
NomeEvento | String | Event name description. |
DtEvento | Datetime | Event date. |
Partial payment
This callback is sent when the customer makes a partial payment of the amount of the bill.
Field | Type | Description |
---|---|---|
CodigoProposta | Guid | Proposal identifier. |
CodigoOperacao | Guid | Operation identifier. |
Detalhes | String | Field referring to cancellation information. |
ContextoEvento | String | Event context identifier (7 - FGTS callback). |
TipoEvento | String | Event type identifier = 1. |
NomeEvento | String | Event name description. |
DtEvento | Datetime | Event date. |
Payment not made
This callback is sent when the partner generates a cancellation slip, but the customer does not pay the slip.
Field | Type | Description |
---|---|---|
CodigoProposta | Guid | Proposal identifier. |
CodigoOperacao | Guid | Operation identifier. |
Detalhes | String | Field referring to cancellation information. |
ContextoEvento | String | Event context identifier (7 - FGTS callback). |
TipoEvento | String | Event type identifier = 1. |
NomeEvento | String | Event name description. |
DtEvento | Datetime | Event date. |
Cancellation not completed
This callback is sent after the “Payment not completed” callback is sent. It informs that the cancellation of the transaction was not completed.
Field | Type | Description |
---|---|---|
CodigoProposta | Guid | Proposal identifier. |
CodigoOperacao | Guid | Operation identifier. |
Detalhes | String | Field referring to cancellation information. |
ContextoEvento | String | Event context identifier (7 - FGTS callback). |
TipoEvento | String | Event type identifier = 1. |
NomeEvento | String | Event name description. |
DtEvento | Datetime | Event date. |