获取购付汇账单文件下载链接
服务商可以调用此接口获取购付汇账单文件下载链接。在有效期内请求下载链接可以下载出账日为指定日期的购付汇账单文件。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
bill_date | string | 账单日期 |
sub_mchid | string | 子商户号 |
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_type | string | 哈希类型 |
hash_value | string | 哈希值 |
download_url | string | 下载地址 |
参阅 官方文档