Skip to content

查询企业付款银行卡

用于对商户企业付款到银行卡操作进行结果查询,返回付款操作详细结果。

请求参数类型描述
xmlobject声明请求的XML数据结构
mch_idstring商户号
partner_trade_nostring商户企业付款单号
securityboolean声明加载商户API证书
固定值true
php
$instance->v2->mmpaymkttransfers->query_bank->postAsync([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/mmpaymkttransfers/query_bank')->postAsync([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/mmpaymkttransfers/query_bank']->postAsync([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->mmpaymkttransfers->query_bank->post([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/mmpaymkttransfers/query_bank')->post([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/mmpaymkttransfers/query_bank']->post([
  'xml' => [
    'mch_id' => '1900000109',
    'partner_trade_no' => '1212121221227',
  ],
  'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
return_msgstring返回信息
result_codestring业务结果
err_codestring错误代码
err_code_desstring错误代码描述
mch_idstring商户号
partner_trade_nostring商户企业付款单号
payment_nostring微信企业付款单号
bank_no_md5string银行卡号
true_name_md5string用户真实姓名
amountinteger代付金额
statusstring代付单状态
cmms_amtinteger手续费金额
create_timestring商户下单时间
pay_succ_timestring成功付款时间
reasonstring失败原因

参阅 官方文档

Published on the GitHub by TheNorthMemory