电商平台提现
电商平台通过该接口可将其平台的收入进行提现
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
out_request_no | string | 商户提现单号 |
amount | integer | 提现金额 |
remark | string | 备注 |
bank_memo | string | 银行附言 |
account_type | string | 资金账户类型BASIC | OPERATION | FEES 枚举值之一 |
php
$instance->v3->merchant->fund->withdraw->postAsync([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant/fund/withdraw')->postAsync([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant/fund/withdraw']->postAsync([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchant->fund->withdraw->post([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant/fund/withdraw')->post([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant/fund/withdraw']->post([
'json' => [
'out_request_no' => '20190611222222222200000000012122',
'amount' => 1,
'remark' => '交易体现',
'bank_memo' => 'xx平台提现',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
withdraw_id | string | 微信支付提现单号 |
out_request_no | string | 商户提现单号 |
参阅 官方文档