查询投诉单协商历史

更新时间:2025.08.28

商户可通过调用此接口,查询指定投诉单的用户与商户的协商历史,以分页输出查询结果,方便商户根据处理历史来制定后续处理方案。

接口说明

支持商户:【普通服务商】 【从业机构(银行)】 【从业机构(支付机构)】 【渠道商】 【清算机构】

请求方式:【GET】/v3/merchant-service/complaints-v2/{complaint_id}/negotiation-historys

请求域名:【主域名】https://api.mch.weixin.qq.com 使用该域名将访问就近的接入点

     【备域名】https://api2.mch.weixin.qq.com 使用该域名将访问异地的接入点 ,指引点击查看

请求参数

Header  HTTP头参数

 Authorization  必填 string

请参考签名认证生成认证信息


 Accept  必填 string

请设置为application/json


path  路径参数

 complaint_id  必填   string(64)

【投诉单号】 投诉单对应的投诉单号


query  查询参数

 limit  选填   integer

【分页大小】 设置该次请求返回的最大协商历史条数,范围[1,300]


 offset  选填   integer

【分页开始位置】 该次请求的分页开始位置,从0开始计数,例如offset=10,表示从第11条记录开始返回。

请求示例

curl
Java
Go

GET

1curl -X GET \
2  https://api.mch.weixin.qq.com/v3/merchant-service/complaints-v2/200201820200101080076610000/negotiation-historys?limit=50&offset=10 \
3  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
4  -H "Accept: application/json" 
5

应答参数

200 OK

 data  选填   array[object]

【投诉协商历史】 投诉协商历史

属性

 limit  必填   integer

【分页大小】 设置该次请求返回的最大协商历史条数,范围[1,300]


 offset  必填   integer

【分页开始位置】 设置该次请求返回的最大协商历史条数,范围[1,300]


 total_count  选填   integer

【投诉协商历史总条数】 投诉协商历史总条数,当offset=0时返回

应答示例

200 OK

1{
2  "data" : [
3    {
4      "log_id" : "300285320210322170000071077",
5      "operator" : "投诉人",
6      "operate_time" : "2015-05-20T13:29:35.120+08:00",
7      "operate_type" : "USER_CREATE_COMPLAINT",
8      "operate_details" : "已与用户电话沟通解决",
9      "image_list" : [
10        "https://qpic.cn/xxx"
11      ],
12      "complaint_media_list" : {
13        "media_type" : "USER_COMPLAINT_IMAGE",
14        "media_url" : [
15          "https://api.mch.weixin.qq.com/v3/merchant-service/images/xxxxx"
16        ]
17      },
18      "user_appy_platform_service_reason" : "商家响应不及时",
19      "user_appy_platform_service_reason_description" : "一周前就提交咨询了,到现在商家还没理我",
20      "normal_message" : {
21        "blocks" : [
22          {
23            "type" : "TEXT",
24            "text" : {
25              "text" : "example_text",
26              "color" : "DEFAULT",
27              "is_bold" : false
28            },
29            "image" : {
30              "media_id" : "example_media_id",
31              "image_style_type" : "IMAGE_STYLE_TYPE_NARROW"
32            },
33            "link" : {
34              "text" : "example_text",
35              "action" : {
36                "action_type" : "ACTION_TYPE_SEND_MESSAGE",
37                "jump_url" : "example_jump_url",
38                "mini_program_jump_info" : {
39                  "appid" : "wx416b02c1dd71u132",
40                  "path" : "/pages/index/index",
41                  "text" : "首页"
42                },
43                "message_info" : {
44                  "content" : "example_content",
45                  "custom_data" : "example_custom_data"
46                },
47                "action_id" : "example_action_id"
48              },
49              "invalid_info" : {
50                "expired_time" : "example_expired_time",
51                "multi_clickable" : false
52              }
53            },
54            "faq_list" : {
55              "faqs" : [
56                {
57                  "faq_id" : "example_faq_id",
58                  "faq_title" : "example_faq_title",
59                  "action" : {
60                    "action_type" : "ACTION_TYPE_SEND_MESSAGE",
61                    "jump_url" : "example_jump_url",
62                    "mini_program_jump_info" : {
63                      "appid" : "wx416b02c1dd71u132",
64                      "path" : "/pages/index/index",
65                      "text" : "首页"
66                    },
67                    "message_info" : {
68                      "content" : "example_content",
69                      "custom_data" : "example_custom_data"
70                    },
71                    "action_id" : "example_action_id"
72                  }
73                }
74              ]
75            },
76            "button" : {
77              "text" : "example_text",
78              "action" : {
79                "action_type" : "ACTION_TYPE_SEND_MESSAGE",
80                "jump_url" : "example_jump_url",
81                "mini_program_jump_info" : {
82                  "appid" : "wx416b02c1dd71u132",
83                  "path" : "/pages/index/index",
84                  "text" : "首页"
85                },
86                "message_info" : {
87                  "content" : "example_content",
88                  "custom_data" : "example_custom_data"
89                },
90                "action_id" : "example_action_id"
91              },
92              "invalid_info" : {
93                "expired_time" : "example_expired_time",
94                "multi_clickable" : false
95              }
96            },
97            "button_group" : {
98              "buttons" : [
99                {
100                  "text" : "example_text",
101                  "action" : {
102                    "action_type" : "ACTION_TYPE_SEND_MESSAGE",
103                    "jump_url" : "example_jump_url",
104                    "mini_program_jump_info" : {
105                      "appid" : "wx416b02c1dd71u132",
106                      "path" : "/pages/index/index",
107                      "text" : "首页"
108                    },
109                    "message_info" : {
110                      "content" : "example_content",
111                      "custom_data" : "example_custom_data"
112                    },
113                    "action_id" : "example_action_id"
114                  },
115                  "invalid_info" : {
116                    "expired_time" : "example_expired_time",
117                    "multi_clickable" : false
118                  }
119                }
120              ],
121              "button_layout" : "LAYOUT_UNKNOWN",
122              "invalid_info" : {
123                "expired_time" : "example_expired_time",
124                "multi_clickable" : false
125              }
126            }
127          }
128        ],
129        "sender_identity" : "UNKNOWN",
130        "custom_data" : "example_custom_data"
131      },
132      "click_message" : {
133        "message_content" : "example_message_content",
134        "action_id" : "12345",
135        "clicked_log_id" : "example_clicked_log_id"
136      }
137    }
138  ],
139  "limit" : 50,
140  "offset" : 50,
141  "total_count" : 1000
142}
143

 

错误码

以下是本接口返回的错误码列表。详细错误码规则,请参考微信支付接口规则-错误码和错误提示

状态码

错误码

描述

解决方案

400

PARAM_ERROR

参数错误

请根据错误提示正确传入参数

400

INVALID_REQUEST

HTTP 请求不符合微信支付 APIv3 接口规则

请参阅 接口规则

401

SIGN_ERROR

验证不通过

请参阅 签名常见问题

500

SYSTEM_ERROR

系统异常,请稍后重试

请稍后重试

 

元宝AI
反馈
目录
置顶