Skip to content

重新发起提现

微信支付已完成小微商户提现功能的升级,小微商户可在「微信支付商家助手小程序 - 资金管理 - 基本账户」发起手动提现,自动提现的金额调整为 “前一日基本账户日终余额的可用余额部分”。

🚫

本接口服务已于 2020.04.13 (北京时间)下线,文档仅做留存参考。

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
mch_idstring服务商商户号
sub_mch_idstring小微商户号
datestring自动提现单提现日期
sign_typestring签名类型
HMAC-SHA256 枚举值
php
$instance->v2->fund->reautowithdrawbydate->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/fund/reautowithdrawbydate')->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/fund/reautowithdrawbydate']->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->fund->reautowithdrawbydate->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/fund/reautowithdrawbydate')->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/fund/reautowithdrawbydate']->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'date'       => '20180602',
    'sign_type'  => 'HMAC-SHA256',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
result_codestring业务结果
SUCCESS | FAIL 枚举值之一
err_codestring错误代码
err_code_desstring错误代码描述
sign_typestring签名类型
HMAC-SHA256 枚举值
signstring签名
datestring自动提现单提现日期
mch_idstring商户号
sub_mch_idstring小微商户号
withdraw_idstring提现单单据ID
amountinteger金额
create_timestring单据创建时间
nonce_strstring随机字符

参阅 官方文档

Published on the GitHub by TheNorthMemory