账户余额提现
电商平台通过余额提现API帮助二级商户发起账户余额提现申请,完成账户余额提现。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 特约商户号 |
out_request_no | string | 商户提现单号 |
amount | integer | 提现金额 |
remark | string | 提现备注 |
bank_memo | string | 银行附言 |
account_type | string | 出款账户类型BASIC | OPERATION | FEES 枚举值之一 |
php
$instance->v3->ecommerce->fund->withdraw->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/fund/withdraw')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/fund/withdraw']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->fund->withdraw->post([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/fund/withdraw')->post([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/fund/withdraw']->post([
'json' => [
'sub_mchid' => '1900000109',
'out_request_no' => '20190611222222222200000000012122',
'amount' => 100,
'remark' => '交易提现',
'bank_memo' => '微信支付提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 特约商户号 |
withdraw_id | string | 微信支付提现单号 |
out_request_no | string | 商户提现单号 |
account_type | string | 出款账户类型BASIC | OPERATION | FEES 枚举值之一 |