用户次卡核销
<h5>接口使用描述</h5>
<pre><code>用户次卡核销</code></pre>
<h5>接口地址</h5>
<pre><code>接口地址:http(s)://api.liantuofu.com/open/timescard/userTimesCardConsume</code></pre>
<p><br/></p>
<h4>请求参数<img src='https://www.showdoc.cc/server/api/common/visitfile/sign/bfc24f8d7eb93fae8e66d4ab2b4bc461?showdoc=.jpg' 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>
<tr>
<td>4</td>
<td>remark</td>
<td>备注</td>
<td>string</td>
<td>N</td>
<td>1111</td>
<td>备注信息</td>
</tr>
<tr>
<td>5</td>
<td>consumeSource</td>
<td>核销来源</td>
<td>number</td>
<td>Y</td>
<td>0</td>
<td>核销来源 0 手机端 1插件端 2网页端</td>
</tr>
<tr>
<td>6</td>
<td>cardNo</td>
<td>次卡编号或次卡动态核销码</td>
<td>string</td>
<td>Y</td>
<td>914095353294404024</td>
<td>次卡编号或次卡动态核销码</td>
</tr>
<tr>
<td>7</td>
<td>count</td>
<td>核销次数</td>
<td>number</td>
<td>Y</td>
<td>1</td>
<td>核销次数</td>
</tr>
<tr>
<td>8</td>
<td>consumeMerchantCode</td>
<td>核销门店编号</td>
<td>string</td>
<td>Y</td>
<td>EW_N2949193145</td>
<td>核销门店编号</td>
</tr>
<tr>
<td>9</td>
<td>consumeEmployeeId</td>
<td>核销员工id</td>
<td>number</td>
<td>N</td>
<td>11</td>
<td>核销员工id</td>
</tr>
</tbody>
</table>
<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>
</tbody>
</table>
<p><br/><br/></p>
<h5>请求示例:</h5>
<pre><code>random=liantuo123&consumeSource=0&consumeMerchantCode=EW_N2949193145&appId=EW_N5946005323&count=6&sign=f4e44f30b8e05802f9505b13247150b1&remark=liao123&consumeEmployeeId=1&cardNo=914095353294404024</code></pre>
<h5>响应示例(成功):</h5>
<pre><code class="language-json">{
"code":"SUCCESS",
"msg":"成功"
}</code></pre>
<h5>响应示例(失败):</h5>
<pre><code class="language-json">{
"code":"FAILED",
"msg":"剩余次数不足"
}</code></pre>