Skip to content

获取购付汇账单文件下载链接

服务商可以调用此接口获取购付汇账单文件下载链接。在有效期内请求下载链接可以下载出账日为指定日期的购付汇账单文件。

请求参数类型描述
queryobject声明请求的查询参数
bill_datestring账单日期
sub_mchidstring子商户号
php
$instance->v3->fundsToOversea->billDownloadUrl->getAsync([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/funds-to-oversea/bill-download-url')->getAsync([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/funds-to-oversea/bill-download-url']->getAsync([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundsToOversea->billDownloadUrl->get([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/funds-to-oversea/bill-download-url')->get([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/funds-to-oversea/bill-download-url']->get([
  'query' => [
    'bill_date' => '2021-01-01',
    'sub_mchid' => '19000000001',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
hash_typestring哈希类型
hash_valuestring哈希值
download_urlstring下载地址

参阅 官方文档

Published on the GitHub by TheNorthMemory