TA的每日心情 | 开心 2017-4-26 14:33 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]测试小兵
|
最近公司要合作一款保险产品,大大给了我报文,让我整理用例
请求数据如下
{
"CwHeader": {
"tradeCode": "CwUnderwrite",//接口编码,备用
"channelId": "2",//渠道id,2为自建商城
"clientType": "2",//客户端id 1-移动端 2-pc端
"agentId": "1",//销售员id 暂时写1
"userId": "1",//登录用户id 暂时写1
"serialNo": ""//流水号,备用
},
"CwOrder": {
"orderNo": "",//订单号,为空
"productCode": "010100406001",//我方产品编码
"planCode": "",//保险计划编码,备用
"totalPrem": "1500.00"//总保费
},
"CwAppnt": {//投保人
"name": "阳作杰",
"gender": "0",//性别
"birthday": "1988-06-10",
"idType": "0",//0为身份证
"idNo": "320811198806101710",//身份证
"idEndDate": "9999-12-31",//身份证有效期止期
"nativePlace": "CHN",//国籍
"occupationCode": "2070501",//职业代码
"marriage": "9",//婚姻状况
"province": "440000",//省
"city": "440200",//市
"county": "440203",//区
"postAddress": "广东省韶关市市辖区18路",
"zipCode": "100022",//邮编
"mobile": "18580644835",
"email": "445020591@qq.com",
"height": "175",
"weight": "70"
},
"CwInsureds": [//被保人
{
"serialNo": "1",
"relationToMainInsured": "00",//被保人与主被保人关系
"relationToAppnt": "00",//被保人与投保人关系
"name": "阳作杰",
"gender": "0",
"birthday": "1988-06-10",
"idType": "0",
"idNo": "320811198806101710",
"idEndDate": "9999-12-31",
"nativePlace": "CHN",
"occupationCode": "2070501",
"marriage": "9",
"province": "440000",
"city": "440200",
"county": "440203",
"postAddress": "广东省韶关市市辖区18路",
"zipCode": "100022",
"mobile": "18580644835",
"email": "445020591@qq.com",
"height": "175",
"weight": "70"
}
],
"CwRisk": {//险种
"productCode": "010100406001",//我方产品编码
"calType": "0",//计算方式:0-保额算保费 1-保费算保额
"planCode": "",
"amnt": "50000",//保额
"prem": "525",//保费
"mult": "1",//份数
"age": "29",
"ageUnit": "Y",//年龄单位,一般是Y代表年
"gender": "0",
"payIntv": "12",//交费间隔 12代表年交 0代表趸交
"insurePeriodUnit": "A",//保险期间单位,A代表年龄
"insurePeriod": "60",//保险期间
"payPeriodUnit": "Y",//交费期间单位,Y代表年
"payPeriod": "20",//交费期间
"CwDutys": [//责任
{
"dutyCode": "903300",//我方责任编码
"useRisk": "0",//是否使用险种要素 0-使用 1-不使用
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20"
}
],
"CwSubRisks": [//附加险
{
"productCode": "010100406003",
"calType": "0",
"useMainRisk": "0"
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20",
"CwDutys": [
{
"dutyCode": "903300",
"useRisk": "0",
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20"
}
]
}
]
},
"CwCusImparts": [//告知
{
"impartType": "1",
"impartVer": "10",
"impartCode": "000",
"impartParammodle": "175,0,0,1,0,,,,65"
}
]
}
大约有70个字段,
大家有什么好的工具推荐吗?感谢各位了。
|
|