Skip to content

微信明细单号查询明细单

商户可以通过该接口查询单笔转账明细单。

请求参数类型描述
batch_idstring微信批次单号
detail_idstring微信明细单号
php
$instance->v3->transfer->batches->batchId->_batch_id_->details->detailId->_detail_id_->getAsync([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}')->getAsync([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}']->getAsync([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transfer->batches->batchId->_batch_id_->details->detailId->_detail_id_->get([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}')->get([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transfer/batches/batch-id/{batch_id}/details/detail-id/{detail_id}']->get([
  'batch_id' => '1030000071100999991182020050700019480001',
  'detail_id' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
mchidstring商户号
out_batch_nostring商家批次单号
batch_idstring微信批次单号
appidstring直连商户的appid
out_detail_nostring商家明细单号
detail_idstring微信明细单号
detail_statusstring明细状态
transfer_amountinteger转账金额
transfer_remarkstring转账备注
fail_reasonstring明细失败原因
openidstring用户在直连商户应用下的用户标示
user_namestring收款用户姓名
initiate_timestring转账发起时间
update_timestring明细更新时间

参阅 官方文档

Published on the GitHub by TheNorthMemory