申请品类凭证码
申请品类凭证码
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
category_id | string | 品类编码 |
openid | string | 用户id |
name | string | 姓名 |
mobile | string | 手机号 |
add_code | string | 区县编码 |
custom_info | string | 自定义域 |
cert_type | string | 证件类型1 | 2 | 3 | 4 | 5 枚举值之一 |
cert_no | string | 证件号码 |
req_ssn | string | 请求流水号 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 微信支付公钥ID/平台证书序列号 |
php
$instance->v3->gov->subsidy->zhejiang->authcode->issue->postAsync([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'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/zhejiang/authcode/issue')->postAsync([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'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/zhejiang/authcode/issue']->postAsync([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'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->zhejiang->authcode->issue->post([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/gov/subsidy/zhejiang/authcode/issue')->post([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/gov/subsidy/zhejiang/authcode/issue']->post([
'json' => [
'category_id' => 'A01',
'openid' => '',
'name' => 'OEimkKuua8igpd+0YDgqF2Z61l=',
'mobile' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
'add_code' => '330000',
'custom_info' => '',
'cert_type' => '1',
'cert_no' => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
'req_ssn' => '123',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
resp_code | string | 响应码 |
resp_desc | string | 响应描述 |
auth_code | string | 品类凭证码 |
参阅 官方文档