Skip to content

申请品类凭证码

申请品类凭证码

请求参数类型描述
jsonobject声明请求的JSON数据结构
category_idstring品类编码
openidstring用户id
namestring姓名
mobilestring手机号
add_codestring区县编码
custom_infostring自定义域
cert_typestring证件类型
1 | 2 | 3 | 4 | 5 枚举值之一
cert_nostring证件号码
req_ssnstring请求流水号
headersobject声明请求的头参数
Wechatpay-Serialstring微信支付公钥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_codestring响应码
resp_descstring响应描述
auth_codestring品类凭证码

参阅 官方文档

Published on the GitHub by TheNorthMemory