Skip to content

电商平台提现

电商平台通过该接口可将其平台的收入进行提现

请求参数类型描述
jsonobject声明请求的JSON数据结构
out_request_nostring商户提现单号
amountinteger提现金额
remarkstring备注
bank_memostring银行附言
account_typestring资金账户类型
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_idstring微信支付提现单号
out_request_nostring商户提现单号

参阅 官方文档

Published on the GitHub by TheNorthMemory