查询个人收款方授权结果
查询个人收款方授权结果,以下情况需要调用:1. 个人卖家开通授权收款;2. 交易下单前,需要individual_auth_id
请求参数 | 类型 | 描述 |
---|---|---|
openid | string | 个人收款方在平台appid下的唯一标识 |
query | object | 声明请求的查询参数 |
appid | string | 签约和付款的微信小程序AppID |
permission_type | string | 权限类型INDIVIDUAL_PAYEE 枚举值 |
php
$instance->v3->ecommerce->individualContracts->_openid_->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/individual-contracts/{openid}')->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/individual-contracts/{openid}']->getAsync([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->individualContracts->_openid_->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/individual-contracts/{openid}')->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/individual-contracts/{openid}']->get([
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'query' => [
'appid' => 'wxd678efh567h23787',
'permission_type' => 'INDIVIDUAL_PAYEE',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
individual_auth_id | string | 授权ID |
operation_time | string | 操作时间 |
auth_state | string | 授权状态AUTHORIZED | UNAUTHORIZED 枚举值之一 |
参阅 官方文档