Skip to content

查询投诉信息

商户可通过调用此接口,查询指定时间段的所有用户投诉信息,并在返回结果分页输出查询结果。对于服务商、渠道商,可通过调用此接口,查询指定子商户号对应子商户的投诉信息,若不指定,则查询所有子商户投诉信。

🚫

本接口服务已于 2020.11.27 (北京时间)下线,文档仅做留存参考。

请求参数类型描述
queryobject声明请求的查询参数
limitinteger分页大小
offsetinteger分页开始位置
begin_datestring开始日期
end_datestring结束日期
sub_mchidstring特约商户号
php
$instance->v3->merchantService->complaints->getAsync([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-service/complaints')->getAsync([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-service/complaints']->getAsync([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantService->complaints->get([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-service/complaints')->get([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-service/complaints']->get([
  'query' => [
    'limit'      => 5,
    'offset'     => 10,
    'begin_date' => '2019-01-01',
    'end_date'   => '2019-01-01',
    'sub_mchid'  => '1900012181',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
offsetinteger分页开始位置
limitinteger分页大小
total_countinteger投诉总条数
dataobject[]用户投诉信息详情
out_trade_nostring商户订单号
complaint_timestring投诉时间
amountinteger订单金额
payer_phonestring投诉人联系方式
complaint_detailstring投诉详情
complaint_statestring投诉单状态
PAYER_COMPLAINTED | FROZENED | FROZEN_FINISHED | PAYER_CANCELED | MERCHANT_REFUNDED | SYSTEM_REFUNDED | MANUAL_UNFROZEN 枚举值之一
transaction_idstring微信订单号
frozen_end_timestring冻结结束时间
sub_mchidstring特约商户号

参阅 官方文档

Published on the GitHub by TheNorthMemory