余额查询 Webhook
返回的 webhook 有两种情况:成功或失败。
成功时:
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"
}
]
}
}
失败时:
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"
}
}
查询中的错误类型:
| CPF 末两位 | 枚举值 | 描述 |
|---|---|---|
| 90 | ongoing_operation | There's an ongoing operation |
| 91 | unauthorized_institution | Institution isn't authorized by the client |
| 92 | inexistent_anniversary_membership | Client does not have membership for anniversary withdraw on current date |
| 93 | on_locked_date_range | Not permitted action on current date |
| 94 | anniversary_membership_egress | Client moving away from anniversary membership. It needs to be canceled before requesting a reserve |
| 95 | processing_pending_changes | Changes on client's FGTS account are still being processed |
| 96、97、98 和 99 | caixa_error | Request wasn't able to process due to an error on CEF |