秘钥信息下载
<h5>接口使用描述</h5>
<pre><code> 在商户平台对接联拓富所有接口之前,必须进行必要的参数下载,以保证后续接口的正常调用和运行。</code></pre>
<h5>接口地址</h5>
<pre><code> 接口地址:https://api.liantuofu.com/open/login</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>userName</td>
<td>登陆账号</td>
<td>string</td>
<td>Y</td>
<td>skxjlmd02</td>
<td>此账号为联拓富商户后台登陆账号,如果是参数下载,需要是核心商户账号(联富通平台开通的商户账号),获取方式为由联拓富代理商或者商务私下提供</td>
</tr>
<tr>
<td>2</td>
<td>passWord</td>
<td>登陆密码</td>
<td>string</td>
<td>Y</td>
<td>liantuo123</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>merchantCode</td>
<td>商户编号</td>
<td>string</td>
<td>Y</td>
<td>EW_N9479011740</td>
<td>门店名称,用于后续接口请求参数的使用</td>
</tr>
<tr>
<td>6</td>
<td>merchantName</td>
<td>商户名称</td>
<td>string</td>
<td>Y</td>
<td>小精灵门店1</td>
<td>当前登陆账号对应的门店简称,开通门店时填写的值,可以用来显示在页面上来区分当前门店</td>
</tr>
<tr>
<td>7</td>
<td>operatorId</td>
<td>操作人id</td>
<td>string</td>
<td>Y</td>
<td>10410072</td>
<td>如果使用的是核心账号或者门店账号,此字段不返回,通过门店下面开通的收银员账号时会返回,方便数据统计或者数据查询时根据收银员统计相关的数据</td>
</tr>
<tr>
<td>8</td>
<td>operatorName</td>
<td>操作人名称</td>
<td>string</td>
<td>Y</td>
<td>员工1</td>
<td>操作人名称(收银员名称)</td>
</tr>
<tr>
<td>9</td>
<td>appId</td>
<td>合作方标识</td>
<td>string</td>
<td>Y</td>
<td>EW_N2949193174</td>
<td>合作商户编码,用于以后所有接口发起请求时验签使用</td>
</tr>
<tr>
<td>10</td>
<td>key</td>
<td>签名秘钥key</td>
<td>string</td>
<td>Y</td>
<td>B76A217B@1D67@@L@5ELME2B7EF7F5AA</td>
<td>签名秘钥key, 用于以后所有接口发起请求时验签使用</td>
</tr>
<tr>
<td>11</td>
<td>role</td>
<td>角色</td>
<td>int</td>
<td>Y</td>
<td>0</td>
<td>角色 0总部 1门店 2员工 3店长</td>
</tr>
</tbody>
</table>
<p><br/><br/></p>
<h5>请求示例:</h5>
<pre><code>userName=qbmd1&amp;passWord=111qqq</code></pre>
<h5>响应示例(成功):</h5>
<pre><code class="language-json">{
&quot;merchantCode&quot;:&quot;EW_N2949193174&quot;,
&quot;merchantName&quot;:&quot;撒露总部&quot;,
&quot;operatorId&quot;:&quot;10188900&quot;,
&quot;operatorName&quot;:&quot;撒露总部&quot;,
&quot;appId&quot;:&quot;EW_N2949193174&quot;,
&quot;key&quot;:&quot;0dc04fa1a21239947a7ee148fef0b08b&quot;,
&quot;role&quot;:0,
&quot;code&quot;:&quot;SUCCESS&quot;,
&quot;msg&quot;:&quot;获取成功&quot;
}</code></pre>
<h5>响应示例(失败):</h5>
<pre><code class="language-json">{
&quot;code&quot;:&quot;FAILED&quot;,
&quot;msg&quot;:&quot;登录失败&quot;,
&quot;subCode&quot;:&quot;LOGIN_ERROR&quot;,
&quot;subMsg&quot;:&quot;用户名或密码错误&quot;
}</code></pre>
<h5>错误码</h5>
<table>
<thead>
<tr>
<th>错误码</th>
<th>错误描述</th>
<th>建议处理</th>
</tr>
</thead>
<tbody>
<tr>
<td>LOGIN_ERROR</td>
<td>用户名或密码错误</td>
<td>核实自己的账号或密码是否正确</td>
</tr>
</tbody>
</table>