Skip to content

商户反馈

商户上传反馈处理结果的接口。 包括商户反馈类型、商户反馈内容以及图片凭证。 其中上传图片凭证需首先调用“商户上传反馈图片”接口,得到图片id,再将id填入请求。

🚫

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

请求参数类型描述
jsonobject声明请求的JSON数据结构
transaction_idstring微信支付订单号
complainted_mchidstring被诉商户号
feedback_typeinteger反馈内容类型
feedback_contentstring反馈内容
feedback_imagesstring[]
launch_confirm_processboolean反馈处理完成
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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory