此接口支持新增融资客户
测试请求地址 | http://cbtrxtest.helipay.com/cbtrx/rest/FinancingCustomer/receiveInfoAddOrModify |
请求地址 | http://cbptrx.helipay.com/cbtrx/rest/FinancingCustomer/receiveInfoAddOrModify |
提交方式 | 采用POST方法提交,requestbody传值 Content-Type=[application/json;charset=UTF-8] |
签名算法 | UTF-8字符编码 SHA256签名 AES加密 |
名称 | 参数 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|---|
推广代理编号 | promotionAgencyNo | String | 是 | Pr00000041 | 合利宝分配的唯一推广代理编号 |
客户名称 | financingCustomerName | String | 是 | XX有限公司 | |
客户联系人姓名 | customerContactName | String | 是 | 张三 | |
客户联系人电话 | customerContactPhone | String | 是 | 13212345345 | |
年营业额(万) | annualTurnover | String | 是 | 1000 | |
公司类型 | companyType | String | 是 | 物流 | |
意向产品 | product | String | 是 | 01,02 | 01-企业信用贷 02-应收账款融资 03-反向保理 04-电商融资 如意向产品为多个,中间以逗号间隔,如:01,04 |
名称 | 参数 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|---|
响应码 | errorCode | String | 0000 | 0000 代表请求成功 | |
响应信息 | errorMessage | String | 否 | 成功 | 响应信息 错误信息 |
推广代理编号 | promotionAgencyNo | String | 是 | Pr00000041 | 合利宝分配的唯一推广代理编号 |
融资客户编号 | financingCustomerNo | String | 是 | Fi10000055 | 合利宝分配的唯一融资客户编号 |
客户名称 | financingCustomerName | String | 是 | XX有限公司 | |
客户联系人姓名 | customerContactName | String | 是 | 张三 | |
客户联系人电话 | customerContactPhone | String | 是 | 13212345345 | |
年营业额(万) | annualTurnover | String | 是 | 1000 | |
公司类型 | companyType | String | 是 | 物流 | |
意向产品 | product | String | 是 | 01,02 | 01-企业信用贷 02-应收账款融资 03-反向保理 04-电商融资 如意向产品为多个,中间以逗号间隔,如:01,04 |
@Test public void testAddFinacingInfo(){ RemoteServiceImpl remoteService = new RemoteServiceImpl(); FinancingRequest financingRequest = remoteService.postRemoteInvoke(LoadPropertiesUtils.getProperty("financingInfoModifyUrl"), instanllDto(), FinancingRequest.class); FinancingResponseForm financingResponseForm = HandleDataUtils.decode(financingRequest, FinancingResponseForm.class, financingRequest.getDefaultParam(), financingRequest.getPromotionAgencyNo()); logger.info("#####解密后的内容为{}", financingResponseForm.toString()); } public static String instanllDto(){ FinancingRequestForm financingRequestForm = new FinancingRequestForm(); financingRequestForm.setPromotionAgencyNo("Pr00000001"); //推广代理编号 financingRequestForm.setFinancingCustomerName("李四");//客户名称 financingRequestForm.setCustomerContactName("张三");//客户联系人姓名 financingRequestForm.setCustomerContactPhone("18888818888");//客户联系人电话 financingRequestForm.setAnnualTurnover("10");//年营业额(万) financingRequestForm.setCompanyType("私营"); //客户公司类型 financingRequestForm.setProduct("01");//意向产品 financingRequestForm.setDefaultParam(CbDemoConstants.DEFAULTP); return JSONObject.toJSONString(encodeAndSign(financingRequestForm,financingRequestForm.getDefaultParam(),financingRequestForm.getPromotionAgencyNo())); }