关闭二级商户充值
以下情况可调用关单接口:1、商家操作超出规定时间限制,为防止重复处理。2、系统主动终止服务不再接受新的请求
请求参数 | 类型 | 描述 |
---|---|---|
out_recharge_no | string | 商户充值单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
php
$instance->v3->platsolution->ecommerce->recharges->outRechargeNo->_out_recharge_no_->close->postAsync([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/ecommerce/recharges/out-recharge-no/{out_recharge_no}/close')->postAsync([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/ecommerce/recharges/out-recharge-no/{out_recharge_no}/close']->postAsync([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->ecommerce->recharges->outRechargeNo->_out_recharge_no_->close->post([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/ecommerce/recharges/out-recharge-no/{out_recharge_no}/close')->post([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/ecommerce/recharges/out-recharge-no/{out_recharge_no}/close']->post([
'out_recharge_no' => 'cz2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sp_mchid | string | 平台商户号 |
sub_mchid | string | 二级商户号 |
recharge_id | string | 微信支付充值单号 |
out_recharge_no | string | 商户充值单号 |
recharge_channel | string | 充值渠道BANK_TRANSFER | QR_RECHARGE 枚举值之一 |
account_type | string | 充值入账账户DEPOSIT | BASIC | OPERATION | FEES 枚举值之一 |
recharge_state | string | 充值状态SUCCESS | RECHARGING | CLOSED 枚举值之一 |
recharge_scene | string | 充值场景ECOMMERCE_DEPOSIT | ECOMMERCE_BANK_TRANSFER | NORMAL_BANK_TRANSFER 枚举值之一 |
recharge_state_desc | string | 充值状态描述 |
recharge_amount | object | 充值金额 |
amount | number | 总金额 |
currency | string | 货币类型 |
bank_transfer_info | object | 转账充值的付款信息 |
bill_no | string | 转入的银行流水单号 |
memo | string | 转账充值附言 |
return_time | string | 银行转账退回时间 |
return_reason | string | 银行转账退回原因 |
bank_name | string | 开户银行名称 |
bank_card_tail | string | 银行卡号后四位 |
qr_recharge_info | object | 扫码充值的付款信息 |
openid | string | 用户OpenID |
employee_type | string | 员工类型ADMIN | STAFF 枚举值之一 |
accept_time | string | 受理充值时间 |
success_time | string | 充值成功时间 |
close_time | string | 关闭充值时间 |
参阅 官方文档