商户明细单号查询明细单
商户明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、收款用户OpenID等信息。
请求参数 | 类型 | 描述 |
---|---|---|
out_batch_no | string | 商家批次单号 |
out_detail_no | string | 商家明细单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
php
$instance->v3->platsolution->mchTransfer->batches->outBatchNo->_out_batch_no_->details->outDetailNo->_out_detail_no_->getAsync([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/platsolution/mch-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no}')->getAsync([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/platsolution/mch-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no}']->getAsync([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->platsolution->mchTransfer->batches->outBatchNo->_out_batch_no_->details->outDetailNo->_out_detail_no_->get([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/platsolution/mch-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no}')->get([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/platsolution/mch-transfer/batches/out-batch-no/{out_batch_no}/details/out-detail-no/{out_detail_no}']->get([
'out_batch_no' => 'sjzz20230223',
'out_detail_no' => 'x23zy545Bd5436',
'query' => [
'sub_mchid' => '1900000109',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
out_batch_no | string | 商家批次单号 |
batch_id | string | 商家转账批次单号 |
out_detail_no | string | 商家明细单号 |
detail_id | string | 商家转账明细单号 |
sp_appid | string | 服务商应用ID |
sub_mchid | string | 二级商户号 |
sub_appid | string | 二级商户应用ID |
create_time | string | 转账发起时间 |
detail_state | string | 明细状态 |
transfer_amount | number | 转账金额 |
transfer_remark | string | 转账备注 |
fail_reason | string | 明细失败原因 |
openid | string | 收款用户OpenID |
bank_type | string | 收款银行类型 |
user_name | string | 收款用户姓名 |
transfer_finish_time | string | 转账完成时间 |
bank_refund_time | string | 银行退票时间 |
参阅 官方文档