Skip to content

查询二级商户账户日终余额

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

请求参数类型描述
sub_mchidstring电商特约商户商户号
queryobject声明请求的查询参数
datestring日期
account_typestring账户类型
BASIC | DEPOSIT 枚举值之一
php
$instance->v3->ecommerce->fund->enddaybalance->_sub_mchid_->getAsync([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/ecommerce/fund/enddaybalance/{sub_mchid}')->getAsync([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/ecommerce/fund/enddaybalance/{sub_mchid}']->getAsync([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->ecommerce->fund->enddaybalance->_sub_mchid_->get([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/ecommerce/fund/enddaybalance/{sub_mchid}')->get([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/ecommerce/fund/enddaybalance/{sub_mchid}']->get([
  'sub_mchid' => '1222212222',
  'query' => [
    'date'         => '2019-08-17',
    'account_type' => 'BASIC',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
sub_mchidstring二级商户号
available_amountinteger可用余额
pending_amountinteger不可用余额
account_typestring账户类型
BASIC | DEPOSIT 枚举值之一

参阅 官方文档 官方文档

Published on the GitHub by TheNorthMemory