预核销品类凭证码
预核销品类凭证码
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sp_serial_no | string | 接入方请求流水号 |
mchnt_no | string | 商户号 |
term_no | string | 终端号 |
auth_code | string | 品类凭证码 |
category | string | 品类编码 |
county_code | string | 区县编码 |
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_code | string | 响应码 |
resp_desc | string | 响应描述 |
cred_frozen_no | string | 冻结流水号 |
event_id | string | 活动号 |
event_title | string | 活动标题 |
discount_mode | number | 优惠模式DIS_FLAG | DIS_CALC | DIS_SMKT 枚举值之一 |
amount | number | 原订单金额 |
discount_amt | number | 优惠金额 |
pay_amt | number | 实付金额 |
channel_dis_flag | string | 渠道优惠标记 |
channel_evt_no | string | 渠道活动号列表 |
category_id | string | 品类编码 |
参阅 官方文档