Skip to content

查询账户日终余额

通过此接口可以查询本商户号指定日期当天24点的账户余额。**注意:**• 可查询90天内的日终余额。• 当日日终余额在次日生成,建议商户在上午 10 点以后查询。

请求参数类型描述
account_typestring资金账户类型
BASIC | OPERATION | FEES 枚举值之一
queryobject声明请求的查询参数
bill_datestring日期
php
$instance->v3->merchant->fund->dayendbalance->_account_type_->getAsync([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant/fund/dayendbalance/{account_type}')->getAsync([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant/fund/dayendbalance/{account_type}']->getAsync([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchant->fund->dayendbalance->_account_type_->get([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant/fund/dayendbalance/{account_type}')->get([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant/fund/dayendbalance/{account_type}']->get([
  'account_type' => 'BASIC',
  'query' => [
    'bill_date' => '2019-06-11',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
available_amountinteger可用余额
pending_amountinteger不可用余额

参阅 官方文档 官方文档 官方文档 官方文档

Published on the GitHub by TheNorthMemory