门店信息下载
<h5>接口使用描述</h5>
<pre><code>商户在联拓富商户后台开通多个门店信息的时候,需要下载商户门店信息,以保证后续接口的正常调用和运行。</code></pre>
<h5>接口地址</h5>
<pre><code> 接口地址:https://api.liantuofu.com/open/merchant/list</code></pre>
<p><br/></p>
<h4>请求参数<img src='<a href="https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg">https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg</a>' align='right' style=' width:300px;height:100 px'/></h4>
<table>
<thead>
<tr>
<th><strong>NO</strong></th>
<th><strong>字段</strong></th>
<th><strong>名称</strong></th>
<th><strong>长度</strong></th>
<th><strong>必填</strong></th>
<th><strong>示例</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>appId</td>
<td>合作方标识</td>
<td>string</td>
<td>Y</td>
<td>EW_N2949193174</td>
<td>合作商户编码,用于以后所有接口发起请求时验签使用</td>
</tr>
<tr>
<td>2</td>
<td>sign</td>
<td>签名。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td>
<td>string</td>
<td>Y</td>
<td>1b70687c8a4c72f50c749baf95a482c0</td>
<td>MD5加密验签值。具体参见“<a href="https://www.showdoc.cc/web/#/liantuofu?page_id=673453270295568">签名规则</a>”</td>
</tr>
<tr>
<td>3</td>
<td>random</td>
<td>随机数</td>
<td>string</td>
<td>Y</td>
<td>123</td>
<td>用来增加加密验签的复杂度,长度不限制,只限制传递数字,不支持中文,字母,特殊符号。</td>
</tr>
</tbody>
</table>
<hr />
<h4>响应参数</h4>
<table>
<thead>
<tr>
<th><strong>NO</strong></th>
<th><strong>字段</strong></th>
<th><strong>名称</strong></th>
<th><strong>长度</strong></th>
<th><strong>必填</strong></th>
<th><strong>示例</strong></th>
<th><strong>说明</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>code</td>
<td>结果</td>
<td>string</td>
<td>Y</td>
<td>SUCCESS</td>
<td>查询交易结果 SUCCESS:表示查询成功FAILED:表示查询失败</td>
</tr>
<tr>
<td>2</td>
<td>msg</td>
<td>结果描述</td>
<td>string</td>
<td>Y</td>
<td>登陆成功</td>
<td>无论是成功或者失败,message都会针对于当前的结果返回响应的结果描述</td>
</tr>
<tr>
<td>3</td>
<td>subCode</td>
<td>错误代码</td>
<td>string</td>
<td>N</td>
<td>LOGIN_ERROR</td>
<td>如果code为FAILED,subcode会返回详细的错误code,以便错误信息描述的更加精确</td>
</tr>
<tr>
<td>4</td>
<td>subMsg</td>
<td>错误描述</td>
<td>string</td>
<td>N</td>
<td>EW_N2320993253</td>
<td>如果code为FAILED,subMsg会返回详细的错误描述,以便错误信息描述的更加精确</td>
</tr>
<tr>
<td>5</td>
<td>sign</td>
<td>签名</td>
<td>string</td>
<td>Y</td>
<td>1b70687c8a4c72f50c749baf95a482c0</td>
<td>请求时传递的sign</td>
</tr>
<tr>
<td>6</td>
<td>random</td>
<td>随机数</td>
<td>string</td>
<td>Y</td>
<td>123</td>
<td>请求时传递的随机数</td>
</tr>
<tr>
<td>7</td>
<td>merchantList</td>
<td>门店列表List</td>
<td>array</td>
<td>Y</td>
<td>10410072</td>
<td>当核心商户下面开通的有门店时,会返回merchantCode,merchantName列表,当没有开通的门店时,会返回的值为""</td>
</tr>
<tr>
<td>8</td>
<td>merchantCode</td>
<td>商户编号</td>
<td>string</td>
<td>Y</td>
<td>EW_N9479011740</td>
<td>商户编号,用于后续接口请求参数的使用</td>
</tr>
<tr>
<td>9</td>
<td>merchantName</td>
<td>商户名称</td>
<td>string</td>
<td>Y</td>
<td>小精灵门店1</td>
<td>当前登陆账号对应的门店简称,开通门店时填写的值,可以用来显示在页面上来区分当前门店</td>
</tr>
</tbody>
</table>
<p><br/><br/></p>
<h5>请求示例:</h5>
<pre><code>appId=ew_n4231937737&amp;random=123&amp;sign=0f220d747bc0572f17fbd20c6645266c
</code></pre>
<h5>响应示例(成功):</h5>
<pre><code class="language-json">{
&quot;merchantList&quot;: [
{
&quot;merchantCode&quot;: &quot;EW_N9714456496&quot;,
&quot;merchantName&quot;: &quot;2019门店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N1945517957&quot;,
&quot;merchantName&quot;: &quot;2018门店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N4823909784&quot;,
&quot;merchantName&quot;: &quot;撒露方庄店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N2498184992&quot;,
&quot;merchantName&quot;: &quot;撒路王府井店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N3356859666&quot;,
&quot;merchantName&quot;: &quot;撒路西直门店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N8786059938&quot;,
&quot;merchantName&quot;: &quot;撒露奥体店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N0233860142&quot;,
&quot;merchantName&quot;: &quot;撒露国贸店&quot;
}, {
&quot;merchantCode&quot;: &quot;EW_N3721189218&quot;,
&quot;merchantName&quot;: &quot;撒露荟聚店&quot;
}
],
&quot;code&quot;: &quot;SUCCESS&quot;,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;random&quot;: &quot;123&quot;,
&quot;sign&quot;: &quot;ca644c31ff871017fbecba6e38bc580e&quot;
}</code></pre>
<h5>响应示例(失败):</h5>
<pre><code class="language-json">{
&quot;code&quot;:&quot;FAILED&quot;,
&quot;msg&quot;:&quot;无效的APPID&quot;,
&quot;subCode&quot;:&quot;APPID_ERROR&quot;,
&quot;subMsg&quot;:&quot;APPID 参数错误&quot;
}</code></pre>
<h5>错误码</h5>
<table>
<thead>
<tr>
<th>错误码</th>
<th>错误描述</th>
<th>建议处理</th>
</tr>
</thead>
<tbody>
<tr>
<td>APPID_ERROR</td>
<td>APPID 参数错误</td>
<td>核实自己的appid是否正确</td>
</tr>
</tbody>
</table>