申请分账账单
微信支付按天提供分账账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含分账相关的金额、时间等信息,供商户核对到账等情况。
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
sub_mchid | string | 二级商户号 |
bill_date | string | 账单日期 |
tar_type | string | 压缩类型GZIP 枚举值 |
php
$instance->v3->profitsharing->bills->getAsync([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/profitsharing/bills')->getAsync([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/profitsharing/bills']->getAsync([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->profitsharing->bills->get([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/profitsharing/bills')->get([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/profitsharing/bills']->get([
'query' => [
'sub_mchid' => '',
'bill_date' => '2019-06-11',
'tar_type' => 'GZIP',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
download_url | string | 下载地址 |
hash_type | string | 哈希类型 |
hash_value | string | 哈希值 |
参阅 官方文档