Skip to content

根据申请单ID查询申请单结果

从业机构可调用该接口查询优惠费率活动的报名结果。

请求参数类型描述
application_idstring申请单编号
php
$instance->v3->rateActivity->applications->id->_application_id_->getAsync([
  'application_id' => '20000011111',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/rate-activity/applications/id/{application_id}')->getAsync([
  'application_id' => '20000011111',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/rate-activity/applications/id/{application_id}']->getAsync([
  'application_id' => '20000011111',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->rateActivity->applications->id->_application_id_->get([
  'application_id' => '20000011111',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/rate-activity/applications/id/{application_id}')->get([
  'application_id' => '20000011111',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/rate-activity/applications/id/{application_id}']->get([
  'application_id' => '20000011111',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
application_statestring申请单状态
sub_mchidstring从业机构特约商户号
reject_parameterstring驳回参数
reject_reasonstring驳回原因
pass_timestring活动审核通过时间

参阅 官方文档

修改单据信息

该接口只适用于修改已经审核失败的单据。

请求参数类型描述
application_idstring申请单编号
jsonobject声明请求的JSON数据结构
activity_detail_modificationobject活动报名修改信息
activity_ratestring活动费率
activity_apply_informationobject[]活动报名材料
apply_material_idstring材料ID
apply_material_informationstring[]材料内容
additional_informationobject补充信息
additional_messagestring补充说明
additional_materialstring[]补充材料
php
$instance->v3->rateActivity->applications->id->_application_id_->patchAsync([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/rate-activity/applications/id/{application_id}')->patchAsync([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/rate-activity/applications/id/{application_id}']->patchAsync([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->rateActivity->applications->id->_application_id_->patch([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/rate-activity/applications/id/{application_id}')->patch([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/rate-activity/applications/id/{application_id}']->patch([
  'application_id' => '20000011111',
  'json' => [
    'activity_detail_modification' => [
      'activity_rate'              => '0.6',
      'activity_apply_information' => [[
        'apply_material_id'          => 'SCHOOL_QUALIFICATION_PROOF',
        'apply_material_information' => ['MediaId'],
      ],],
    ],
    'additional_information'       => [
      'additional_message'  => '特殊情况,说明原因',
      'additional_material' => ['MediaId'],
    ],
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
application_idstring申请单编号

参阅 官方文档

Published on the GitHub by TheNorthMemory