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