商家批次单号查询批次单
商户可以通过该接口查询转账批次单以及指定状态的转账明细单。
请求参数 | 类型 | 描述 |
---|---|---|
out_batch_no | string | 商家批次单号 |
query | object | 声明请求的查询参数 |
need_query_detail | boolean | 是否查询转账明细单 |
offset | integer | 请求资源起始位置 |
limit | integer | 最大资源条数 |
detail_status | string | 明细状态 |
php
$instance->v3->transfer->batches->outBatchNo->_out_batch_no_->getAsync([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transfer/batches/out-batch-no/{out_batch_no}')->getAsync([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transfer/batches/out-batch-no/{out_batch_no}']->getAsync([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transfer->batches->outBatchNo->_out_batch_no_->get([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transfer/batches/out-batch-no/{out_batch_no}')->get([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transfer/batches/out-batch-no/{out_batch_no}']->get([
'out_batch_no' => 'plfk2020042013',
'query' => [
'need_query_detail' => true,
'offset' => 0,
'limit' => 20,
'detail_status' => 'FAIL',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
transfer_batch | object | 转账批次单 |
mchid | string | 商户号 |
out_batch_no | string | 商家批次单号 |
batch_id | string | 微信批次单号 |
appid | string | 直连商户的appid |
batch_status | string | 批次状态 |
batch_type | string | 批次类型 |
batch_name | string | 批次名称 |
batch_remark | string | 批次备注 |
close_reason | string | 批次关闭原因 |
total_amount | integer | 转账总金额 |
total_num | integer | 转账总笔数 |
create_time | string | 批次创建时间 |
update_time | string | 批次更新时间 |
success_amount | integer | 转账成功金额 |
success_num | integer | 转账成功笔数 |
fail_amount | integer | 转账失败金额 |
fail_num | integer | 转账失败笔数 |
transfer_scene_id | string | 转账场景ID |
transfer_detail_list | object[] | 转账明细单列表 |
detail_id | string | 微信明细单号 |
out_detail_no | string | 商家明细单号 |
detail_status | string | 明细状态 |
offset | integer | 请求资源起始位置 |
limit | integer | 最大资源条数 |
参阅 官方文档