跳到主要内容

债务模拟(旧版)

QI Tech 为客户提供在实际发行前模拟信贷操作金额的功能。模拟遵循与债务发行请求相同的模式,但无需提供债务人的注册信息和放款账户数据。

请求

以下示例描述了一次债务模拟请求。

ENDPOINT
/debt_simulation
MÉTODO
POST
请求体
{
"borrower": {
"person_type": "natural"
},
"financial": {
"desired_installments": [
{
"total_amount": 578.69,
"due_date": "2027-04-01"
},
{
"total_amount": 304.25,
"due_date": "2028-04-01"
}
],
"interest_type": "pre_price_days",
"disbursement_date": "2026-09-06",
"fine_configuration": {
"monthly_rate": 0.0,
"interest_base": "calendar_days",
"contract_fine_rate": 0.0
},
"annual_interest_rate": 0.2387205,
"credit_operation_type": "ccb",
"interest_grace_period": 0,
"number_of_installments": 2,
"principal_grace_period": 0,
"rebates": [
{
"amount": 10,
"fee_type": "tac",
"amount_type": "absolute",
"rebate_bank_account": {
"name": "CONTA BANCARIA",
"bank_code": "329",
"account_digit": "1",
"branch_number": "0001",
"account_number": "00003",
"document_number": "32402502000135"
}
}
]
}
}

响应

STATUS
200
响应体
{
"type": "debt",
"key": "bf84379c-d4cf-4f16-a63c-865c129e6fce",
"status": "finished",
"event_datetime": "2025-03-27 22:28:37",
"data": {}
}


定义

请求体

Borrower 对象

字段类型描述枚举值
person_typeobject操作债务人的法律性质natural 或 legal

Financial 对象

字段类型描述最大字符数
amoutfloat信贷操作的发行/名义金额-
interest_typeobject利率类型枚举值 - 摊销方法和利率计算方式-
credit_operation_typeobject信贷操作类型枚举值 - 信贷合同类型-
annual_interest_ratefloat以年化小数表示的固定利率-
disbursement_datedate操作放款日期-
interest_grace_periodint利息宽限期(月)-
principal_grace_periodint本金宽限期-
number_of_installmentsint信贷操作的分期数-
fine_configurationobjectfine_configuration 对象 - 逾期利息和罚款配置-

Fine Configuration 对象

字段类型描述最大字符数
contract_fine_ratefloat以小数表示的逾期罚款百分比-
interest_baseenum利率基准枚举值 - 利率计算基准-
monthly_ratefloat以小数表示的月逾期利率-

响应体

字段类型描述最大字符数
data.dataobjectData 对象-
data.event_datetimedate模拟生成时刻-
data.keystring模拟的唯一密钥-
data.statusstringfinished-
data.typestringdebt-

Data 对象

字段类型描述最大字符数
annual_cetfloat以年化小数表示的总有效成本-
assignment_amountfloat信贷操作的收购金额-
cetfloat以月度小数表示的总有效成本-
contract_fee_amountfloatQI Tech 在操作中收取的费用-
contract_feesobjectContract Fees 对象 - QI Tech 在操作中收取的费用列表-
credit_operation_typeenum信贷操作类型枚举值 - 信贷合同类型-
disbursed_issue_amountfloat信贷操作的放款金额-
disbursement_datedate操作放款日期-
disbursement_optionslist操作的放款选项列表(操作的财务金额可能因放款日期而有所不同)-
external_contract_fee_amountfloatQI Tech 向合作方回扣的操作费用金额-
external_contract_feeslistContract Fees 对象 - QI Tech 向合作方回扣的操作费用列表-
final_disbursement_amountfloat实际放款给债务人的金额-
installmentslistInstallments 对象 - 操作分期-
interest_grace_periodint利息宽限期(月)-
interest_payment_month_periodint分期利率收取频率(月)-
interest_typeenum利率类型枚举值 - 摊销方法和利率计算方式-
iof_amountfloatIOF 总金额(基础 IOF 和附加 IOF 之和)-
issue_amountfloat信贷操作的发行/名义金额-
issue_datedate操作合同发行日期-
net_external_contract_fee_amountfloatQI Tech 向合作方回扣的操作净费用金额-
operation_typeenum操作类型枚举值-
post_fixed_interest_baseenum利率基准枚举值 - 利率计算基准-
post_fixed_interest_rateobjectInterest Rate 对象 - 合同浮动利率指数-
prefixed_interest_rateobjectInterest Rate 对象 - 合同名义固定利率-
principal_amortization_month_periodint分期本金收取频率(月)-
principal_grace_periodint本金宽限期(月)-
requester_keystring合作方在 QI 内的唯一标识密钥-
total_pre_fixed_amountfloat债务人在信贷操作中支付的利息总额-

Contract Fees 对象

字段类型描述最大字符数
amountfloat费用金额(以百分比或绝对值表示,取决于 amount_type 字段的值)-
amount_typeenumamount_type 枚举值 - 费用金额单位-
fee_amountfloat操作中收取的绝对费用金额-
fee_typeenum费用类型枚举值 - 操作中收取的费用类型-

Installments 对象

字段类型描述最大字符数
business_due_datedate分期在工作日的到期日-
calendar_daysint分期之间的自然日数-
due_datedate分期的自然日到期日-
due_principalfloat分期到期日付款前的剩余本金-
has_interestbooleantrue - 分期计息指示器-
installment_numberint分期编号-
post_fixed_amountfloat分期支付的浮动利息金额-
pre_fixed_amountfloat分期支付的固定利息金额-
principal_amortization_amountfloat分期支付的摊销金额-
tax_amountfloat分期的基础 IOF-
total_amountfloat分期总金额-
workdaysint分期之间的工作日数-

Interest Rate 对象

字段描述最大字符数
annual_rate以年化小数表示的固定/浮动利率-
daily_rate以日度小数表示的固定/浮动利率-
interest_base利率基准枚举值 - 利率计算基准-
monthly_rate以月度小数表示的固定/浮动利率-

枚举值

Person Type 枚举值

枚举值描述
legal法人
natural自然人

Account Type 枚举值

枚举值描述
checking_account活期账户
deposit_account存款账户
guaranteed_account担保账户
investment_account投资账户
payment_account支付账户
saving_account储蓄账户
salary_account工资账户

Amount Type 枚举值

枚举值描述
absolute绝对值
percentage百分比值

Interest Type 枚举值

枚举值描述
pre_price_daysPrice 摊销法(等额分期),按日计算固定利率
pre_pricePrice 摊销法(等额分期),按固定周期(30天)计算固定利率
pre_sacSAC 摊销法(等额本金),按日计算固定利率
post_sacSAC 摊销法(等额本金),按日计算基于固定利率加浮动指数(cdi、ipca 或 igpm)的利率
post_pricePrice 摊销法(等额分期),按固定周期(30天)计算基于固定利率加浮动指数(cdi、ipca 或 igpm)的利率
post_price_daysPrice 摊销法(等额分期),按日计算基于固定利率加浮动指数(cdi、ipca 或 igpm)的利率

Credit Operation Type 枚举值

枚举值描述
ccb银行信贷凭证
cce出口信贷凭证
cci房地产信贷凭证
nce出口信贷票据

Interest Base 枚举值

枚举值描述
workdays以工作日为基准计算利率,按 252 天/年计算
calendar_days以自然日为基准计算利率,按 360 天/年计算
calendar_days_365以自然日为基准计算利率,按 365 天/年计算

Fee Type 枚举值

每种费用类型必须提前由 QI Tech 启用和配置

枚举值描述
tac开户费
spread信贷操作收购金额中收取的溢价
warranty_analysis担保分析费
ted_feeTED 费用
spread_ted_fee信贷操作收购金额中收取的 TED 费用溢价