商户申请获取对账单
商户可以调用此接口获取对账单文件的下载链接,并在有效期内请求下载链接可以下载对账单文件。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| bill_date | string | 账单日期 |
| tar_type | string | 压缩类型GZIP 枚举值 |
| encryption_algorithm | string | 加密算法 |
| service_id | string | 服务ID |
php
$instance->v3->payscore->merchantBill->getAsync([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/payscore/merchant-bill')->getAsync([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/payscore/merchant-bill']->getAsync([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->payscore->merchantBill->get([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/payscore/merchant-bill')->get([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/payscore/merchant-bill']->get([
'query' => [
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'encryption_algorithm' => 'AEAD_AES_256_GCM',
'service_id' => '2002000000000558128851361561536',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| download_bill_count | integer | 下载信息总数 |
| download_bill_list | object[] | 下载信息明细 |
| bill_sequence | integer | 账单文件序号 |
| hash_type | string | 哈希类型 |
| hash_value | string | 哈希值 |
| download_url | string | 下载地址 |
| encrypt_key | string | 加密密钥 |
| nonce | string | 随机字符串 |
参阅 官方文档