查询核身记录
查询指定用户指定日期微工卡核身记录,查询结果仅展示核身成功的记录
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
openid | string | 用户标识 |
appid | string | 应用ID |
sub_appid | string | 子商户应用ID |
sub_mchid | string | 子商户号 |
authenticate_date | string | 核身日期 |
authenticate_state | string | 核身状态 |
offset | integer | 本次查询偏移量 |
limit | integer | 本次请求最大查询条数 |
php
$instance->v3->payrollCard->authentications->getAsync([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payroll-card/authentications')->getAsync([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payroll-card/authentications']->getAsync([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payrollCard->authentications->get([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payroll-card/authentications')->get([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payroll-card/authentications']->get([
'query' => [
'openid' => 'onqOjjmo8wmTOOtSKwXtGjg9Gb58',
'appid' => 'wxa1111111',
'sub_appid' => 'wxa1111111',
'sub_mchid' => '1111111',
'authenticate_date' => '2020-12-25',
'authenticate_state' => 'AUTHENTICATE_SUCCESS',
'offset' => 0,
'limit' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
data | object[] | 查询结果记录列表 |
mchid | string | 商户号 |
sub_mchid | string | 子商户号 |
openid | string | 用户标识 |
authenticate_scene | string | 核身渠道FROM_MINI_APP | FROM_HARDWARE 枚举值之一 |
authenticate_source | string | 核身渠道标识 |
project_name | string | 项目名称 |
employer_name | string | 单位名称 |
authenticate_state | string | 核身状态AUTHENTICATE_PROCESSING | AUTHENTICATE_SUCCESS | AUTHENTICATE_FAILED 枚举值之一 |
authenticate_time | string | 核身时间 |
authenticate_number | string | 商家核身单号 |
total_count | integer | 总记录条数 |
offset | integer | 记录起始位置 |
limit | integer | 本次返回条数 |
参阅 官方文档