Skip to content

查询补贴资格

根据品类id+实名信息查询用资格状态。可以是进入国补专区展示时查询,线下场景可以不查询,直接看用户在小程序上领没领券,领券了就直接付款。这个接口不会查省平台。

请求参数类型描述
queryobject声明请求的查询参数
real_namestring自然人姓名
id_card_numberstring自然人证件号
phone_numberstring手机号
appliance_idnumber消费品类ID
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 枚举值之一
openidstringOPENID
appidstringAPPID
qualification_region_codenumber使用的资格的地区编码
identity_document_typestring证件类型
ID_DOC_TYPE_ID_CARD | ID_DOC_TYPE_MAINLAND_TRAVEL_PERMIT_FOR_HK_MC | ID_DOC_TYPE_MAINLAND_TRAVEL_PERMIT_FOR_TW 枚举值之一
headersobject声明请求的头参数
Wechatpay-Serialstring微信支付公钥ID/平台证书序列号
php
$instance->v3->gov->subsidy->qualification->getAsync([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/gov/subsidy/qualification')->getAsync([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/gov/subsidy/qualification']->getAsync([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->gov->subsidy->qualification->get([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/gov/subsidy/qualification')->get([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/gov/subsidy/qualification']->get([
  'query' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'openid'                    => 'oCuiA7RW33Tc3jtz_5CNLegC9kN0',
    'appid'                     => 'wx5cb0427850cd8c49',
    'qualification_region_code' => 310100,
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
statestring资格的状态
UNCLAIMED | UNREDEEMED | REDEEMED 枚举值之一

参阅 官方文档

Published on the GitHub by TheNorthMemory