Skip to content

品类凭证码上报撤销

品类凭证码上报撤销

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_serial_nostring接入方请求流水号
cred_frozen_nostring冻结流水号
trans_datestring交易日期
trans_timestring交易时间
order_nostring商户订单号
subsidy_amtnumber政府补贴金额
add_codestring收货地区编码
addressstring收货地址
sale_modelsstring销售方式(0-线上/1-线下)
0 | 1 枚举值之一
uniscidstring统一社会信息代码(18 位,请与营业 执照上保持一致)
barcodestring商品条码(13 位或 14 位)
auth_codestring品类凭证码
req_ssnstring请求流水号
bank_namestring银行机构名称
bank_subsidystring银行补贴金额(都是正数,以元为单 位)
plat_subsidystring交易平台补贴金额(都是正数,以元 为单位)
corp_namestring销售企业名称
brandstring家电品牌
php
$instance->v3->gov->subsidy->zhejiang->authcode->refund->postAsync([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
])
->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/refund')->postAsync([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/gov/subsidy/zhejiang/authcode/refund']->postAsync([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
])
->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->refund->post([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/gov/subsidy/zhejiang/authcode/refund')->post([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/gov/subsidy/zhejiang/authcode/refund']->post([
  'json' => [
    'sp_serial_no'   => '',
    'cred_frozen_no' => '',
    'trans_date'     => '',
    'trans_time'     => '',
    'order_no'       => '',
    'subsidy_amt'    => 0,
    'add_code'       => '',
    'address'        => '',
    'sale_models'    => '0',
    'uniscid'        => '',
    'barcode'        => '',
    'auth_code'      => '',
    'req_ssn'        => '123',
    'bank_name'      => '',
    'bank_subsidy'   => '',
    'plat_subsidy'   => '',
    'corp_name'      => '',
    'brand'          => '',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
resp_codestring响应码
resp_descstring响应描述

参阅 官方文档

Published on the GitHub by TheNorthMemory