Skip to content

申请二级商户资金账单

微信支付按天提供微信支付账户的资金流水账单文件,电商平台可以通过该接口获取二级商户账单文件的下载地址。文件内包含电商平台二级商户资金操作相关的业务单号、收支金额、记账时间等信息,供电商平台进行核对。

请求参数类型描述
queryobject声明请求的查询参数
bill_datestring账单日期
account_typestring资金账户类型
tar_typestring压缩类型
algorithmstring加密算法
AEAD_AES_256_GCM | SM4_GCM 枚举值之一
php
$instance->v3->ecommerce->bill->fundflowbill->getAsync([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/bill/fundflowbill')->getAsync([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/bill/fundflowbill']->getAsync([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->bill->fundflowbill->get([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/bill/fundflowbill')->get([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/bill/fundflowbill']->get([
  'query' => [
    'bill_date' => '2019-06-11',
    'account_type' => 'ALL',
    'tar_type' => 'GZIP',
    'algorithm' => 'AEAD_AES_256_GCM',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
download_bill_countinteger下载信息总数
download_bill_listobject[]下载信息明细
bill_sequenceinteger账单文件序号
hash_typestring哈希类型
hash_valuestring哈希值
download_urlstring账单下载地址
encrypt_keystring加密密钥
noncestring随机字符串

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory