商户提现单号查询
电商平台通过查询提现状态API查询二级商户提现单的提现结果。
请求参数 | 类型 | 描述 |
---|---|---|
out_request_no | string | 商户提现单号,由商户自定义生成。 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
php
$instance->v3->ecommerce->fund->withdraw->outRequestNo->_out_request_no_->getAsync([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/fund/withdraw/out-request-no/{out_request_no}')->getAsync([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/fund/withdraw/out-request-no/{out_request_no}']->getAsync([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->fund->withdraw->outRequestNo->_out_request_no_->get([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/fund/withdraw/out-request-no/{out_request_no}')->get([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/fund/withdraw/out-request-no/{out_request_no}']->get([
'out_request_no' => '20190611222222222200000000012122',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 二级商户号 |
sp_mchid | string | 电商平台商户号 |
status | string | 提现单状态CREATE_SUCCESS | SUCCESS | FAIL | REFUND | CLOSE | INIT 枚举值之一 |
withdraw_id | string | 微信支付提现单号 |
out_request_no | string | 商户提现单号 |
amount | integer | 提现金额 |
create_time | string | 发起提现时间 |
update_time | string | 提现状态更新时间 |
reason | string | 失败原因 |
remark | string | 提现备注 |
bank_memo | string | 银行备注 |
account_type | string | 出款账户类型BASIC | OPERATION | FEES 枚举值之一 |
account_number | string | 入账银行账号后四位 |
account_bank | string | 入账银行 |
bank_name | string | 入账银行全称(含支行) |