Skip to content

申请企业商户企业支付业务账单

申请企业商户企业支付业务账单。该接口允许服务商为指定出资子商户申请特定日期的企业支付业务账单,仅支持申请三个月内的账单数据。业务账单包含交易明细,可用于企业对账和财务分析。

请求参数类型描述
jsonobject声明请求的JSON数据结构
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
datestring账单日期
typestring账单类型
QYZFALL 枚举值
php
$instance->v3->webizpay->bill->tradeBill->postAsync([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/webizpay/bill/trade-bill')->postAsync([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/webizpay/bill/trade-bill']->postAsync([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->webizpay->bill->tradeBill->post([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/webizpay/bill/trade-bill')->post([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/webizpay/bill/trade-bill']->post([
  'json' => [
    'sp_mchid'  => '12341234',
    'sub_mchid' => '43214321',
    'date'      => '2025-04-23',
    'type'      => 'QYZFALL',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sp_mchidstring服务商商户号
sub_mchidstring出资子商户号
datestring账单日期
typestring账单类型
QYZFALL 枚举值
download_urlstring账单下载地址

参阅 官方文档

Published on the GitHub by TheNorthMemory