接口地址
生产地址: https://cus.allinpay.com/cusapi/riskfeeback/wxcomplaintorderdetail
测试地址: https://syb-test.allinpay.com/vsppcusapi/iskfeeback/wxcomplaintorderdetail
请求参数
字段名称 |
类型 |
可空 |
说明 |
最长长度 |
备注 |
---|---|---|---|---|---|
appid |
String |
否 |
通联分配的appid |
8 |
|
orgid |
String |
是 |
代理商号 |
15 |
|
cusid |
String |
否 |
对接商户号 |
15 |
|
signtype |
String |
否 |
签名类型 |
15 |
SM2/RSA |
version |
String |
否 |
接口版本编号 |
2 |
12 |
timestamp |
String |
否 |
调用时间戳 |
14 |
yyyymmddhhmmss |
randomstr |
String |
否 |
随机字符串 |
32 |
主要用于加签 |
sign |
String |
否 |
sign校验码 |
256 |
详见安全规范 |
complaintorderid |
String |
否 |
投诉单号 |
32 |
|
返回数据
字段ID |
字段名称 |
取值 |
可空 |
长度 |
备注 |
||
---|---|---|---|---|---|---|---|
retcode |
返回码 |
SUCCESS/FAIL |
否 |
8 |
此字段是通信标识,非交易结果 交易是否成功需要查看trxstatus来判断 |
||
retmsg |
返回码说明 |
|
是 |
100 |
|
||
以下信息只有当retcode为SUCCESS时有返回 |
|||||||
records |
返回结果 |
json 对象格式: "errcode": 0, "errmsg": "ok", "complaintOrder": { "headImgUrl": "头像URL", "orderId": "微信支付订单号", "openId": " openId", "createTime": 1704277361,// 投诉发起时间 "phoneNumber": "17709692484",//联系方式 "type": 621, //投诉问题分类 "status": 102,// 订单状态 "customerMaterial": { "mediaIdList": [], 投诉内容图片cdn(出于安全性考虑 目前该图片url有过期时间 如需查看图片 需每次重新调用该接口获取 防止图片过期导致无法查看) "content": "买错了要退,谢谢" //投诉内容 }, "complaintOrderId": 8759334,// 订单id "productName": "订单:202401031041342434",//商品名称 "payTime": 1704276869,// 支付时间 "totalCostStr": "¥89.87",//交易金额 "expireTime": 1704277470,// 投诉单当前状态到期时间,0为不存在 "outTradeNo": "240103124272165040",//商家订单号 "nickName": "橙子橙子大橙子 ",//微信昵称 "appealState": 0//申诉状态 }, // 投诉进度 item:[{ itemType: 1, //投诉节点状态 time: 1658903527, //时间 content: "", //内容 mediaIdList: ["https://asdfasdf"], //图片cdn列表 phoneNumber: 13599125777, //手机号 blameResult: 0, nickName: "", appealItemType: 401, // 投诉节点申诉状态(item处于申诉阶段才有) }], |
是 |
|
字段信息用了base64编码 查看原信息需解码 |
||
|
|
returnBill: { returnId: "23234234234", //退货id waybillId: "YDxxxxd", //运单号 deliveryName: "韵达快递", //运力公司 orderStatus: 4 //运单状态 } ] |
|
|
|
||
sign |
签名 |
|
否 |
256 |
详见安全规范 |