平台商发起名下子商户子商户产品及费率修改
测试请求地址 | https://cbtrxtest.helipay.com/cbtrx/rest/platMerchant/modifySubMerchantProductAndFee |
请求地址 | https://cbptrx.helipay.com/cbtrx/rest/platMerchant/modifySubMerchantProductAndFee |
提交方式 | 采用POST方法提交,requestbody传值 Content-Type=[application/json;charset=UTF-8] |
签名算法 | UTF-8字符编码 SHA256签名 AES加密 |
名称 | 参数 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|---|
商户编号 | merchantNo | String(10) | 是 | 商户编号 | |
平台商编号 | platMerchantNo | String(10) | 否 | 商户对应的平台商,不填写默认为商户编号 | 商户对应的平台商,不填写默认为商户编号 |
订单号 | orderNo | String(64) | 是 | 请求订单号,商户唯一 | 商户唯一 |
产品编码 | productCode | String(50) | 是 | PLATMERCHANTREGIST | PLATMERCHANTREGIST |
开通产品签名排序 | openProduct[index].index | int | 是 | 1、2、3 | 按照产品开通签名顺序排序 |
开通产品产品编码 | openProduct[index].productCode | String(15) | 是 | ONLINEB2B | 产品编码 |
产品百分比费率 | openProduct[index].percentageCost | double | 是 | 2.00 | 产品百分比费率 |
单笔费率 | openProduct[index].singleCost | double | 是 | 3.00 | 产品单笔手续费 |
最低手续费 | openProduct[index].minCost | double | 是 | 1.00 | 最低手续费 |
最高手续费 | openProduct[index].maxCost | double | 是 | 10.00 | 最高手续费 |
借贷记类型 | openProduct[index].ruleId | String | 否 | DEBIT | 支持借贷记得产品必须上送 不支持可以不上送 |
名称 | 参数 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|---|
响应码 | errorCode | String(10) | 是 | 0000 | 0000 代表请求成功 |
响应信息 | errorMessage | String(200) | 否 | 成功 | 响应信息 错误信息 |
@RequestMapping(value = "/modifySubMerchantProductAndFee") public ModelAndView modifySubMerchantProductAndFee(@ModelAttribute @Valid SubMerchantProductAndFeeModifyRequestForm request, BindingResult result) { ModelAndView mav = new ModelAndView(); if (result.hasErrors()) { throw new CommonSystemException(CommonSystemException.ILLEGAL_DATA_REQUEST[0], result.getFieldError().getDefaultMessage()); } HeliRequest heliRequest = remoteService.postRemoteInvoke(LoadPropertiesUtils.getProperty("modifySubMerchantProductAndFee"), JSONObject.toJSONString(encodeAndSign(request, request.getProductCode(), request.getPlatMerchantNo(), request.getMerchantNo())), HeliRequest.class); SubMerchantProductAndFeeModifyResponseForm responseForm = decode(heliRequest, SubMerchantProductAndFeeModifyResponseForm.class, request.getProductCode(), request.getPlatMerchantNo(), request.getMerchantNo()); if (!CbDemoConstants.SUCCESS_CODE.equals(responseForm.getErrorCode())) { throw new CommonSystemException(responseForm.getErrorCode(), responseForm.getErrorMessage()); } mav.setViewName("/plat/modifySubMerchantProductAndFeeResult"); mav.addObject("responseForm", responseForm); return mav; }
错误码 | 错误码描述 | 解决方案 |
---|---|---|