curl-post json格式数据



--1、请求入口(我们自己请求参数"taskId": "pushContractData" )


curl -l -H "Content-type: application/json" -X POST -d '{ "annualRate": "12.0", "appKey": "3m8qa5mxi2z2vyel", "borrowerType": "1", "business": "13", "clientId": "5976308326696688", "contractName": "个人信用贷款", "contractNumber": "0121-2015120012", "districtCode": "440000", "endDate": "2017-12-13", "ensureInfos": [], "enterpriseBorrower": { "address": "广州市天河大厦4804-4806室", "industryInvolved": 13, "industryType": 3, "licenseCode": "45580101MA59AXLP7R", "licenseEndDate": "2044-10-23", "name": "租赁有限公司", "phone": "13647526111", "reallyCapital": "0.0", "scale": 1 }, "isEntrust": "0", "loanMethod": "1", "money": "2060000.0", "mortgageInfos": [], "platformCost": "0.0", "pledgeInfos": [], "purpose": "3", "rate": "12.0", "rateType": 5, "repayMethod": 2, "repayPlans": [ { "endDate": "2017-04-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-01-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-07-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-10-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-07-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-08-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-02-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-11-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-05-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-10-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-02-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-06-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-03-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-09-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-11-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-08-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-05-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-09-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-06-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-01-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-12-13", "interest": "20600.0", "money": "85833.41" }, { "endDate": "2016-04-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2016-12-13", "interest": "20600.0", "money": "85833.33" }, { "endDate": "2017-03-13", "interest": "20600.0", "money": "85833.33" } ], "repaySource": "经营收入", "reqId": "91440101MA59AXLP7R071000039165", "roundStr": "899487550", "sign": "daec0acc4da0d5f1e97a0a8a183a0278", "signTime": "2015-12-11 00:00:00", "startDate": "2015-12-13", "term": 24, "termType": 3, "token": "ade383db7b4eaef54fd615220401370c","taskId": "pushContractData" }' http://gzxd.jryzt.cn:8081/supervision/invokeDispatcher 




--2、请求入口(监管那边提供的请求参数)


  --2.1、直接访问监管的接口地址
          curl -l -H "Content-type: application/json" -X POST -d '{"annualRate":"12.0","appKey":"3m8qa5mxi2z2vyel","borrowerType":"1","business":"13","clientId":"5976308326696688","contractName":"个人信用贷款","contractNumber":"0121-2015120012","districtCode":"440000","endDate":"2017-12-13","ensureInfos":[],"enterpriseBorrower":{"address":"广州市天河大厦4804-4806室","industryInvolved":13,"industryType":3,"licenseCode":"45580101MA59AXLP7R","licenseEndDate":"2044-10-23","name":"租赁有限公司","phone":"13647526111","reallyCapital":"0.0","scale":1},"isEntrust":"0","loanMethod":"1","money":"2060000.0","mortgageInfos":[],"platformCost":"0.0","pledgeInfos":[],"purpose":"3","rate":"12.0","rateType":5,"repayMethod":2,"repayPlans":[{"endDate":"2017-04-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-01-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-07-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-10-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-07-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-08-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-02-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-11-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-05-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-10-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-02-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-06-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-03-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-09-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-11-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-08-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-05-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-09-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-06-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-01-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-12-13","interest":"20600.0","money":"85833.41"},{"endDate":"2016-04-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-12-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-03-13","interest":"20600.0","money":"85833.33"}],"repaySource":"经营收入","reqId":"91440101MA59AXLP7R071000039165","roundStr":"899487550","sign":"daec0acc4da0d5f1e97a0a8a183a0278","signTime":"2015-12-11 00:00:00","startDate":"2015-12-13","term":24,"termType":3,"token":"ade383db7b4eaef54fd615220401370c"}' http://183.63.254.107:8882/supervise-receive/api/loan-contract


 
  --2.2、通过我们中间服务调用监管接口("taskId": "pushContractData" )
 curl -l -H "Content-type: application/json" -X POST -d '{"annualRate":"12.0","appKey":"3m8qa5mxi2z2vyel","borrowerType":"1","business":"13","clientId":"5976308326696688","contractName":"个人信用贷款","contractNumber":"0121-2015120012","districtCode":"440000","endDate":"2017-12-13","ensureInfos":[],"enterpriseBorrower":{"address":"广州市天河大厦4804-4806室","industryInvolved":13,"industryType":3,"licenseCode":"45580101MA59AXLP7R","licenseEndDate":"2044-10-23","name":"租赁有限公司","phone":"13647526111","reallyCapital":"0.0","scale":1},"isEntrust":"0","loanMethod":"1","money":"2060000.0","mortgageInfos":[],"platformCost":"0.0","pledgeInfos":[],"purpose":"3","rate":"12.0","rateType":5,"repayMethod":2,"repayPlans":[{"endDate":"2017-04-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-01-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-07-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-10-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-07-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-08-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-02-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-11-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-05-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-10-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-02-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-06-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-03-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-09-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-11-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-08-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-05-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-09-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-06-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-01-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-12-13","interest":"20600.0","money":"85833.41"},{"endDate":"2016-04-13","interest":"20600.0","money":"85833.33"},{"endDate":"2016-12-13","interest":"20600.0","money":"85833.33"},{"endDate":"2017-03-13","interest":"20600.0","money":"85833.33"}],"repaySource":"经营收入","reqId":"91440101MA59AXLP7R071000039165","roundStr":"899487550","sign":"daec0acc4da0d5f1e97a0a8a183a0278","signTime":"2015-12-11 00:00:00","startDate":"2015-12-13","term":24,"termType":3,"token":"ade383db7b4eaef54fd615220401370c","taskId": "pushContractData"}' http://gzxd.jryzt.cn:8081/supervision/invokeDispatcher

猜你喜欢

转载自blog.csdn.net/lzljava/article/details/80534549
今日推荐