Skip to content

查询二级商户充值结果

提交充值申请后,可调用该接口查询充值状态。充值到账存在延迟: 1、扫码充值:3分钟内到账 2、银行转账:一般可在10分钟内到账。受央行大额系统工作时间限制,周一至周四17:15-20:30,周五17:15-24:00,节假日全天会延迟到账

请求参数类型描述
out_recharge_nostring商户充值单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->platsolution->ecommerce->recharges->outRechargeNo->_out_recharge_no_->getAsync([
  '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}')->getAsync([
  '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}']->getAsync([
  '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_->get([
  '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}')->get([
  '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}']->get([
  'out_recharge_no' => 'cz2020042013',
  'query' => [
    'sub_mchid' => '1900001121',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring平台商户号
sub_mchidstring二级商户号
recharge_idstring微信支付充值单号
out_recharge_nostring商户充值单号
recharge_channelstring充值渠道
BANK_TRANSFER | QR_RECHARGE 枚举值之一
account_typestring充值入账账户
DEPOSIT | BASIC | OPERATION | FEES 枚举值之一
recharge_statestring充值状态
SUCCESS | RECHARGING | CLOSED 枚举值之一
recharge_scenestring充值场景
ECOMMERCE_DEPOSIT | ECOMMERCE_BANK_TRANSFER | NORMAL_BANK_TRANSFER 枚举值之一
recharge_state_descstring充值状态描述
recharge_amountobject充值金额
amountnumber总金额
currencystring货币类型
bank_transfer_infoobject转账充值的付款信息
bill_nostring转入的银行流水单号
memostring转账充值附言
return_timestring银行转账退回时间
return_reasonstring银行转账退回原因
bank_namestring开户银行名称
bank_card_tailstring银行卡号后四位
qr_recharge_infoobject扫码充值的付款信息
openidstring用户OpenID
employee_typestring员工类型
ADMIN | STAFF 枚举值之一
accept_timestring受理充值时间
success_timestring充值成功时间
close_timestring关闭充值时间

参阅 官方文档

Published on the GitHub by TheNorthMemory