Skip to content

融资放款试算

接口说明

融资前试算,计算本息和还款计划

接口地址

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
}

字段说明

字段名类型必填说明
memberIdLong采购商成员ID
projectIdLong项目ID
loanAmountLong融资金额(分)
loanSchedulesInteger分期期数
loanScheduleDaysInteger单期天数
repayMethodRepayMethod还款方式:1-一次性还本付息,2-先息后本,3-等额本息,4-等额本金
dailyRateInteger日利率(亿分之)例:0.033333%=33333
penaltyDailyRateInteger罚息日利率(亿分之)
repayDayInteger还款日(1-31)
interestSubsidyDaysInteger贴息天数

特别说明

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
      }
    ]
  }
}

响应字段说明

字段名类型说明
totalPrincipalLong总本金(分)
totalInterestLong总利息(分)
totalAmountLong总本息(分)
totalInterestSubsidyAmountLong总贴息金额(分)
schedulesArray还款计划
schedules[].scheduleNoInteger期数
schedules[].startDateString当期开始日期(yyyy-MM-dd)
schedules[].dueDateString到期日期(yyyy-MM-dd)
schedules[].principalLong本期本金(分)
schedules[].interestLong本期利息(分)
schedules[].totalAmountLong本期本息(分)
schedules[].interestSubsidyAmountLong当期贴息金额(分)

粒粒通金融服务平台 API 文档