Skip to content

报名费率优惠活动

从业机构可调用该接口帮助已完成开户意愿确认的特约商户报名微信支付优惠费率活动。

请求参数类型描述
jsonobject声明请求的JSON数据结构
acquiring_bank_idstring从业机构号
channel_idstring渠道商户号
sub_mchidstring从业机构特约商户号
activity_detailobject活动报名信息
activity_idstring活动ID
activity_ratestring活动费率
activity_apply_informationobject[]活动报名材料
apply_material_idstring材料ID
apply_material_informationstring[]材料内容
additional_informationobject补充信息
additional_messagestring补充说明
additional_materialstring[]补充材料
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_idstring申请单编号

参阅 官方文档

Published on the GitHub by TheNorthMemory