获取省市区信息
<p><strong>接口描述:</strong> </p>
<ul>
<li>通过此接口可获取进件时的省市区列表信息。</li>
<li>此接口为三级联动设计,先获取省,选择省后获取市,选择市后获取区。</li>
</ul>
<p><strong>接口URL:</strong> </p>
<ul>
<li>生产 <code>https://open.gdyfsk.com/yfpay/api/info/area</code></li>
<li>测试 <code>https://test.gdyfsk.com/yfpay/api/info/area</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>请求头部:</strong></p>
<table>
<thead>
<tr>
<th>标签</th>
<th>必填</th>
<th>内容</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content-Type</td>
<td>是</td>
<td>application/json</td>
</tr>
</tbody>
</table>
<p><strong>请求参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">必填</th>
<th style="text-align: left;">说明</th>
<th>参数示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">inst_no</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">是</td>
<td style="text-align: left;">合作机构号</td>
<td>900024</td>
</tr>
<tr>
<td style="text-align: left;">level</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">是</td>
<td style="text-align: left;">列表等级:1省/直辖市,2市/州,3区/县</td>
<td>1</td>
</tr>
<tr>
<td style="text-align: left;">parent_code</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">当前等级的上级code,1级不填</td>
<td style="text-align: left;">420100</td>
</tr>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">是</td>
<td style="text-align: left;">签名字符串</td>
<td>610ef4269b46e881a46a6f84fc327cff</td>
</tr>
</tbody>
</table>
<p><strong>请求示例:</strong></p>
<pre><code class="language-json">{
&quot;inst_no&quot;: &quot;900024&quot;,
&quot;level&quot;: 3,
&quot;parent_code&quot;: &quot;2&quot;,
&quot;sign&quot;: &quot;a489d5e92e407c639e73814938b14eee&quot;
}</code></pre>
<p><strong>返回参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: center;">类型</th>
<th style="text-align: center;">必填</th>
<th style="text-align: left;">说明</th>
<th>参数示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">result_code</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">是</td>
<td style="text-align: left;">操作结果:SUCCESS成功,FAIL失败</td>
<td>SUCCESS</td>
</tr>
<tr>
<td style="text-align: left;">result_msg</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">是</td>
<td style="text-align: left;">操作结果说明</td>
<td>操作成功</td>
</tr>
<tr>
<td style="text-align: left;">area_list</td>
<td style="text-align: center;">List</td>
<td style="text-align: center;">地区列表数组</td>
</tr>
<tr>
<td style="text-align: left;">—area_name</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">地区名称</td>
<td style="text-align: left;">北京</td>
</tr>
<tr>
<td style="text-align: left;">—area_code</td>
<td style="text-align: center;">String</td>
<td style="text-align: center;">地区code</td>
<td style="text-align: left;">420100</td>
</tr>
</tbody>
</table>
<p><strong>返回示例:</strong></p>
<pre><code class="language-json">{
&quot;result_msg&quot;: &quot;查询成功&quot;,
&quot;result_code&quot;: &quot;SUCCESS&quot;,
&quot;area_list&quot;: [
{
&quot;area_name&quot;: &quot;东城区&quot;,
&quot;area_code&quot;: &quot;1000&quot;
},
{
&quot;area_name&quot;: &quot;西城区&quot;,
&quot;area_code&quot;: &quot;1001&quot;
},
{
&quot;area_name&quot;: &quot;朝阳区&quot;,
&quot;area_code&quot;: &quot;1004&quot;
},
{
&quot;area_name&quot;: &quot;丰台区&quot;,
&quot;area_code&quot;: &quot;1005&quot;
},
{
&quot;area_name&quot;: &quot;石景山区&quot;,
&quot;area_code&quot;: &quot;1006&quot;
},
{
&quot;area_name&quot;: &quot;海淀区&quot;,
&quot;area_code&quot;: &quot;1007&quot;
},
{
&quot;area_name&quot;: &quot;门头沟区&quot;,
&quot;area_code&quot;: &quot;1008&quot;
},
{
&quot;area_name&quot;: &quot;房山区&quot;,
&quot;area_code&quot;: &quot;1009&quot;
},
{
&quot;area_name&quot;: &quot;通州区&quot;,
&quot;area_code&quot;: &quot;100A&quot;
},
{
&quot;area_name&quot;: &quot;顺义区&quot;,
&quot;area_code&quot;: &quot;100B&quot;
},
{
&quot;area_name&quot;: &quot;昌平区&quot;,
&quot;area_code&quot;: &quot;100C&quot;
},
{
&quot;area_name&quot;: &quot;大兴区&quot;,
&quot;area_code&quot;: &quot;100D&quot;
},
{
&quot;area_name&quot;: &quot;怀柔区&quot;,
&quot;area_code&quot;: &quot;100E&quot;
},
{
&quot;area_name&quot;: &quot;平谷区&quot;,
&quot;area_code&quot;: &quot;100F&quot;
},
{
&quot;area_name&quot;: &quot;密云区&quot;,
&quot;area_code&quot;: &quot;100G&quot;
},
{
&quot;area_name&quot;: &quot;延庆区&quot;,
&quot;area_code&quot;: &quot;100H&quot;
}
]
}</code></pre>