查询投诉信息
商户可通过调用此接口,查询指定时间段的所有用户投诉信息,并在返回结果分页输出查询结果。对于服务商、渠道商,可通过调用此接口,查询指定子商户号对应子商户的投诉信息,若不指定,则查询所有子商户投诉信。
🚫
本接口服务已于 2020.11.27
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
limit | integer | |
offset | integer | |
begin_date | string | |
end_date | string | |
sub_mchid | string |
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));
返回字典 | 类型 | 描述 |
---|---|---|
offset | integer | |
limit | integer | |
total_count | integer | |
data | object[] | |
out_trade_no | string | |
complaint_time | string | |
amount | integer | |
payer_phone | string | |
complaint_detail | string | |
transaction_id | string | |
frozen_end_time | string | |
sub_mchid | string |
参阅 官方文档