Skip to content

查询申请状态

使用申请入驻接口提交小微商户资料后,一般5分钟左右可以通过该查询接口查询具体的申请结果。

🚫

本接口服务已于 2023.05.23 (北京时间)下线,文档仅做留存参考。

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
versionstring接口版本号
mch_idstring商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
applyment_idstring商户申请单号
business_codestring业务申请编号
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_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
nonce_strstring随机字符串
signstring签名
result_codestring业务结果
SUCCESS | FAIL 枚举值之一
err_codestring错误代码
err_code_desstring错误代码描述
applyment_idstring商户申请单号
applyment_statestring申请状态
applyment_state_descstring申请状态描述
sub_mch_idstring小微商户号
sign_urlstring签约链接
audit_detailstring审核详情
param_namestring参数名称
reject_reasonstring驳回原因

参阅 官方文档

Published on the GitHub by TheNorthMemory