商户注销资格校验
电商平台发起注销提现申请前,可通过该接口判断商户是否满足注销条件
| 请求参数 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 申请注销的二级商户号 |
php
$instance->v3->ecommerce->account->applyCancelWithdraw->validateCancel->_sub_mchid_->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/ecommerce/account/apply-cancel-withdraw/validate-cancel/{sub_mchid}')->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/ecommerce/account/apply-cancel-withdraw/validate-cancel/{sub_mchid}']->getAsync([
'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->ecommerce->account->applyCancelWithdraw->validateCancel->_sub_mchid_->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/ecommerce/account/apply-cancel-withdraw/validate-cancel/{sub_mchid}')->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/ecommerce/account/apply-cancel-withdraw/validate-cancel/{sub_mchid}']->get([
'sub_mchid' => '1900000109',
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 注销检查的二级商户号 |
| merchant_state | string | 注销提现申请单状态NORMAL | HAS_BEEN_CANCELLED 枚举值之一 |
| validate_result | string | 注销资格检查结果ALLOW_CANCEL_WITHDRAW | NOT_ALLOW_CANCEL_WITHDRAW 枚举值之一 |
| account_info | object[] | 账户信息 |
| out_account_type | string | 商户资金账户余额BASIC_ACCOUNT | OPERATE_ACCOUNT | MARGIN_ACCOUNT | TRADE_FEE_ACCOUNT 枚举值之一 |
| amount | integer | 账户金额 |
| block_reasons | object[] | 不可发起注销原因 |
| type | string | 二级商户号的出款子账户类型CONSUMER_COMPLAINT_UNPROCESSED | HAS_BLOCKING_CONTROL | FUNDS_PENDING_PROCESSING | OTHER_REASON 枚举值之一 |
| description | string | 原因描述 |
参阅 官方文档