创建资产——CCB
用于向转让批次中插入 CCB(Cédula de Crédito Bancário,银行信贷凭证)类资产的端点。每项资产代表一笔将转让给基金的信贷业务。同一接口契约也适用于 structured_cci。
适用范围
| 角色 | 主机 | 所需权限 |
|---|---|---|
| 管理人 | manager-api | 写入 |
| 顾问 | consultant-api | Batches |
| 转让方 | assignor-api | 写入 |
各主机的 Base URL:环境(主机)。
注意
信贷业务的 external_id 字段用于在批次内标识资产,不要与批次的 external_id 混淆。
Request
ENDPOINT
/trade_receivables/fund_class/{fund_class_key}/assignment_configuration/{assignment_configuration_key}/assignment/{assignment_external_id}/assetMÉTODO
POSTRequest Body
{
"asset_type": "ccb",
"total_purchase_value": 1351.66,
"premiums": [
{
"premium_type": "spread",
"total_value": 13.38
}
],
"credit_operation": {
"contract": {
"number": "0008309052/NBF",
"disbursement_date": "2023-07-06",
"issue_date": "2023-07-06",
"signature_date": "2023-07-06",
"issue_value": 1338.28
},
"amortization_type": "sac",
"borrower": {
"name": "Empresa Exemplo Ltda",
"document_number": "11.222.333/0001-81",
"person_type": "legal_person",
"email": "financeiro@empresaexemplo.com.br",
"address": {
"street": "Pátio de Teixeira",
"number": "1",
"neighborhood": "Estrela do Oriente",
"city": "Rondônia",
"postal_code": "01012-030",
"uf": "RO",
"country": "BRA"
},
"phone": {
"area_code": "11",
"number": "936360268"
},
"legal_person": {
"activity_code": "11.11-1-11"
}
},
"delay": {
"fine": {
"fine_type": "percentage",
"percentage_value": 0.0
},
"interest": {
"method": "compound",
"pre_fixed": {
"monthly_rate": 0.0,
"calendar_base": "calendar_360"
}
}
},
"principal_value": 1338.28,
"interest_rate_type": "pre_fixed",
"external_id": "ccf6f331-d55f-46c0-a32f-fb909884dbb2",
"originator_document_number": "22.333.444/0001-81",
"pre_fixed": {
"calendar_base": "calendar_365",
"monthly_rate": 0.018
},
"installments": [
{
"maturity_date": "2023-10-01",
"installment_number": 1,
"face_value": 689.33
},
{
"maturity_date": "2024-10-01",
"installment_number": 2,
"face_value": 482.53
},
{
"maturity_date": "2025-10-01",
"installment_number": 3,
"face_value": 300.36
},
{
"maturity_date": "2026-10-01",
"installment_number": 4,
"face_value": 162.77
},
{
"maturity_date": "2027-10-01",
"installment_number": 5,
"face_value": 81.39
},
{
"maturity_date": "2028-10-01",
"installment_number": 6,
"face_value": 40.69
}
],
"modality_code": "0202",
"consignee": {
"consignee_type": "inss",
"name": "Consignee name",
"document_number": "33.444.555/0001-81"
},
"collaterals": [
{
"collateral_type": "social_security",
"benefit_number": "0000000000",
"benefit_type": "benefit_type",
"status": "reserved"
}
]
}
}
请求体属性
| 字段 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
asset_type | string | 必填 | 资产类型。CCB 请填写 ccb。 |
total_purchase_value | number | 必填 | 资产的购买总额——即受让方实际支付的金额。最多 2 位小数。 |
premiums | array | 可选 | 交易中涉及的溢价列表。参见 premiums 属性。 |
deductions | array | 可选 | 交易中涉及的折价列表。参见 deductions 属性。 |
credit_operation | object | 必填 | 信贷业务数据。参见 credit_operation 属性。 |
溢价和折价计入金额核对
插入时,QI Tech 计算各分期的现值,并与资产的购买价值进行比较:total_purchase_value − premiums 之和 + deductions 之和。较小的差额会被自动记录为调整项(math_adjustment);超出范围时,插入返回 TRC100014。
premiums 属性
| 字段 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
premium_type | string | 必填 | 溢价类型:spread、math_adjustment、banker_fee、transaction_fee 或 originator_fee。 |
total_value | number | 必填 | 溢价总额。最小值 0.01。最多 2 位小数。 |
deductions 属性
| 字段 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
deduction_type | string | 必填 | 折价类型:bad_debt_discount 或 math_adjustment。 |
total_value | number | 必填 | 折价总额。最小值 0.01。最多 2 位小数。 |
credit_operation 属性
| 字段 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
external_id | string | 必填 | 该资产在合作伙伴系统中的唯一标识 key。最多 50 个字符。 |
originator_document_number | string | 必填 | 促成该业务的发起人的 CPF 或 CNPJ,带格式(000.000.000-00 或 00.000.000/0000-00)。必须已在 QI Tech 注册;否则返回 TRC000019。 |
principal_value | number | 必填 | 该业务的未偿本金总额。最多 8 位小数。 |
contract | object | 必填 | 合同数据。参见 contract 属性。 |
borrower | object | 必填 | 付款人/债务人数据。参见 borrower 属性。 |
amortization_type | string | 必填 | 计算所使用的摊销类型。 |
interest_rate_type | string | 必填 | 该业务的利率类型。 |
pre_fixed | object | 条件必填 | 固定利率部分的计算数据。interest_rate_type 为 pre_fixed 时必填。参见 pre_fixed 属性。 |
post_fixed | object | 条件必填 | 浮动利率部分的计算数据。interest_rate_type 为 post_fixed 时必填。参见 post_fixed 属性。 |
installments | array | 必填 | 该业务的分期列表。参见 installments 属性。 |
delay | object | 必填 | 逾期罚金和逾期利息数据。参见 delay 属性 |