跳到主要内容

TAC 使用更新

CPF 资格查询

持有 CPF 数据后,可查询该 CPF 的资格状态。

Request

ENDPOINT
/debts/borrower/[document_number]/tac_eligibility
MÉTODO
GET

Path Params

字段描述字符数
document_number债务人 CPF 号码11

Response

STATUS
200
Response Body
{
"eligible": true
}

字段说明

字段类型
elegibleboolean
注意

对于返回 "eligible": false 的 CPF,在 rebates 列表中包含 TAC 时,模拟和债务发行均将无法进行。

模拟和发行债务时的资格错误

当对不符合 TAC 收费条件的 CPF 在模拟或操作发行时发送 TAC 值,将返回同步错误。

STATUS
400
Response 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"
}