Skip to content

查询投诉信息

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

🚫

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

请求参数类型描述
queryobject声明请求的查询参数
limitinteger
offsetinteger
begin_datestring
end_datestring
sub_mchidstring
php
$instance->v3->merchantService->complaints->getAsync([
  'query' => [
    'limit'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
])
->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'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
])
->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'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
])
->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'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-service/complaints')->get([
  'query' => [
    'limit'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-service/complaints']->get([
  'query' => [
    'limit'      => 0,
    'offset'     => 0,
    'begin_date' => '',
    'end_date'   => '',
    'sub_mchid'  => '',
  ],
]);
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