Skip to content

微信支付提现单号查询

电商平台通过该接口查询其提现结果

请求参数类型描述
withdraw_idstring微信支付提现单号
queryobject声明请求的查询参数
sub_mchidstring二级商户号
php
$instance->v3->ecommerce->fund->withdraw->_withdraw_id_->getAsync([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/fund/withdraw/{withdraw_id}')->getAsync([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/fund/withdraw/{withdraw_id}']->getAsync([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->fund->withdraw->_withdraw_id_->get([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/fund/withdraw/{withdraw_id}')->get([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/fund/withdraw/{withdraw_id}']->get([
  'withdraw_id' => '1232193719823791273913279173',
  'query' => [
    'sub_mchid' => '1900000109',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring二级商户号
sp_mchidstring电商平台商户号
statusstring提现单状态
CREATE_SUCCESS | SUCCESS | FAIL | REFUND | CLOSE | INIT 枚举值之一
withdraw_idstring微信支付提现单号
out_request_nostring商户提现单号
amountinteger提现金额
create_timestring发起提现时间
update_timestring提现状态更新时间
reasonstring失败原因
remarkstring提现备注
bank_memostring银行备注
account_typestring出款账户类型
BASIC | OPERATION | FEES 枚举值之一
account_numberstring入账银行账号后四位
account_bankstring入账银行
bank_namestring入账银行全称(含支行)

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory