Skip to content

转账明细电子回单受理

受理转账明细电子回单接口,商户通过该接口可以申请受理转账明细单电子回单服务。

请求参数类型描述
jsonobject声明请求的JSON数据结构
accept_typestring受理类型
BATCH_TRANSFER | TRANSFER_TO_POCKET | TRANSFER_TO_BANK 枚举值之一
out_batch_nostring商家转账批次单号
out_detail_nostring商家转账明细单号
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_typestring受理类型
out_batch_nostring商家转账批次单号
out_detail_nostring商家转账明细单号
signature_nostring电子回单受理单号
signature_statusstring电子回单状态
hash_typestring电子回单文件的hash方法
hash_valuestring电子回单文件的hash值
download_urlstring电子回单文件的下载地址

参阅 官方文档 官方文档

查询转账明细电子回单受理结果

查询转账明细电子回单受理结果接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等。

请求参数类型描述
queryobject声明请求的查询参数
accept_typestring受理类型
BATCH_TRANSFER | TRANSFER_TO_POCKET | TRANSFER_TO_BANK 枚举值之一
out_batch_nostring商家转账批次单号
out_detail_nostring商家转账明细单号
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_typestring受理类型
out_batch_nostring商家转账批次单号
out_detail_nostring商家转账明细单号
signature_nostring电子回单受理单号
signature_statusstring电子回单状态
hash_typestring电子回单文件的hash方法
hash_valuestring电子回单文件的hash值
download_urlstring电子回单文件的下载地址

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory