提交注销申请单
电商子商户需注销商户号时,由其所属电商平台服务商调用本接口发起注销申请。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sub_mchid | string | 二级商户号 |
out_apply_no | string | 商户注销申请单号 |
application_info | object[] | 注销申请材料 |
application_type | string | 注销申请材料类型SP_CANCEL_ACCOUNT_APPLICATION | SUB_CANCEL_ACCOUNT_APPLICATION 枚举值之一 |
application_media_id | string |
php
$instance->v3->ecommerce->account->cancelApplications->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/account/cancel-applications')->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/account/cancel-applications']->postAsync([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->account->cancelApplications->post([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/account/cancel-applications')->post([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/account/cancel-applications']->post([
'json' => [
'sub_mchid' => '1900000109',
'out_apply_no' => '2019061122222222122',
'application_info' => [[
'application_type' => 'SP_CANCEL_ACCOUNT_APPLICATION',
'application_media_id' => '',
],],
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
out_apply_no | string | 商户注销申请单号 |
sub_mchid | string | 二级商户号 |
reject_reason | string | 受理失败原因 |
cancel_state | string | 注销状态REVIEWING | REJECTED | CANCEL_SUCCESS 枚举值之一 |
update_time | string | 最后更新时间 |
参阅 官方文档