查询结算资金
通过此接口可以查询结算资金的明细。
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
appid | string | 公众账号ID |
mchid | string | 商户号 |
sub_mch_id | string | 子商户号 |
usetag | integer | 结算状态 |
offset | integer | 偏移量 |
limit | integer | 最大记录条数 |
date_start | string | 开始日期 |
date_end | string | 结束日期 |
php
$instance->v2->pay->settlementquery->postAsync([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/pay/settlementquery')->postAsync([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/pay/settlementquery']->postAsync([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->pay->settlementquery->post([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/pay/settlementquery')->post([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/pay/settlementquery']->post([
'xml' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1900000109',
'sub_mch_id' => '1230000109',
'usetag' => '1',
'offset' => '0',
'limit' => '10',
'date_start' => '20150807',
'date_end' => '20150807',
],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
appid | string | 公众账号ID |
mch_id | string | 商户号 |
nonce_str | string | 随机字符串 |
result_code | string | 业务结果SUCCESS | FAIL 枚举值之一 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
record_num | string | 返回数据行数 |
fbatchno | string | 付汇批次号 |
date_settlement | string | 结算日期 |
date_start | string | 交易开始日期 |
date_end | string | 交易结束日期 |
settlement_fee | integer | 划账金额 |
unsettlement_fee | integer | 未划账金额 |
settlementfee_type | string | 结算币种 |
pay_fee | integer | 支付金额 |
refund_fee | integer | 退款金额 |
pay_net_fee | integer | 支付净额 |
poundage_fee | integer | 手续费金额 |
参阅 官方文档