投诉列表
POST/api/complain/list
查询本商户的渠道投诉单列表(分页 + 状态筛选),仅返回本商户数据。
请求参数
| 参数 | 必填 | 说明 |
| status | 否 | 状态筛选:0/1/2 或 pending(待处理)/ processing(处理中)/ completed(已完结),不传查全部 |
| page | 否 | 页码,默认 1 |
| size | 否 | 每页条数,默认 20,最大 100 |
| 公共签名参数 | 是 | pid / sign_type / timestamp / nonce / sign |
应答字段(data)
| 字段 | 说明 |
| items / rows | 投诉单数组(两者内容一致):id / thirdid(渠道投诉单号)/ trade_no / out_trade_no / complain_type / type / pay_type / title / times / amount_fen / status(Int 0/1/2)/ status_name(本站枚举)/ status_text / created_at 等 |
| total | 符合条件的总条数 |
| page / size | 当前页码 / 每页条数 |
应答示例
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"id": 12,
"trade_no": "T2601010000000001",
"thirdid": "WXC-20260101-0001",
"channel_id": 3,
"complain_type": "REFUND",
"title": "用户投诉未收到货",
"times": 1,
"amount_fen": 5000,
"status": 0,
"status_name": "pending",
"status_text": "待处理",
"pay_type": "wxpay",
"created_at": "2026-01-01 20:00:00"
}
],
"total": 1,
"page": 1,
"size": 20
}
}
错误码
| 错误码 | 说明 |
| 4465 | 参数不合法(如 status 取值非法) |
签名规则见 签名算法;通用错误码见 错误码总表。