查询余额接口
<h4>接口方法:</h4>
<ul>
<li>account.balance</li>
</ul>
<h4>接口名称:</h4>
<ul>
<li>查询余额接口</li>
</ul>
<h4>请求方式:</h4>
<ul>
<li>POST</li>
</ul>
<h4>数据格式:</h4>
<ul>
<li>application/json</li>
</ul>
<h1>请求地址</h1>
<table>
<thead>
<tr>
<th>环境</th>
<th>HTTPS地址</th>
</tr>
</thead>
<tbody>
<tr>
<td>正式环境</td>
<td></td>
</tr>
<tr>
<td>沙箱环境</td>
<td><a href="https://test.jpsdt.com/openapi/api/getway">https://test.jpsdt.com/openapi/api/getway</a></td>
</tr>
</tbody>
</table>
<h1>公共请求参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>customerId</td>
<td>string</td>
<td>是</td>
<td>9</td>
<td>1648051962</td>
<td>客户ID(平台分配)</td>
</tr>
<tr>
<td>method</td>
<td>string</td>
<td>是</td>
<td>128</td>
<td>account.balance</td>
<td>接口方法名称</td>
</tr>
<tr>
<td>timestamp</td>
<td>string</td>
<td>是</td>
<td>192</td>
<td>2023-12-19 10:23:06</td>
<td>时间戳,格式为:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>version</td>
<td>string</td>
<td>是</td>
<td>3</td>
<td>1.0</td>
<td>调用的接口版本</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>是</td>
<td>344</td>
<td>详见示例</td>
<td>签名串,签名规则详见左侧菜单:接口规范->签名规则</td>
</tr>
<tr>
<td>bizContent</td>
<td>string</td>
<td>是</td>
<td></td>
<td>"{}"</td>
<td>请求参数集合<br>注意:该参数是以json字符串的形式传输</td>
</tr>
</tbody>
</table>
<h1>请求参数(无)</h1>
<h1>公共响应参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>String</td>
<td>是</td>
<td>6</td>
<td>0</td>
<td>返回码,详见《业务场景码》</td>
</tr>
<tr>
<td>message</td>
<td>String</td>
<td>是</td>
<td></td>
<td>接口调用成功</td>
<td>返回码描述,详见《业务场景码》</td>
</tr>
<tr>
<td>data</td>
<td>Object</td>
<td>是</td>
<td></td>
<td></td>
<td>响应结果集</td>
</tr>
</tbody>
</table>
<h1>响应参数</h1>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>字段类型</th>
<th>是否必填</th>
<th>最大长度</th>
<th>示例值</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>customerId</td>
<td>String</td>
<td>是</td>
<td></td>
<td>1648051962</td>
<td>客户ID</td>
</tr>
<tr>
<td>balance</td>
<td>String</td>
<td>是</td>
<td></td>
<td>49996.0500</td>
<td>余额</td>
</tr>
</tbody>
</table>
<h1>请求示例</h1>
<pre><code>{
&quot;customerId&quot;:&quot;1648051962&quot;,
&quot;method&quot;:&quot;customer.balance&quot;,
&quot;timestamp&quot;:&quot;2024-07-22 14:15:44&quot;,
&quot;version&quot;:&quot;1.0&quot;,
&quot;sign&quot;:&quot;e898e5eda512778f4fda2f0cd02de188&quot;,
&quot;bizContent&quot;:&quot;{}&quot;
}</code></pre>
<h1>响应示例</h1>
<pre><code>{
&quot;code&quot;: &quot;0&quot;,
&quot;message&quot;: &quot;请求成功!&quot;,
&quot;data&quot;: {
&quot;customerId&quot;: &quot;1648051962&quot;,
&quot;balance&quot;: &quot;49996.0500&quot;
}
}</code></pre>
<h1>异常示例</h1>
<pre><code>{
&quot;code&quot;: -1,
&quot;message&quot;: &quot;请求异常&quot;,
&quot;data&quot;: &quot;&quot;,
}</code></pre>