提交回复
商户可通过调用此接口,提交回复内容。其中上传图片凭证需首先调用商户上传反馈图片接口,得到图片id,再将id填入请求。
请求参数 | 类型 | 描述 |
---|---|---|
complaint_id | string | 投诉单号 |
json | object | 声明请求的JSON 数据结构 |
complainted_mchid | string | 被诉商户号 |
response_content | string | 回复内容 |
response_images | string[] | 回复图片 |
jump_url | string | 跳转链接 |
jump_url_text | string | 跳转链接文案 |
mini_program_jump_info | object | 跳转小程序信息 |
appid | string | 跳转小程序APPID |
path | string | 跳转小程序页面PATH |
text | string | 跳转小程序页面名称 |
php
$instance->v3->merchantService->complaintsV2->_complaint_id_->response->postAsync([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/response')->postAsync([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/merchant-service/complaints-v2/{complaint_id}/response']->postAsync([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->merchantService->complaintsV2->_complaint_id_->response->post([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/merchant-service/complaints-v2/{complaint_id}/response')->post([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/merchant-service/complaints-v2/{complaint_id}/response']->post([
'complaint_id' => '200201820200101080076610000',
'json' => [
'complainted_mchid' => '1900012181',
'response_content' => '已与用户沟通解决',
'response_images' => ['file23578_21798531.jpg'],
'jump_url' => 'https://www.xxx.com/notify',
'jump_url_text' => '查看订单详情',
'mini_program_jump_info' => [
'appid' => 'example_appid',
'path' => 'example_path',
'text' => 'example_text',
],
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |