Appearance
2.1.5 用信试算(必选)
用信试算;根据用户选择的额度,每期天数,期数,权益包费率,日费率等信息,算出每期的费用和权益包的费用
- 接口提供方: 流量承接方(KN)
- 接口调用方: 流量提供方
- method: credit_utilization_calculation
请求参数
| 参数 | 类型 | 必选 | 说明 | 备注 |
|---|---|---|---|---|
| receiver_credit_id | string | N | 流量承接方的授信id | 不超过32位;receiver_credit_id&provider_credit_id传其中一个即可 |
| provider_credit_id | string | N | 流量提供方的授信id | 不超过32位;receiver_credit_id&provider_credit_id传其中一个即可 |
| product | object | Y | 用户选择的产品形态 | - |
product
| 参数 | 类型 | 必选 | 说明 | 备注 |
|---|---|---|---|---|
| select_equity | bool | Y | 是否勾选权益 | - |
| amount | string | Y | 额度 | 单位:泰铢 |
| term | int | Y | 每期天数 | 单位:天 |
| period | int | Y | 期数 | - |
| rate | string | Y | 权益包费率(百分之N) | - |
| interest | string | Y | 日费率(百分之N) | 精度为3位小数 |
响应参数
| 参数 | 类型 | 必选 | 说明 | 备注 |
|---|---|---|---|---|
| repayment_plan_list | array object | Y | 还款计划 | - |
| equity_detail | object | Y | 权益明细 | - |
repayment_plan_list.object
| 参数 | 类型 | 必选 | 说明 | 备注 |
|---|---|---|---|---|
| period | int | Y | 期次 | - |
| term | int | Y | 当期天数 | 单位:天 |
| repay_timestamp | long | Y | 应还时间的时间戳(秒级) | - |
| capital_amount | string | Y | 本金 | 单位:泰铢 |
| interest_amount | string | Y | 利息 | 单位:泰铢 |
| is_exempted | bool | Y | 是否被豁免 | - |
service_detail
| 参数 | 类型 | 必选 | 说明 | 备注 |
|---|---|---|---|---|
| amount | string | Y | 权益包费用 | - |
请求参数示例
json
{
"receiver_credit_id": "2020036532193609",
"product": {
"select_equity": true,
"amount": "1000",
"term": 15,
"period": 4,
"rate": "40",
"interest": "0.098"
}
}响应参数示例
json
{
"code": 0,
"message": "success",
"data": {
"repayment_plan_list": [
{
"period": 1,
"term": 15,
"repay_timestamp": 1756885676,
"capital_amount": "2000",
"interest_amount": "1000",
"is_exempted": false
},
{
"period": 2,
"term": 15,
"repay_timestamp": 1756885676,
"capital_amount": "2000",
"interest_amount": "1000",
"is_exempted": false
},
{
"period": 3,
"term": 15,
"repay_timestamp": 1756885676,
"capital_amount": "2000",
"interest_amount": "1000",
"is_exempted": false
},
{
"period": 3,
"term": 45,
"repay_timestamp": 1756885676,
"capital_amount": "0",
"interest_amount": "1000",
"is_exempted": false
}
],
"equity_detail": {
"amount": "500"
}
}
}