Skip to content

查询投诉单列表

商户可通过调用此接口,查询指定时间段的所有用户投诉信息,以分页输出查询结果。对于服务商、渠道商,可通过调用此接口,查询指定特约商户号下的投诉信息,若不指定,则查询的是名下所有特约商户投诉信息。

请求参数类型描述
base_uristring声明接入点https://apihk.mch.weixin.qq.com/(香港接入)
queryobject声明请求的查询参数
limitinteger分页大小
offsetinteger分页开始位置
begin_datestring开始日期
end_datestring结束日期
complainted_mchidstring诉商户号
mch_languagestring商户语言
ZH_CN | ZH_TW | ZH_HK | EN | JA | KO | TH | VI | RU | DE | FR | AR | ES 枚举值之一
php
$instance->v3->global->merchantService->complaints->getAsync([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/global/merchant-service/complaints')->getAsync([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/global/merchant-service/complaints']->getAsync([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->global->merchantService->complaints->get([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/global/merchant-service/complaints')->get([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/global/merchant-service/complaints']->get([
  'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
  'query' => [
    'limit'             => 5,
    'offset'            => 10,
    'begin_date'        => '2019-01-01',
    'end_date'          => '2019-01-01',
    'complainted_mchid' => '1900012181',
    'mch_language'      => 'zh_CN',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
dataobject[]用户投诉信息详情
complaint_idstring投诉单号
complaint_timestring投诉时间
complaint_detailstring投诉详情
complaint_statestring投诉单状态
PENDING | PROCESSING | PROCESSED 枚举值之一
complainted_mchidstring被诉商户号
payer_phonestring投诉人联系方式
complaint_order_infoobject[]投诉单关联订单信息
transaction_idstring微信订单号
out_trade_nostring商户订单号
settlement_amountinteger结算币种金额
settlement_refunded_amountstring结算币种累计已退款金额
settlement_currencystring结算币种
payer_amountinteger订单金额
payer_refunded_amountinteger支付币种累计已退款金额
payer_currencystring支付币种
trade_timestring交易时间
complaint_full_refundedboolean投诉单是否已全额退款
is_overdueboolean是否超时
prioritystring优先级
PRIORITY | GENERAL 枚举值之一
incoming_user_responseboolean是否有待回复的用户留言
user_complaint_timesinteger用户投诉次数
complaint_media_listobject[]投诉资料列表
media_typestring媒体文件业务类型
USER_COMPLAINT_IMAGE | OPERATION_IMAGE 枚举值之一
media_urlstring[]媒体文列表
problem_descriptionstring问题描述
complaint_detail_transstring投诉详情翻译
service_order_infoobject[]投诉单关联服务单信息
order_idstring微信支付服务订单号
out_order_nostring商户服务订单号
statestring支付分服务单状态
DOING | REVOKED | WAITPAY | DONE 枚举值之一
limitinteger分页大小
offsetinteger分页开始位置
total_countinteger投诉总条数

参阅 官方文档

Published on the GitHub by TheNorthMemory