申请单个子商户资金账单
微信支付按天提供微信支付账户的资金流水账单文件,服务商可以通过该接口获取子商户账单文件的下载地址。文件内包含子商户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
sub_mchid | string | 子商户号 |
bill_date | string | 账单日期 |
tar_type | string | 压缩类型GZIP 枚举值 |
algorithm | string | 加密算法AEAD_AES_256_GCM | SM4_GCM 枚举值之一 |
account_type | string | 资金账户类型BASIC | OPERATION | FEES | DEPOSIT 枚举值之一 |
php
$instance->v3->bill->subMerchantFundflowbill->getAsync([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/bill/sub-merchant-fundflowbill')->getAsync([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/bill/sub-merchant-fundflowbill']->getAsync([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->bill->subMerchantFundflowbill->get([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/bill/sub-merchant-fundflowbill')->get([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/bill/sub-merchant-fundflowbill']->get([
'query' => [
'sub_mchid' => '19000000001',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
'algorithm' => 'AEAD_AES_256_GCM',
'account_type' => 'BASIC',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
download_bill_count | integer | 下载信息总数 |
download_bill_list | object[] | 下载信息明细 |
bill_sequence | integer | 账单文件序号 |
download_url | string | 下载地址 |
encrypt_key | string | 加密密钥 |
hash_type | string | 哈希类型 |
hash_value | string | 哈希值 |
nonce | string | 随机字符串 |