商户反馈
商户上传反馈处理结果的接口。 包括商户反馈类型、商户反馈内容以及图片凭证。 其中上传图片凭证需首先调用“商户上传反馈图片”接口,得到图片id,再将id填入请求。
🚫
本接口服务已于 2021.01.08
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
transaction_id | string | 微信支付订单号 |
complainted_mchid | string | 被诉商户号 |
feedback_type | integer | 反馈内容类型 |
feedback_content | string | 反馈内容 |
feedback_images | string[] | 图片凭证 |
launch_confirm_process | boolean | 反馈处理完成 |
php
$instance->v3->merchantService->feedbacks->postAsync([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/merchant-service/feedbacks')->postAsync([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/merchant-service/feedbacks']->postAsync([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->merchantService->feedbacks->post([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/merchant-service/feedbacks')->post([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/merchant-service/feedbacks']->post([
'json' => [
'transaction_id' => '4200000404201909069117582536',
'complainted_mchid' => '9980456248',
'feedback_type' => 1,
'feedback_content' => '已与用户协商解决',
'feedback_images' => ['MediaId'],
'launch_confirm_process' => true,
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档