Skip to content

查询提现状态

小微商户模式下,与微信支付对接的是服务商,小微商户可能并不感知微信支付,小微商户的日常维护,是登录服务商自建的APP或者公众号,来查询提现状态等等。本API即提供自动提现查询能力给到服务商。说明:1、反映的是小微商户历史自动提现单据的相关信息;2、资金账单中涉及金额的字段单位为“分”。

🚫

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

请求参数类型描述
securitytrue声明加载商户API证书
xmlobject声明请求的XML数据结构
mch_idstring商户号
sub_mch_idstring小微商户号
sign_typestring签名类型
HMAC-SHA256 枚举值
datestring日期
php
$instance->v2->fund->queryautowithdrawbydate->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/fund/queryautowithdrawbydate')->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/fund/queryautowithdrawbydate']->postAsync([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->fund->queryautowithdrawbydate->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/fund/queryautowithdrawbydate')->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/fund/queryautowithdrawbydate']->post([
  'security' => true,
  'xml' => [
    'mch_id'     => '1900000109',
    'sub_mch_id' => '1900000109',
    'sign_type'  => 'HMAC-SHA256',
    'date'       => '20180508',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
result_codestring业务结果
SUCCESS | FAIL 枚举值之一
err_codestring错误代码
err_code_desstring错误代码描述
sign_typestring签名类型
signstring签名
datestring日期
mch_idstring商户号
sub_mch_idstring小微商户号
nonce_strstring随机字符
withdraw_statusstring单据状态
fail_reasonstring单据失败原因
withdraw_idstring提现单单据ID
amountinteger金额
create_timestring单据创建时间
success_timestring单据成功时间
refund_timestring单据退票时间

参阅 官方文档

Published on the GitHub by TheNorthMemory