重新发起提现
微信支付已完成小微商户提现功能的升级,小微商户可在「微信支付商家助手小程序 - 资金管理 - 基本账户」发起手动提现,自动提现的金额调整为 “前一日基本账户日终余额的可用余额部分”。
🚫
本接口服务已于 2020.04.13
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 服务商商户号 |
sub_mch_id | string | 小微商户号 |
date | string | 自动提现单提现日期 |
sign_type | string | 签名类型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_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
sign | string | 签名 |
date | string | 自动提现单提现日期 |
mch_id | string | 商户号 |
sub_mch_id | string | 小微商户号 |
withdraw_id | string | 提现单单据ID |
amount | integer | 金额 |
create_time | string | 单据创建时间 |
nonce_str | string | 随机字符 |
参阅 官方文档