查询投诉单协商历史
更新时间: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条记录开始返回。
请求示例
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
需配合微信支付工具库 WXPayUtility 使用,请参考 Java
1package com.java.demo; 2 3import com.java.utils.WXPayUtility; // 引用微信支付工具库,参考:https://pay.weixin.qq.com/doc/v3/partner/4014985777 4 5import com.google.gson.annotations.SerializedName; 6import com.google.gson.annotations.Expose; 7import okhttp3.MediaType; 8import okhttp3.OkHttpClient; 9import okhttp3.Request; 10import okhttp3.RequestBody; 11import okhttp3.Response; 12 13import java.io.IOException; 14import java.io.UncheckedIOException; 15import java.security.PrivateKey; 16import java.security.PublicKey; 17import java.util.ArrayList; 18import java.util.HashMap; 19import java.util.List; 20import java.util.Map; 21 22/** 23 * 查询投诉单协商历史 24 */ 25public class QueryNegotiationHistoryV2 { 26 private static String HOST = "https://api.mch.weixin.qq.com"; 27 private static String METHOD = "GET"; 28 private static String PATH = "/v3/merchant-service/complaints-v2/{complaint_id}/negotiation-historys"; 29 30 public static void main(String[] args) { 31 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/v3/partner/4013080340 32 QueryNegotiationHistoryV2 client = new QueryNegotiationHistoryV2( 33 "19xxxxxxxx", // 商户号,是由微信支付系统生成并分配给每个商户的唯一标识符,商户号获取方式参考 https://pay.weixin.qq.com/doc/v3/partner/4013080340 34 "1DDE55AD98Exxxxxxxxxx", // 商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013058924 35 "/path/to/apiclient_key.pem" // 商户API证书私钥文件路径,本地文件路径 36 , 37 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013038589 38 "/path/to/wxp_pub.pem" // 微信支付公钥文件路径,本地文件路径 39 ); 40 41 QueryNegotiationHistoryV2Request request = new QueryNegotiationHistoryV2Request(); 42 request.complaintId = "200201820200101080076610000"; 43 request.limit = 50L; 44 request.offset = 10L; 45 try { 46 QueryNegotiationHistoryV2Response response = client.run(request); 47 // TODO: 请求成功,继续业务逻辑 48 System.out.println(response); 49 } catch (WXPayUtility.ApiException e) { 50 // TODO: 请求失败,根据状态码执行不同的逻辑 51 e.printStackTrace(); 52 } 53 } 54 55 public QueryNegotiationHistoryV2Response run(QueryNegotiationHistoryV2Request request) { 56 String uri = PATH; 57 uri = uri.replace("{complaint_id}", WXPayUtility.urlEncode(request.complaintId)); 58 Map<String, Object> args = new HashMap<>(); 59 args.put("limit", request.limit); 60 args.put("offset", request.offset); 61 uri = uri + "?" + WXPayUtility.urlEncode(args); 62 63 Request.Builder reqBuilder = new Request.Builder().url(HOST + uri); 64 reqBuilder.addHeader("Accept", "application/json"); 65 reqBuilder.addHeader("Wechatpay-Serial", wechatPayPublicKeyId); 66 reqBuilder.addHeader("Authorization", WXPayUtility.buildAuthorization(mchid, certificateSerialNo, privateKey, METHOD, uri, null)); 67 reqBuilder.method(METHOD, null); 68 Request httpRequest = reqBuilder.build(); 69 70 // 发送HTTP请求 71 OkHttpClient client = new OkHttpClient.Builder().build(); 72 try (Response httpResponse = client.newCall(httpRequest).execute()) { 73 String respBody = WXPayUtility.extractBody(httpResponse); 74 if (httpResponse.code() >= 200 && httpResponse.code() < 300) { 75 // 2XX 成功,验证应答签名 76 WXPayUtility.validateResponse(this.wechatPayPublicKeyId, this.wechatPayPublicKey, 77 httpResponse.headers(), respBody); 78 79 // 从HTTP应答报文构建返回数据 80 return WXPayUtility.fromJson(respBody, QueryNegotiationHistoryV2Response.class); 81 } else { 82 throw new WXPayUtility.ApiException(httpResponse.code(), respBody, httpResponse.headers()); 83 } 84 } catch (IOException e) { 85 throw new UncheckedIOException("Sending request to " + uri + " failed.", e); 86 } 87 } 88 89 private final String mchid; 90 private final String certificateSerialNo; 91 private final PrivateKey privateKey; 92 private final String wechatPayPublicKeyId; 93 private final PublicKey wechatPayPublicKey; 94 95 public QueryNegotiationHistoryV2(String mchid, String certificateSerialNo, String privateKeyFilePath, String wechatPayPublicKeyId, String wechatPayPublicKeyFilePath) { 96 this.mchid = mchid; 97 this.certificateSerialNo = certificateSerialNo; 98 this.privateKey = WXPayUtility.loadPrivateKeyFromPath(privateKeyFilePath); 99 this.wechatPayPublicKeyId = wechatPayPublicKeyId; 100 this.wechatPayPublicKey = WXPayUtility.loadPublicKeyFromPath(wechatPayPublicKeyFilePath); 101 } 102 103 public static class QueryNegotiationHistoryV2Request { 104 @SerializedName("complaint_id") 105 @Expose(serialize = false) 106 public String complaintId; 107 108 @SerializedName("limit") 109 @Expose(serialize = false) 110 public Long limit; 111 112 @SerializedName("offset") 113 @Expose(serialize = false) 114 public Long offset; 115 } 116 117 public static class QueryNegotiationHistoryV2Response { 118 @SerializedName("data") 119 public List<ComplaintNegotiationHistoryWithLogId> data; 120 121 @SerializedName("limit") 122 public Long limit; 123 124 @SerializedName("offset") 125 public Long offset; 126 127 @SerializedName("total_count") 128 public Long totalCount; 129 } 130 131 public static class ComplaintNegotiationHistoryWithLogId { 132 @SerializedName("log_id") 133 public String logId; 134 135 @SerializedName("operator") 136 public String operator; 137 138 @SerializedName("operate_time") 139 public String operateTime; 140 141 @SerializedName("operate_type") 142 public ComplaintNegotiationOperateType operateType; 143 144 @SerializedName("operate_details") 145 public String operateDetails; 146 147 @SerializedName("image_list") 148 public List<String> imageList; 149 150 @SerializedName("complaint_media_list") 151 public ComplaintMedia complaintMediaList; 152 153 @SerializedName("user_appy_platform_service_reason") 154 public String userAppyPlatformServiceReason; 155 156 @SerializedName("user_appy_platform_service_reason_description") 157 public String userAppyPlatformServiceReasonDescription; 158 } 159 160 public enum ComplaintNegotiationOperateType { 161 @SerializedName("USER_CREATE_COMPLAINT") 162 USER_CREATE_COMPLAINT, 163 @SerializedName("USER_CONTINUE_COMPLAINT") 164 USER_CONTINUE_COMPLAINT, 165 @SerializedName("USER_RESPONSE") 166 USER_RESPONSE, 167 @SerializedName("PLATFORM_RESPONSE") 168 PLATFORM_RESPONSE, 169 @SerializedName("MERCHANT_RESPONSE") 170 MERCHANT_RESPONSE, 171 @SerializedName("MERCHANT_CONFIRM_COMPLETE") 172 MERCHANT_CONFIRM_COMPLETE, 173 @SerializedName("USER_CREATE_COMPLAINT_SYSTEM_MESSAGE") 174 USER_CREATE_COMPLAINT_SYSTEM_MESSAGE, 175 @SerializedName("COMPLAINT_FULL_REFUNDED_SYSTEM_MESSAGE") 176 COMPLAINT_FULL_REFUNDED_SYSTEM_MESSAGE, 177 @SerializedName("USER_CONTINUE_COMPLAINT_SYSTEM_MESSAGE") 178 USER_CONTINUE_COMPLAINT_SYSTEM_MESSAGE, 179 @SerializedName("USER_REVOKE_COMPLAINT") 180 USER_REVOKE_COMPLAINT, 181 @SerializedName("USER_COMFIRM_COMPLAINT") 182 USER_COMFIRM_COMPLAINT, 183 @SerializedName("PLATFORM_HELP_APPLICATION") 184 PLATFORM_HELP_APPLICATION, 185 @SerializedName("USER_APPLY_PLATFORM_HELP") 186 USER_APPLY_PLATFORM_HELP, 187 @SerializedName("MERCHANT_APPROVE_REFUND") 188 MERCHANT_APPROVE_REFUND, 189 @SerializedName("MERCHANT_REFUSE_RERUND") 190 MERCHANT_REFUSE_RERUND, 191 @SerializedName("USER_SUBMIT_SATISFACTION") 192 USER_SUBMIT_SATISFACTION, 193 @SerializedName("SERVICE_ORDER_CANCEL") 194 SERVICE_ORDER_CANCEL, 195 @SerializedName("SERVICE_ORDER_COMPLETE") 196 SERVICE_ORDER_COMPLETE, 197 @SerializedName("COMPLAINT_PARTIAL_REFUNDED_SYSTEM_MESSAGE") 198 COMPLAINT_PARTIAL_REFUNDED_SYSTEM_MESSAGE, 199 @SerializedName("COMPLAINT_REFUND_RECEIVED_SYSTEM_MESSAGE") 200 COMPLAINT_REFUND_RECEIVED_SYSTEM_MESSAGE, 201 @SerializedName("COMPLAINT_ENTRUSTED_REFUND_SYSTEM_MESSAGE") 202 COMPLAINT_ENTRUSTED_REFUND_SYSTEM_MESSAGE, 203 @SerializedName("USER_APPLY_PLATFORM_SERVICE") 204 USER_APPLY_PLATFORM_SERVICE, 205 @SerializedName("USER_CANCEL_PLATFORM_SERVICE") 206 USER_CANCEL_PLATFORM_SERVICE, 207 @SerializedName("PLATFORM_SERVICE_FINISHED") 208 PLATFORM_SERVICE_FINISHED 209 } 210 211 public static class ComplaintMedia { 212 @SerializedName("media_type") 213 public ComplaintMediaType mediaType; 214 215 @SerializedName("media_url") 216 public List<String> mediaUrl = new ArrayList<String>(); 217 } 218 219 public enum ComplaintMediaType { 220 @SerializedName("USER_COMPLAINT_IMAGE") 221 USER_COMPLAINT_IMAGE, 222 @SerializedName("OPERATION_IMAGE") 223 OPERATION_IMAGE 224 } 225 226} 227
需配合微信支付工具库 wxpay_utility 使用,请参考 Go
1package main 2 3import ( 4 "demo/wxpay_utility" // 引用微信支付工具库,参考 https://pay.weixin.qq.com/doc/v3/partner/4015119446 5 "encoding/json" 6 "fmt" 7 "net/http" 8 "net/url" 9 "strings" 10) 11 12func main() { 13 // TODO: 请准备商户开发必要参数,参考:https://pay.weixin.qq.com/doc/v3/partner/4013080340 14 config, err := wxpay_utility.CreateMchConfig( 15 "19xxxxxxxx", // 商户号,是由微信支付系统生成并分配给每个商户的唯一标识符,商户号获取方式参考 https://pay.weixin.qq.com/doc/v3/partner/4013080340 16 "1DDE55AD98Exxxxxxxxxx", // 商户API证书序列号,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013058924 17 "/path/to/apiclient_key.pem", // 商户API证书私钥文件路径,本地文件路径 18 "PUB_KEY_ID_xxxxxxxxxxxxx", // 微信支付公钥ID,如何获取请参考 https://pay.weixin.qq.com/doc/v3/partner/4013038589 19 "/path/to/wxp_pub.pem", // 微信支付公钥文件路径,本地文件路径 20 ) 21 if err != nil { 22 fmt.Println(err) 23 return 24 } 25 26 request := &QueryNegotiationHistoryV2Request{ 27 ComplaintId: wxpay_utility.String("200201820200101080076610000"), 28 Limit: wxpay_utility.Int64(50), 29 Offset: wxpay_utility.Int64(10), 30 } 31 32 response, err := QueryNegotiationHistoryV2(config, request) 33 if err != nil { 34 fmt.Printf("请求失败: %+v\n", err) 35 // TODO: 请求失败,根据状态码执行不同的处理 36 return 37 } 38 39 // TODO: 请求成功,继续业务逻辑 40 fmt.Printf("请求成功: %+v\n", response) 41} 42 43func QueryNegotiationHistoryV2(config *wxpay_utility.MchConfig, request *QueryNegotiationHistoryV2Request) (response *QueryNegotiationHistoryV2Response, err error) { 44 const ( 45 host = "https://api.mch.weixin.qq.com" 46 method = "GET" 47 path = "/v3/merchant-service/complaints-v2/{complaint_id}/negotiation-historys" 48 ) 49 50 reqUrl, err := url.Parse(fmt.Sprintf("%s%s", host, path)) 51 if err != nil { 52 return nil, err 53 } 54 reqUrl.Path = strings.Replace(reqUrl.Path, "{complaint_id}", url.PathEscape(*request.ComplaintId), -1) 55 query := reqUrl.Query() 56 query.Add("limit", fmt.Sprintf("%v", *request.Limit)) 57 query.Add("offset", fmt.Sprintf("%v", *request.Offset)) 58 reqUrl.RawQuery = query.Encode() 59 httpRequest, err := http.NewRequest(method, reqUrl.String(), nil) 60 if err != nil { 61 return nil, err 62 } 63 httpRequest.Header.Set("Accept", "application/json") 64 httpRequest.Header.Set("Wechatpay-Serial", config.WechatPayPublicKeyId()) 65 authorization, err := wxpay_utility.BuildAuthorization(config.MchId(), config.CertificateSerialNo(), config.PrivateKey(), method, reqUrl.RequestURI(), nil) 66 if err != nil { 67 return nil, err 68 } 69 httpRequest.Header.Set("Authorization", authorization) 70 71 client := &http.Client{} 72 httpResponse, err := client.Do(httpRequest) 73 if err != nil { 74 return nil, err 75 } 76 respBody, err := wxpay_utility.ExtractResponseBody(httpResponse) 77 if err != nil { 78 return nil, err 79 } 80 if httpResponse.StatusCode >= 200 && httpResponse.StatusCode < 300 { 81 // 2XX 成功,验证应答签名 82 err = wxpay_utility.ValidateResponse( 83 config.WechatPayPublicKeyId(), 84 config.WechatPayPublicKey(), 85 &httpResponse.Header, 86 respBody, 87 ) 88 if err != nil { 89 return nil, err 90 } 91 response := &QueryNegotiationHistoryV2Response{} 92 if err := json.Unmarshal(respBody, response); err != nil { 93 return nil, err 94 } 95 96 return response, nil 97 } else { 98 return nil, wxpay_utility.NewApiException( 99 httpResponse.StatusCode, 100 httpResponse.Header, 101 respBody, 102 ) 103 } 104} 105 106type QueryNegotiationHistoryV2Request struct { 107 ComplaintId *string `json:"complaint_id,omitempty"` 108 Limit *int64 `json:"limit,omitempty"` 109 Offset *int64 `json:"offset,omitempty"` 110} 111 112func (o *QueryNegotiationHistoryV2Request) MarshalJSON() ([]byte, error) { 113 type Alias QueryNegotiationHistoryV2Request 114 a := &struct { 115 ComplaintId *string `json:"complaint_id,omitempty"` 116 Limit *int64 `json:"limit,omitempty"` 117 Offset *int64 `json:"offset,omitempty"` 118 *Alias 119 }{ 120 // 序列化时移除非 Body 字段 121 ComplaintId: nil, 122 Limit: nil, 123 Offset: nil, 124 Alias: (*Alias)(o), 125 } 126 return json.Marshal(a) 127} 128 129type QueryNegotiationHistoryV2Response struct { 130 Data []ComplaintNegotiationHistoryWithLogId `json:"data,omitempty"` 131 Limit *int64 `json:"limit,omitempty"` 132 Offset *int64 `json:"offset,omitempty"` 133 TotalCount *int64 `json:"total_count,omitempty"` 134} 135 136type ComplaintNegotiationHistoryWithLogId struct { 137 LogId *string `json:"log_id,omitempty"` 138 Operator *string `json:"operator,omitempty"` 139 OperateTime *string `json:"operate_time,omitempty"` 140 OperateType *ComplaintNegotiationOperateType `json:"operate_type,omitempty"` 141 OperateDetails *string `json:"operate_details,omitempty"` 142 ImageList []string `json:"image_list,omitempty"` 143 ComplaintMediaList *ComplaintMedia `json:"complaint_media_list,omitempty"` 144 UserAppyPlatformServiceReason *string `json:"user_appy_platform_service_reason,omitempty"` 145 UserAppyPlatformServiceReasonDescription *string `json:"user_appy_platform_service_reason_description,omitempty"` 146} 147 148type ComplaintNegotiationOperateType string 149 150func (e ComplaintNegotiationOperateType) Ptr() *ComplaintNegotiationOperateType { 151 return &e 152} 153 154const ( 155 COMPLAINTNEGOTIATIONOPERATETYPE_USER_CREATE_COMPLAINT ComplaintNegotiationOperateType = "USER_CREATE_COMPLAINT" 156 COMPLAINTNEGOTIATIONOPERATETYPE_USER_CONTINUE_COMPLAINT ComplaintNegotiationOperateType = "USER_CONTINUE_COMPLAINT" 157 COMPLAINTNEGOTIATIONOPERATETYPE_USER_RESPONSE ComplaintNegotiationOperateType = "USER_RESPONSE" 158 COMPLAINTNEGOTIATIONOPERATETYPE_PLATFORM_RESPONSE ComplaintNegotiationOperateType = "PLATFORM_RESPONSE" 159 COMPLAINTNEGOTIATIONOPERATETYPE_MERCHANT_RESPONSE ComplaintNegotiationOperateType = "MERCHANT_RESPONSE" 160 COMPLAINTNEGOTIATIONOPERATETYPE_MERCHANT_CONFIRM_COMPLETE ComplaintNegotiationOperateType = "MERCHANT_CONFIRM_COMPLETE" 161 COMPLAINTNEGOTIATIONOPERATETYPE_USER_CREATE_COMPLAINT_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "USER_CREATE_COMPLAINT_SYSTEM_MESSAGE" 162 COMPLAINTNEGOTIATIONOPERATETYPE_COMPLAINT_FULL_REFUNDED_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "COMPLAINT_FULL_REFUNDED_SYSTEM_MESSAGE" 163 COMPLAINTNEGOTIATIONOPERATETYPE_USER_CONTINUE_COMPLAINT_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "USER_CONTINUE_COMPLAINT_SYSTEM_MESSAGE" 164 COMPLAINTNEGOTIATIONOPERATETYPE_USER_REVOKE_COMPLAINT ComplaintNegotiationOperateType = "USER_REVOKE_COMPLAINT" 165 COMPLAINTNEGOTIATIONOPERATETYPE_USER_COMFIRM_COMPLAINT ComplaintNegotiationOperateType = "USER_COMFIRM_COMPLAINT" 166 COMPLAINTNEGOTIATIONOPERATETYPE_PLATFORM_HELP_APPLICATION ComplaintNegotiationOperateType = "PLATFORM_HELP_APPLICATION" 167 COMPLAINTNEGOTIATIONOPERATETYPE_USER_APPLY_PLATFORM_HELP ComplaintNegotiationOperateType = "USER_APPLY_PLATFORM_HELP" 168 COMPLAINTNEGOTIATIONOPERATETYPE_MERCHANT_APPROVE_REFUND ComplaintNegotiationOperateType = "MERCHANT_APPROVE_REFUND" 169 COMPLAINTNEGOTIATIONOPERATETYPE_MERCHANT_REFUSE_RERUND ComplaintNegotiationOperateType = "MERCHANT_REFUSE_RERUND" 170 COMPLAINTNEGOTIATIONOPERATETYPE_USER_SUBMIT_SATISFACTION ComplaintNegotiationOperateType = "USER_SUBMIT_SATISFACTION" 171 COMPLAINTNEGOTIATIONOPERATETYPE_SERVICE_ORDER_CANCEL ComplaintNegotiationOperateType = "SERVICE_ORDER_CANCEL" 172 COMPLAINTNEGOTIATIONOPERATETYPE_SERVICE_ORDER_COMPLETE ComplaintNegotiationOperateType = "SERVICE_ORDER_COMPLETE" 173 COMPLAINTNEGOTIATIONOPERATETYPE_COMPLAINT_PARTIAL_REFUNDED_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "COMPLAINT_PARTIAL_REFUNDED_SYSTEM_MESSAGE" 174 COMPLAINTNEGOTIATIONOPERATETYPE_COMPLAINT_REFUND_RECEIVED_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "COMPLAINT_REFUND_RECEIVED_SYSTEM_MESSAGE" 175 COMPLAINTNEGOTIATIONOPERATETYPE_COMPLAINT_ENTRUSTED_REFUND_SYSTEM_MESSAGE ComplaintNegotiationOperateType = "COMPLAINT_ENTRUSTED_REFUND_SYSTEM_MESSAGE" 176 COMPLAINTNEGOTIATIONOPERATETYPE_USER_APPLY_PLATFORM_SERVICE ComplaintNegotiationOperateType = "USER_APPLY_PLATFORM_SERVICE" 177 COMPLAINTNEGOTIATIONOPERATETYPE_USER_CANCEL_PLATFORM_SERVICE ComplaintNegotiationOperateType = "USER_CANCEL_PLATFORM_SERVICE" 178 COMPLAINTNEGOTIATIONOPERATETYPE_PLATFORM_SERVICE_FINISHED ComplaintNegotiationOperateType = "PLATFORM_SERVICE_FINISHED" 179) 180 181type ComplaintMedia struct { 182 MediaType *ComplaintMediaType `json:"media_type,omitempty"` 183 MediaUrl []string `json:"media_url,omitempty"` 184} 185 186type ComplaintMediaType string 187 188func (e ComplaintMediaType) Ptr() *ComplaintMediaType { 189 return &e 190} 191 192const ( 193 COMPLAINTMEDIATYPE_USER_COMPLAINT_IMAGE ComplaintMediaType = "USER_COMPLAINT_IMAGE" 194 COMPLAINTMEDIATYPE_OPERATION_IMAGE ComplaintMediaType = "OPERATION_IMAGE" 195) 196
应答参数
200 OK
data 选填 array[object]
【投诉协商历史】 投诉协商历史
属性 | |||||
log_id 必填 string(64) 【操作流水号】 操作流水号 operator 必填 string(64) 【操作人】 当前投诉协商记录的操作人 operate_time 必填 string(64) 【操作时间】 当前投诉协商记录的操作时间 operate_type 必填 string 【操作类型】 当前投诉协商记录的操作类型,对应枚举ComplaintNegotiationOperateType 可选取值
operate_details 选填 string(500) 【操作内容】 当前投诉协商记录的具体内容 image_list 选填 array[string] 【图片凭证】 商户或微信支付客服上传的图片,以URL形式返回。注:此字段不包含用户提交的图片凭证,建议统一使用complaint_media_list字段接收和请求资料凭证,未来该字段将废弃 complaint_media_list 选填 object 【操作资料列表】 对投诉单执行操作时上传的资料凭证,包含用户、商户、微信支付客服等角色操作
user_appy_platform_service_reason 选填 string 【用户申请平台协助原因】 用户此次申请平台协助时选择的申请协助原因(已废弃) user_appy_platform_service_reason_description 选填 string 【用户申请平台协助原因描述】 用户此次申请平台协助时填写的具体申请协助原因描述(已废弃) |
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 } 21 ], 22 "limit" : 50, 23 "offset" : 50, 24 "total_count" : 1000 25} 26
错误码
公共错误码
状态码 | 错误码 | 描述 | 解决方案 |
---|---|---|---|
400 | PARAM_ERROR | 参数错误 | 请根据错误提示正确传入参数 |
400 | INVALID_REQUEST | HTTP 请求不符合微信支付 APIv3 接口规则 | 请参阅 接口规则 |
401 | SIGN_ERROR | 验证不通过 | 请参阅 签名常见问题 |
500 | SYSTEM_ERROR | 系统异常,请稍后重试 | 请稍后重试 |