医保退款通知
从业机构调用该接口向微信医保后台通知医保订单的退款成功结果
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 医疗机构的商户号 |
med_refund_total_fee | integer | 医保退款的总金额 |
med_refund__gov_fee | integer | 医保统筹退款金额 |
med_refund__self_fee | integer | 医保个账退款金额 |
med_refund__other_fee | integer | 医保其他退款金额 |
refund_time | string | 医保退款成功时间 |
out_refund_no | string | 从业机构退款单号 |
query | object | 声明请求的查询参数 |
mix_trade_no | string | 医保自费混合订单号 |
php
$instance->v3->medIns->refunds->notify->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/med-ins/refunds/notify')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/med-ins/refunds/notify']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->medIns->refunds->notify->post([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/med-ins/refunds/notify')->post([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/med-ins/refunds/notify']->post([
'json' => [
'sub_mchid' => '1900000109',
'med_refund_total_fee' => 45000,
'med_refund__gov_fee' => 45000,
'med_refund__self_fee' => 45000,
'med_refund__other_fee' => 45000,
'refund_time' => '2018-06-08T10:34:56+08:00',
'out_refund_no' => 'R202204022005169952975171534816',
],
'query' => [
'mix_trade_no' => '1217752501201407033233368318',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档