+++
post:/ThirdpartyApi/Card/send
*string:sign_type=account#认证类型(暂只支持账户认证)
*string:settlement#结算类型 (预付费:prepayment;后付费:postpayment)
*username#用户名
*password#md5加密后的密码(32位小写)
*string:order_no#订单号由接口调用者自主生成,且全局唯一,长度在50以内
string:desc#备注,长度250字符以内
*string-json:send_data#发送电子服务券的json数据,同一订单的请求数据最多不得超过300个。phone:手机号码, package_code:套餐编号,细节具体格式参照下方发送示例
<<<
发送示例
sign_type=account
&settlement=postpayment
&username=test
&password=098f6bcd4621d373cade4e832627b4f6
&order_no=TEST20160606021564
send_data=[{
"phone":"13412345678",
"name":"小明",
"package_code":"50"
},{
"phone":"13412345679",
"name":"小李",
"package_code":"100"
}]
<<<
成功示例
[{
"result_status": "success",//结果状态
"result_msg": "成功",//结果信息
"error_code": "",//错误返回码
"order_no": "TEST20160606021564",//订单号
"total": "1",//请求数据总数
"total_fee": "55.00",//请求数据总价
"fee": "55.00",//实际成功扣费
"create_time": "2016-04-26 23:45:56",//记录时间
"send_result":{
"status":"success",//单个数据完成状态
"phone":"13412345678",
"package_code":"50",
"card_id":"1000568"//服务券id
},{
"status":"success",
"phone":"13412345678",
"package_code":"50",
"card_id":"1000569"
}
}]
<<<
失败示例(认证失败)
[{
"result_status":"fail",
"result_msg":"密码错误!",
"send_result":20005
}]
<<<
成功示例(部分服务券发送失败)
[{
"result_status": "success",//结果状态
"result_msg": "成功",//结果信息
"error_code": "",//错误返回码
"order_no": "TEST20160606021564",//订单号
"total": "1",//请求数据总数
"total_fee": "70.00",//请求数据总价
"fee": "30.00",//实际成功扣费
"create_time": "2016-04-26 23:45:56",//记录时间
"send_result":{
"status":"success",
"phone":"13412345678",
"package_code":"01",
"card_id":"1000568"
},{
"status":"fail",
"phone":"123",
"package_code":"50",
'msg':'手机号码有误'
},{
"status":"fail",
"phone":"13412345678",
"package_code":"*&……(",
'msg':'套餐编号不合法'
},{
"status":"success",
"phone":"13412345678",
"package_code":"50",
'msg':'套餐编号不合法'
}
}]
+++