Skip to content

医保退款通知

从业机构调用该接口向微信医保后台通知医保订单的退款成功结果

请求参数类型描述
jsonobject声明请求的JSON数据结构
sub_mchidstring医疗机构的商户号
med_refund_total_feeinteger医保退款的总金额
med_refund__gov_feeinteger医保统筹退款金额
med_refund__self_feeinteger医保个账退款金额
med_refund__other_feeinteger医保其他退款金额
refund_timestring医保退款成功时间
out_refund_nostring从业机构退款单号
queryobject声明请求的查询参数
mix_trade_nostring医保自费混合订单号
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);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory