查询渠道额度
接口限频:单查询渠道额度目标商户号100qps
请求参数 | 类型 | 描述 |
---|---|---|
query | object | 声明请求的查询参数 |
mchid | string | 微信支付商户号 |
bal_account_no | string | 额度台账号 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 微信支付公钥ID/平台证书序列号 |
php
$instance->v3->aggracctBc->wbChannel->account->balance->getAsync([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/aggracct-bc/wb-channel/account/balance')->getAsync([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/aggracct-bc/wb-channel/account/balance']->getAsync([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->aggracctBc->wbChannel->account->balance->get([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/aggracct-bc/wb-channel/account/balance')->get([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/aggracct-bc/wb-channel/account/balance']->get([
'query' => [
'mchid' => '1900016681',
'bal_account_no' => '8609cb22e1774a50a930e414cc71eca06121bc',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
in_transit_reduction_exist | boolean | 是否存在在途减额指令 |
balance | integer | 额度台账号额度 |