报名费率优惠活动
从业机构可调用该接口帮助已完成开户意愿确认的特约商户报名微信支付优惠费率活动。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
acquiring_bank_id | string | 从业机构号 |
channel_id | string | 渠道商户号 |
sub_mchid | string | 从业机构特约商户号 |
activity_detail | object | 活动报名信息 |
activity_id | string | 活动ID |
activity_rate | string | 活动费率 |
activity_apply_information | object[] | 活动报名材料 |
apply_material_id | string | 材料ID |
apply_material_information | string[] | 材料内容 |
additional_information | object | 补充信息 |
additional_message | string | 补充说明 |
additional_material | string[] | 补充材料 |
php
$instance->v3->rateActivity->applications->postAsync([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/rate-activity/applications')->postAsync([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/rate-activity/applications']->postAsync([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->rateActivity->applications->post([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/rate-activity/applications')->post([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/rate-activity/applications']->post([
'json' => [
'acquiring_bank_id' => '1356485',
'channel_id' => '20001111',
'sub_mchid' => '1346578',
'activity_detail' => [
'activity_id' => 'schoolcanteen_001',
'activity_rate' => '0.6',
'activity_apply_information' => [[
'apply_material_id' => 'SCHOOL_QUALIFICATION_PROVEMENT',
'apply_material_information' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],],
],
'additional_information' => [
'additional_message' => '特殊情况,说明原因',
'additional_material' => ['0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAjm'],
],
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
application_id | string | 申请单编号 |
参阅 官方文档