补充案件合同数据

服务说明

[!NOTE] 通过此接口可以给已提交的案件补充案件合同数据

http请求方式

[!NOTE] POST application/x-www-form-urlencoded

http请求地址

[!NOTE] $SERVICE_URL/v2/arb/addSupplement #其中$SERVICE_URL为生产或测试的地址

http请求参数

参数 类型 是否必填 默认值 说明
orderNo long * 案件订单号
breakTime string * 违约时间 YYYY-MM-DD
debtAmount double * 借款金额
borrowPeriod int * 借款时间
borrowPeriodUnit int * 借款时间单位 0:年 1:月 2:天
actualBorrowTime string * 放款时间 YYYY-MM-DD
loanAmount double * 实际放款金额
totalInterestAmount double * 还款本息总计
repaymentAmount double * 还款本金
repaymentInterest double * 还款利息
advisoryAmount double ? 咨询费
borrowRate int * 借款年利率 %
contactAmount double * 合同约定借款金额
contractTime string * 合同签订时间 YYYY-MM-DD
borrowStartTime string * 借款开始时间 YYYY-MM-DD
borrowEndTime string * 借款结束时间 YYYY-MM-DD
interestAmount double * 尚欠利息
borrowAmount double * 尚欠本金
partialFlag int ? 是否分期 0:否 1:是
borrowPurpose string ? 借款用途
repayWay string ? 还款方式
redPacketMoney int ? 红包金额
lendNumber int ? 出借人数

代码实现

JAVA实现
        RequestUtils requestUtils=RequestUtils.init(SERVICE_URL,APP_KEY,APP_SECRET);//建议生成为spring bean
        //构建请求参数
        Map<String,Object> params=new HashMap<>();
        params.put("orderNo","9139164043976xxxxxx");
        params.put("breakTime", "2019-11-20");
        params.put("debtAmount", 50000.00);
        params.put("borrowPeriod", 1);
        params.put("borrowPeriodUnit", 0);
        params.put("actualBorrowTime", "2018-11-19");
        params.put("loanAmount", 50000.00);
        params.put("totalInterestAmount", 56000.00);
        params.put("repaymentAmount", 50000.00);
        params.put("repaymentInterest", 6000.00);
        params.put("borrowRate", 12);
        params.put("contactAmount", 50000.00);
        params.put("contractTime", "2018-11-15");
        params.put("borrowStartTime", "2018-11-19");
        params.put("borrowEndTime", "2019-11-19");
        params.put("interestAmount", 6000.00);
        params.put("borrowAmount", 50000.00);
        params.put("repayWay", "个人消费");

        ResultInfo<Void> ri= requestUtils.doPost("/v2/arb/addSupplement ",params);
PHP实现
//构建请求工具
$requestUtils=new RequestUtils($serviceUrl, $appkey, $appSecret);
//初始化合同参数
$request=array(
    "orderNo" => "9139164043976xxxxxx",
    "breakTime" => "2019-11-20",
    "debtAmount" => "50000.00",
    "borrowPeriod" => "1",
    "borrowPeriodUnit" => "0",
    "actualBorrowTime" => "2018-11-19",
    "loanAmount" => "50000.00",
    "totalInterestAmount" => "56000.00",
    "repaymentAmount" => "50000.00",
    "repaymentInterest" => "6000.00",
    "borrowRate" => "12",
    "contactAmount" => "50000.00",
    "contractTime" => "2018-11-15",
    "borrowStartTime" => "2018-11-19",
    "borrowEndTime" => "2019-11-19",
    "interestAmount" => "6000.00",
    "borrowAmount" => "50000.00",
    "repayWay" => "个人消费"
);
//发起请求
$response=$requestUtils->doPost("/v2/arb/addSupplement ",$request);

http返回参数

[!NOTE] 返回response为application/json的数据,其字段说明如下

参数 类型 是否必返回 说明
success bool * 成功true;异常false
msg string ? 异常时,返回异常原因
resultCode int * 成功0,其它参考附录
data void 返回业务内容

[!NOTE] 返回结果,参考:

//正确响应:
{"success":true}
//错误响应:
{"msg":"app_secret不可用","resultCode":"HTTP_PARAM_ERROR","success":false}

results matching ""

    No results matching ""