查询申请状态
使用申请入驻接口提交小微商户资料后,一般5分钟左右可以通过该查询接口查询具体的申请结果。
🚫
本接口服务已于 2023.05.23
(北京时间)下线,文档仅做留存参考。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号 |
mch_id | string | 商户号 |
sign_type | string | 签名类型HMAC-SHA256 枚举值 |
applyment_id | string | 商户申请单号 |
business_code | string | 业务申请编号 |
php
$instance->v2->applyment->micro->getstate->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/applyment/micro/getstate')->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/applyment/micro/getstate']->postAsync([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->applyment->micro->getstate->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/applyment/micro/getstate')->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/applyment/micro/getstate']->post([
'security' => true,
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'applyment_id' => '1230000109',
'business_code' => '123456',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
applyment_id | string | 商户申请单号 |
applyment_state | string | 申请状态 |
applyment_state_desc | string | 申请状态描述 |
sub_mch_id | string | 小微商户号 |
sign_url | string | 签约链接 |
audit_detail | string | 审核详情 |
param_name | string | 参数名称 |
reject_reason | string | 驳回原因 |
参阅 官方文档