查询单笔转账电子回单
商户可以通过该接口查看回单申请进度。请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| out_bill_no | string | 商户转账单号 |
| query | object | 声明请求的查询参数 |
| sub_mchid | string | 二级商户号 |
php
$instance->v3->fundApp->mchTransfer->partner->electronicReceipts->_out_bill_no_->getAsync([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/fund-app/mch-transfer/partner/electronic-receipts/{out_bill_no}')->getAsync([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/fund-app/mch-transfer/partner/electronic-receipts/{out_bill_no}']->getAsync([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->fundApp->mchTransfer->partner->electronicReceipts->_out_bill_no_->get([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/fund-app/mch-transfer/partner/electronic-receipts/{out_bill_no}')->get([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/fund-app/mch-transfer/partner/electronic-receipts/{out_bill_no}']->get([
'out_bill_no' => 'plfk2020042013',
'query' => [
'sub_mchid' => '1900001121',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| sub_mchid | string | 二级商户号 |
| out_bill_no | string | 商户转账单号 |
| state | string | 申请单状态GENERATING | FINISHED 枚举值之一 |
| create_time | string | 申请单创建时间 |
| update_time | string | 申请单更新时间 |
| hash_type | string | 回单文件摘要类型SM3 枚举值 |
| hash_value | string | 回单文件摘要值 |
| download_url | string | 回单文件下载地址 |
参阅 官方文档