商户单号查询自动收款授权
根据商户单号用户自动收款授权的详细信息。
请求参数 | 类型 | 描述 |
---|---|---|
out_authorization_no | string | 商户侧授权单号 |
php
$instance->v3->fundApp->mchTransfer->userConfirmAuthorization->outAuthorizationNo->_out_authorization_no_->getAsync([
'out_authorization_no' => 'plfk2020042013',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
2
3
4
5
6
7
php
$instance->chain('v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/{out_authorization_no}')->getAsync([
'out_authorization_no' => 'plfk2020042013',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
2
3
4
5
6
7
php
$instance['v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/{out_authorization_no}']->getAsync([
'out_authorization_no' => 'plfk2020042013',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
2
3
4
5
6
7
php
$response = $instance->v3->fundApp->mchTransfer->userConfirmAuthorization->outAuthorizationNo->_out_authorization_no_->get([
'out_authorization_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
2
3
4
php
$response = $instance->chain('v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/{out_authorization_no}')->get([
'out_authorization_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
2
3
4
php
$response = $instance['v3/fund-app/mch-transfer/user-confirm-authorization/out-authorization-no/{out_authorization_no}']->get([
'out_authorization_no' => 'plfk2020042013',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
2
3
4
返回字典 | 类型 | 描述 |
---|---|---|
out_authorization_no | string | 商户侧授权单号 |
appid | string | 商户AppID |
openid | string | 收款用户OpenID |
user_display_name | string | 用户展示名称 |
authorization_id | string | 微信自动收款授权单号 |
state | string | 单据状态TAKING_EFFECT | CLOSED 枚举值之一 |
authorize_time | string | 用户确认授权的时间 |
close_info | object | 自动收款授权的关闭信息 |
close_time | string | 关闭时间 |
close_reason | string | 自动收款授权的原因CLOSE_VIA_MCH_API | USER_CLOSE 枚举值之一 |
参阅 官方文档