Skip to content

N品类同步资格核销信息

给地方补贴用的,同步核销信息。用于核销N品类的资格,3.6的是核销8大品类的,核销的品类不同

请求参数类型描述
jsonobject声明请求的JSON数据结构
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 枚举值之一
out_trade_nostring商户支付订单号
sub_mchidstring子商户号
energy_gradestring能效等级
FIRST_LEVEL | SECOND_LEVEL | ENERGY_GRADE_UNKNOWN 枚举值之一
receive_region_codestring收货地区编码
brandstring家电品牌
addressstring收货地址
qualification_region_codenumber使用的资格的地区编码
seller_namestring销售企业名称
license_numberstring统一社会信息代码
logistics_numstring物流单号
delivery_timestring签收时间
invoice_numstring发票号
product_typestring产品类型
COMMON_PRODUCT | AI_PRODUCT 枚举值之一
pc_typestring类型(台式、笔记本),当品类为电脑时必填
DESKTOP | LAPTOP | COMPUTER_TYPE_UNKNOWN 枚举值之一
order_amountnumber订单金额
discount_amountnumber优惠金额,单位为分,注意:只传国补相关优惠,其他非国补的优惠不可叠加在这里
mch_order_idstring线上平台订单编号
invoice_timestring开票日期
purchaser_namestring购买方名称
sale_modelstring销售方式
SALE_MODEL_ONLINE | SALE_MODEL_OFFLINE 枚举值之一
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 枚举值之一
invoice_address_codestring发票开具地(地址编码)
tax_authority_codestring税务机关代码
transaction_timestring交易完成或商品退回时间
cate_statestring品类状态
CATE_STATE_REDEEM | CATE_STATE_REFUND 枚举值之一
longitudestring经度
latitudestring纬度
cate_codestring品类编码
coupon_codestring券码
invoice_codestring发票代码
refund_idstring线上平台退款交易编号
headersobject声明请求的头参数
Wechatpay-Serialstring微信支付公钥ID/平台证书序列号
php
$instance->v3->gov->subsidy->nQualifications->sync->postAsync([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  '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/n-qualifications/sync')->postAsync([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  '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/n-qualifications/sync']->postAsync([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  '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->nQualifications->sync->post([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/gov/subsidy/n-qualifications/sync')->post([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/gov/subsidy/n-qualifications/sync']->post([
  'json' => [
    'real_name'                 => 'OEimkKuua8igpd+0YDgqF2Z61l=',
    'id_card_number'            => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/mEoNSgJh0nvuqQJ1cdL==',
    'phone_number'              => '1axtI9EZUr0343c89xQznxau+cRWPKP4YhVAoj/nunesXwq9ogPnSj7EDA==',
    'appliance_id'              => 1,
    'out_trade_no'              => 'vmall_250120131959_993_4494',
    'sub_mchid'                 => '123456',
    'energy_grade'              => 'FIRST_LEVEL',
    'receive_region_code'       => '110101',
    'brand'                     => '海尔',
    'address'                   => '深圳市南山区',
    'qualification_region_code' => 310100,
    'seller_name'               => '联想(北京)信息技术有限公司',
    'license_number'            => '91110108397173806M',
    'logistics_num'             => '123456789',
    'delivery_time'             => '2025-01-14T19:55:06+08:00',
    'invoice_num'               => '031001900204',
    'product_type'              => 'COMMON_PRODUCT',
    'pc_type'                   => 'DESKTOP',
    'order_amount'              => 10000,
    'discount_amount'           => 2000,
    'mch_order_id'              => '123456789',
    'invoice_time'              => '2025-01-14T19:55:06+08:00',
    'purchaser_name'            => '小弟弟',
    'sale_model'                => 'SALE_MODEL_OFFLINE',
    'identity_document_type'    => 'ID_DOC_TYPE_ID_CARD',
    'invoice_address_code'      => '310100',
    'tax_authority_code'        => '2525252',
    'transaction_time'          => '2025-01-14T19:55:06+08:00',
    'cate_state'                => 'CATE_STATE_REDEEM',
    'longitude'                 => '',
    'latitude'                  => '',
    'cate_code'                 => 'JS06',
    'coupon_code'               => '6901010101098',
    'invoice_code'              => '310100',
    'refund_id'                 => '123456789',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
codestring响应码
messagestring响应描述

参阅 官方文档

Published on the GitHub by TheNorthMemory