Appearance
融资放款试算
接口说明
融资前试算,计算本息和还款计划
接口地址
POST /api/loan/trial
请求参数 (data 解密后)
json
{
"memberId": 1000001,
"projectId": 1,
"loanAmount": 10000000,
"loanSchedules": 12,
"loanScheduleDays": 30,
"repayMethod": 1,
"dailyRate": 33333,
"penaltyDailyRate": 50000,
"repayDay": 25,
"interestSubsidyDays": 0
}字段说明
| 字段名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| memberId | Long | 是 | 采购商成员ID |
| projectId | Long | 是 | 项目ID |
| loanAmount | Long | 是 | 融资金额(分) |
| loanSchedules | Integer | 是 | 分期期数 |
| loanScheduleDays | Integer | 是 | 单期天数 |
| repayMethod | RepayMethod | 是 | 还款方式:1-一次性还本付息,2-先息后本,3-等额本息,4-等额本金 |
| dailyRate | Integer | 是 | 日利率(亿分之)例:0.033333%=33333 |
| penaltyDailyRate | Integer | 是 | 罚息日利率(亿分之) |
| repayDay | Integer | 是 | 还款日(1-31) |
| interestSubsidyDays | Integer | 否 | 贴息天数 |
特别说明
repayDay(还款日):
- 若大于当月最后一天时,以最后一天作为当月还款日
- 若大于最后一期结清日,以还款日作为结清日
- 理论上应避免出现上面的情况
响应参数 (data 解密后)
json
{
"code": "",
"message": "",
"data": {
"totalPrincipal": 10000000,
"totalInterest": 1200000,
"totalAmount": 11200000,
"totalInterestSubsidyAmount": 60000,
"schedules": [
{
"scheduleNo": 1,
"startDate": "2025-01-14",
"dueDate": "2025-02-25",
"principal": 0,
"interest": 100000,
"totalAmount": 100000,
"interestSubsidyAmount": 0
},
{
"scheduleNo": 2,
"startDate": "2025-02-26",
"dueDate": "2025-03-25",
"principal": 0,
"interest": 100000,
"totalAmount": 100000,
"interestSubsidyAmount": 0
},
{
"scheduleNo": 12,
"startDate": "2025-12-26",
"dueDate": "2025-12-25",
"principal": 10000000,
"interest": 100000,
"totalAmount": 10100000,
"interestSubsidyAmount": 60000
}
]
}
}响应字段说明
| 字段名 | 类型 | 说明 |
|---|---|---|
| totalPrincipal | Long | 总本金(分) |
| totalInterest | Long | 总利息(分) |
| totalAmount | Long | 总本息(分) |
| totalInterestSubsidyAmount | Long | 总贴息金额(分) |
| schedules | Array | 还款计划 |
| schedules[].scheduleNo | Integer | 期数 |
| schedules[].startDate | String | 当期开始日期(yyyy-MM-dd) |
| schedules[].dueDate | String | 到期日期(yyyy-MM-dd) |
| schedules[].principal | Long | 本期本金(分) |
| schedules[].interest | Long | 本期利息(分) |
| schedules[].totalAmount | Long | 本期本息(分) |
| schedules[].interestSubsidyAmount | Long | 当期贴息金额(分) |