查询企业向微信用户个人付款
付款操作进行结果查询,返回付款操作详细结果。查询企业付款API只支持查询30天内的订单,30天之前的订单请登录商户平台查询。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
xml | object | 声明请求的XML 数据结构 |
partner_trade_no | string | 商户订单号 |
mch_id | string | 商户号 |
appid | string | Appid |
php
$instance->v2->mmpaymkttransfers->gettransferinfo->postAsync([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/mmpaymkttransfers/gettransferinfo')->postAsync([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/mmpaymkttransfers/gettransferinfo']->postAsync([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->mmpaymkttransfers->gettransferinfo->post([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/mmpaymkttransfers/gettransferinfo')->post([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/mmpaymkttransfers/gettransferinfo']->post([
'security' => true,
'xml' => [
'partner_trade_no' => '10000098201411111234567890',
'mch_id' => '10000098',
'appid' => 'wxe062425f740d30d8',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
partner_trade_no | string | 商户单号 |
appid | string | Appid |
mch_id | string | 商户号 |
detail_id | string | 付款单号 |
status | string | 转账状态SUCCESS | FAILED | PROCESSING 枚举值之一 |
reason | string | 失败原因 |
openid | string | 收款用户openid |
transfer_name | string | 收款用户姓名 |
payment_amount | integer | 付款金额 |
transfer_time | string | 转账时间 |
payment_time | string | 付款成功时间 |
desc | string | 企业付款备注 |
参阅 官方文档