根据商户号获取优惠券
<p><strong>简要描述:</strong> </p>
<ul>
<li>根据商户号获取优惠券</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>Red/ajaxGetCoupons</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">appcode</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>商户编号</td>
</tr>
<tr>
<td style="text-align: left;">keyword</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>搜索框内容</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
'coupons' =>
array (size=290)
0 =>
array (size=35)
'c_id' => string '7' (length=1)
'appcode' => string 'GZJLF001' (length=8)
'title' => string '15元现金券' (length=14)
'm_id' => string '0' (length=1)
'm_name' => string '' (length=0)
'send_type' => string '1' (length=1)
'type' => string '1' (length=1)
'c_type' => string '2' (length=1)
'is_sametime' => string '1' (length=1)
'money_max' => string '0.00' (length=4)
'money_reduce' => string '0' (length=1)
'money_amount' => string '15.00' (length=5)
'expiry_type' => string '3' (length=1)
'expiry' => string '30' (length=2)
'amount' => string '0' (length=1)
'fetched_amount' => string '0' (length=1)
'sort_order' => string '9999' (length=4)
'is_active' => string '1' (length=1)
'fetch_limit' => string '0' (length=1)
'directions' => string '' (length=0)
'prompt' => string '' (length=0)
'addtime' => string '1445911721' (length=10)
'discount' => string '0' (length=1)
'member_type' => string 'new' (length=3)
'item_type' => string '3' (length=1)
'starttime' => null
'reduce_max' => string '0.00' (length=4)
'is_service' => string '0' (length=1)
'is_beautyparlor' => string '0' (length=1)
'is_city' => string '0' (length=1)
'service_id' => null
'bp_id' => null
'city_id' => null
'updatetime' => null
'value' => string '15.00' (length=5)
1 =>
array (size=35)
'c_id' => string '9' (length=1)
'appcode' => string 'GZJLF001' (length=8)
'title' => string '5元现金券' (length=13)
'm_id' => string '0' (length=1)
'm_name' => string '' (length=0)
'send_type' => string '1' (length=1)
'type' => string '1' (length=1)
'c_type' => string '2' (length=1)
'is_sametime' => string '1' (length=1)
'money_max' => string '0.00' (length=4)
'money_reduce' => string '0' (length=1)
'money_amount' => string '5.00' (length=4)
'expiry_type' => string '3' (length=1)
'expiry' => string '30' (length=2)
'amount' => string '0' (length=1)
'fetched_amount' => string '0' (length=1)
'sort_order' => string '9999' (length=4)
'is_active' => string '1' (length=1)
'fetch_limit' => string '0' (length=1)
'directions' => string '' (length=0)
'prompt' => string '' (length=0)
'addtime' => string '1445910932' (length=10)
'discount' => string '0' (length=1)
'member_type' => string 'new' (length=3)
'item_type' => string '3' (length=1)
'starttime' => null
'reduce_max' => string '0.00' (length=4)
'is_service' => string '0' (length=1)
'is_beautyparlor' => string '0' (length=1)
'is_city' => string '0' (length=1)
'service_id' => null
'bp_id' => null
'city_id' => null
'updatetime' => null
'value' => string '5.00' (length=4)
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">coupons</td>
<td style="text-align: left;">array</td>
<td>数据列表</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>