N品类同步资格核销信息
给地方补贴用的,同步核销信息。用于核销N品类的资格,3.6的是核销8大品类的,核销的品类不同
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
real_name | string | 自然人姓名 |
id_card_number | string | 自然人证件号 |
phone_number | string | 手机号 |
appliance_id | number | 消费品类ID1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 枚举值之一 |
out_trade_no | string | 商户支付订单号 |
sub_mchid | string | 子商户号 |
energy_grade | string | 能效等级FIRST_LEVEL | SECOND_LEVEL | ENERGY_GRADE_UNKNOWN 枚举值之一 |
receive_region_code | string | 收货地区编码 |
brand | string | 家电品牌 |
address | string | 收货地址 |
qualification_region_code | number | 使用的资格的地区编码 |
seller_name | string | 销售企业名称 |
license_number | string | 统一社会信息代码 |
logistics_num | string | 物流单号 |
delivery_time | string | 签收时间 |
invoice_num | string | 发票号 |
product_type | string | 产品类型COMMON_PRODUCT | AI_PRODUCT 枚举值之一 |
pc_type | string | 类型(台式、笔记本),当品类为电脑时必填DESKTOP | LAPTOP | COMPUTER_TYPE_UNKNOWN 枚举值之一 |
order_amount | number | 订单金额 |
discount_amount | number | 优惠金额,单位为分,注意:只传国补相关优惠,其他非国补的优惠不可叠加在这里 |
mch_order_id | string | 线上平台订单编号 |
invoice_time | string | 开票日期 |
purchaser_name | string | 购买方名称 |
sale_model | string | 销售方式SALE_MODEL_ONLINE | SALE_MODEL_OFFLINE 枚举值之一 |
identity_document_type | string | 证件类型ID_DOC_TYPE_ID_CARD | ID_DOC_TYPE_MAINLAND_TRAVEL_PERMIT_FOR_HK_MC | ID_DOC_TYPE_MAINLAND_TRAVEL_PERMIT_FOR_TW 枚举值之一 |
invoice_address_code | string | 发票开具地(地址编码) |
tax_authority_code | string | 税务机关代码 |
transaction_time | string | 交易完成或商品退回时间 |
cate_state | string | 品类状态CATE_STATE_REDEEM | CATE_STATE_REFUND 枚举值之一 |
longitude | string | 经度 |
latitude | string | 纬度 |
cate_code | string | 品类编码 |
coupon_code | string | 券码 |
invoice_code | string | 发票代码 |
refund_id | string | 线上平台退款交易编号 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 微信支付公钥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));
返回字典 | 类型 | 描述 |
---|---|---|
code | string | 响应码 |
message | string | 响应描述 |
参阅 官方文档