查询商家转账明细电子回单
查询商家转账明细电子回单接口,商户通过该接口可以查询商家转账明细电子回单受理进度信息,当电子回单文件生成结束后,将返回电子回单文件的hash值、电子回单文件的下载地址等。
请求参数 | 类型 | 描述 |
---|---|---|
out_batch_no | string | 商家批次单号 |
out_detail_no | string | 商家明细单号 |
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
php
$instance->v3->platsolution->mchTransfer->batches->detailReceipts->outBatchNo->_out_batch_no_->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/detail-receipts/out-batch-no/{out_batch_no}/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/detail-receipts/out-batch-no/{out_batch_no}/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->detailReceipts->outBatchNo->_out_batch_no_->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/detail-receipts/out-batch-no/{out_batch_no}/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/detail-receipts/out-batch-no/{out_batch_no}/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));
返回字典 | 类型 | 描述 |
---|---|---|
batch_id | string | 商家转账批次单号 |
out_batch_no | string | 商家批次单号 |
detail_id | string | 商家转账明细单号 |
out_detail_no | string | 商家明细单号 |
sub_mchid | string | 二级商户号 |
receipt_state | string | 电子回单状态 |
hash_type | string | 电子回单文件的hash方法 |
hash_value | string | 电子回单文件的hash值 |
download_url | string | 电子回单文件的下载地址 |
参阅 官方文档