Skip to content

预核销品类凭证码

预核销品类凭证码

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_serial_nostring接入方请求流水号
mchnt_nostring商户号
term_nostring终端号
auth_codestring品类凭证码
categorystring品类编码
county_codestring区县编码
php
$instance->v3->gov->subsidy->zhejiang->authcode->try->postAsync([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
])
->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/try')->postAsync([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/gov/subsidy/zhejiang/authcode/try']->postAsync([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
])
->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->try->post([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/gov/subsidy/zhejiang/authcode/try')->post([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/gov/subsidy/zhejiang/authcode/try']->post([
  'json' => [
    'sp_serial_no' => '',
    'mchnt_no'     => '',
    'term_no'      => '',
    'auth_code'    => '',
    'category'     => 'A01',
    'county_code'  => '330000',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
resp_codestring响应码
resp_descstring响应描述
cred_frozen_nostring冻结流水号
event_idstring活动号
event_titlestring活动标题
discount_modenumber优惠模式
DIS_FLAG | DIS_CALC | DIS_SMKT 枚举值之一
amountnumber原订单金额
discount_amtnumber优惠金额
pay_amtnumber实付金额
channel_dis_flagstring渠道优惠标记
channel_evt_nostring渠道活动号列表
category_idstring品类编码

参阅 官方文档

Published on the GitHub by TheNorthMemory