查询投诉单协商历史

更新时间: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" : "example_appid",
40                  "path" : "example_path"
41                },
42                "message_info" : {
43                  "content" : "example_content",
44                  "custom_data" : "example_custom_data"
45                },
46                "action_id" : "example_action_id"
47              },
48              "invalid_info" : {
49                "expired_time" : "example_expired_time",
50                "multi_clickable" : false
51              }
52            },
53            "faq_list" : {
54              "faqs" : [
55                {
56                  "faq_id" : "example_faq_id",
57                  "faq_title" : "example_faq_title",
58                  "action" : {
59                    "action_type" : "ACTION_TYPE_SEND_MESSAGE",
60                    "jump_url" : "example_jump_url",
61                    "mini_program_jump_info" : {
62                      "appid" : "example_appid",
63                      "path" : "example_path"
64                    },
65                    "message_info" : {
66                      "content" : "example_content",
67                      "custom_data" : "example_custom_data"
68                    },
69                    "action_id" : "example_action_id"
70                  }
71                }
72              ]
73            },
74            "button" : {
75              "text" : "example_text",
76              "action" : {
77                "action_type" : "ACTION_TYPE_SEND_MESSAGE",
78                "jump_url" : "example_jump_url",
79                "mini_program_jump_info" : {
80                  "appid" : "example_appid",
81                  "path" : "example_path"
82                },
83                "message_info" : {
84                  "content" : "example_content",
85                  "custom_data" : "example_custom_data"
86                },
87                "action_id" : "example_action_id"
88              },
89              "invalid_info" : {
90                "expired_time" : "example_expired_time",
91                "multi_clickable" : false
92              }
93            },
94            "button_group" : {
95              "buttons" : [
96                {
97                  "text" : "example_text",
98                  "action" : {
99                    "action_type" : "ACTION_TYPE_SEND_MESSAGE",
100                    "jump_url" : "example_jump_url",
101                    "mini_program_jump_info" : {
102                      "appid" : "example_appid",
103                      "path" : "example_path"
104                    },
105                    "message_info" : {
106                      "content" : "example_content",
107                      "custom_data" : "example_custom_data"
108                    },
109                    "action_id" : "example_action_id"
110                  }
111                }
112              ],
113              "button_layout" : "LAYOUT_UNKNOWN",
114              "invalid_info" : {
115                "expired_time" : "example_expired_time",
116                "multi_clickable" : false
117              }
118            }
119          }
120        ],
121        "sender_identity" : "UNKNOWN",
122        "custom_data" : "example_custom_data"
123      },
124      "click_message" : {
125        "message_content" : "example_message_content",
126        "action_id" : "12345",
127        "clicked_log_id" : "example_clicked_log_id"
128      }
129    }
130  ],
131  "limit" : 50,
132  "offset" : 50,
133  "total_count" : 1000
134}
135

 

错误码

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

状态码

错误码

描述

解决方案

400

PARAM_ERROR

参数错误

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

400

INVALID_REQUEST

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

请参阅 接口规则

401

SIGN_ERROR

验证不通过

请参阅 签名常见问题

500

SYSTEM_ERROR

系统异常,请稍后重试

请稍后重试

 

元宝AI
反馈
目录
置顶