TAC 使用更新
CPF 资格查询
持有 CPF 数据后,可查询该 CPF 的资格状态。
Request
ENDPOINT
/debts/borrower/[document_number]/tac_eligibilityMÉTODO
GETPath Params
| 字段 | 描述 | 字符数 |
|---|---|---|
document_number | 债务人 CPF 号码 | 11 |
Response
STATUS
200Response Body
{
"eligible": true
}
字段说明
| 字段 | 类型 |
|---|---|
elegible | boolean |
注意
对于返回 "eligible": false 的 CPF,在 rebates 列表中包含 TAC 时,模拟 和债务发行均将无法进行。
模拟和发行债务时的资格错误
当对不符合 TAC 收费条件的 CPF 在模拟或操作发行时发送 TAC 值,将返回同步错误。
STATUS
400Response Body
{
"title": "Bad Request",
"description": "Operation not eligible for tac fee charge. Please do not use this fee type for this borrower.",
"translation": "Operação não elegível para cobrança de taxa do tipo tac. Por favor, não use esse tipo de fee para esse tomador de crédito.",
"code": "COP000355"
}
取消不符合资格的操作
若同时向同一借款人发送多笔含 TAC 的操作,第一笔放款将强制取消其余操作。届时,将发送以下载荷的取消 Webhook。
Response Body
{
"webhook_type": "debt",
"key": "27a099df-4688-43cb-87fa-515b1cf343a5",
"event_datetime": "2022-09-27 07:03:49",
"data": {
"cancel_reason": "Taxa da operação do tipo tac não permitida.",
"cancel_reason_enumerator": "tac_not_allowed"
},
"status": "canceled"
}