Skip to content

查询核身记录

查询指定用户指定日期微工卡核身记录,查询结果仅展示核身成功的记录

请求参数类型描述
queryobject声明请求的查询参数
openidstring用户标识
appidstring应用ID
sub_appidstring子商户应用ID
sub_mchidstring子商户号
authenticate_datestring核身日期
authenticate_statestring核身状态
offsetinteger本次查询偏移量
limitinteger本次请求最大查询条数
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));
返回字典类型描述
dataobject[]查询结果记录列表
mchidstring商户号
sub_mchidstring子商户号
openidstring用户标识
authenticate_scenestring核身渠道
FROM_MINI_APP | FROM_HARDWARE 枚举值之一
authenticate_sourcestring核身渠道标识
project_namestring项目名称
employer_namestring单位名称
authenticate_statestring核身状态
AUTHENTICATE_PROCESSING | AUTHENTICATE_SUCCESS | AUTHENTICATE_FAILED 枚举值之一
authenticate_timestring核身时间
authenticate_numberstring商家核身单号
total_countinteger总记录条数
offsetinteger记录起始位置
limitinteger本次返回条数

参阅 官方文档

Published on the GitHub by TheNorthMemory