转账明细电子回单受理
受理转账明细电子回单接口,商户通过该接口可以申请受理转账明细单电子回单服务。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
accept_type | string | 受理类型BATCH_TRANSFER | TRANSFER_TO_POCKET | TRANSFER_TO_BANK 枚举值之一 |
out_batch_no | string | 商家转账批次单号 |
out_detail_no | string | 商家转账明细单号 |
php
$instance->v3->transferDetail->electronicReceipts->postAsync([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transfer-detail/electronic-receipts')->postAsync([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transfer-detail/electronic-receipts']->postAsync([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transferDetail->electronicReceipts->post([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transfer-detail/electronic-receipts')->post([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transfer-detail/electronic-receipts']->post([
'json' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
accept_type | string | 受理类型 |
out_batch_no | string | 商家转账批次单号 |
out_detail_no | string | 商家转账明细单号 |
signature_no | string | 电子回单受理单号 |
signature_status | string | 电子回单状态 |
hash_type | string | 电子回单文件的hash方法 |
hash_value | string | 电子回单文件的hash值 |
download_url | string | 电子回单文件的下载地址 |
查询转账明细电子回单受理结果
查询转账明细电子回单受理结果接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
accept_type | string | 受理类型BATCH_TRANSFER | TRANSFER_TO_POCKET | TRANSFER_TO_BANK 枚举值之一 |
out_batch_no | string | 商家转账批次单号 |
out_detail_no | string | 商家转账明细单号 |
php
$instance->v3->transferDetail->electronicReceipts->getAsync([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transfer-detail/electronic-receipts')->getAsync([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transfer-detail/electronic-receipts']->getAsync([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transferDetail->electronicReceipts->get([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transfer-detail/electronic-receipts')->get([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transfer-detail/electronic-receipts']->get([
'query' => [
'accept_type' => 'BATCH_TRANSFER',
'out_batch_no' => 'GD2021011610162610BBdkkIwcu3',
'out_detail_no' => 'mx0911231610162610v4CNkO4HAf',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
accept_type | string | 受理类型 |
out_batch_no | string | 商家转账批次单号 |
out_detail_no | string | 商家转账明细单号 |
signature_no | string | 电子回单受理单号 |
signature_status | string | 电子回单状态 |
hash_type | string | 电子回单文件的hash方法 |
hash_value | string | 电子回单文件的hash值 |
download_url | string | 电子回单文件的下载地址 |