美滴滴新版后台在线接口文档

美滴滴新版后台在线接口文档


根据商户号获取优惠券

<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' =&gt; array (size=290) 0 =&gt; array (size=35) 'c_id' =&gt; string '7' (length=1) 'appcode' =&gt; string 'GZJLF001' (length=8) 'title' =&gt; string '15元现金券' (length=14) 'm_id' =&gt; string '0' (length=1) 'm_name' =&gt; string '' (length=0) 'send_type' =&gt; string '1' (length=1) 'type' =&gt; string '1' (length=1) 'c_type' =&gt; string '2' (length=1) 'is_sametime' =&gt; string '1' (length=1) 'money_max' =&gt; string '0.00' (length=4) 'money_reduce' =&gt; string '0' (length=1) 'money_amount' =&gt; string '15.00' (length=5) 'expiry_type' =&gt; string '3' (length=1) 'expiry' =&gt; string '30' (length=2) 'amount' =&gt; string '0' (length=1) 'fetched_amount' =&gt; string '0' (length=1) 'sort_order' =&gt; string '9999' (length=4) 'is_active' =&gt; string '1' (length=1) 'fetch_limit' =&gt; string '0' (length=1) 'directions' =&gt; string '' (length=0) 'prompt' =&gt; string '' (length=0) 'addtime' =&gt; string '1445911721' (length=10) 'discount' =&gt; string '0' (length=1) 'member_type' =&gt; string 'new' (length=3) 'item_type' =&gt; string '3' (length=1) 'starttime' =&gt; null 'reduce_max' =&gt; string '0.00' (length=4) 'is_service' =&gt; string '0' (length=1) 'is_beautyparlor' =&gt; string '0' (length=1) 'is_city' =&gt; string '0' (length=1) 'service_id' =&gt; null 'bp_id' =&gt; null 'city_id' =&gt; null 'updatetime' =&gt; null 'value' =&gt; string '15.00' (length=5) 1 =&gt; array (size=35) 'c_id' =&gt; string '9' (length=1) 'appcode' =&gt; string 'GZJLF001' (length=8) 'title' =&gt; string '5元现金券' (length=13) 'm_id' =&gt; string '0' (length=1) 'm_name' =&gt; string '' (length=0) 'send_type' =&gt; string '1' (length=1) 'type' =&gt; string '1' (length=1) 'c_type' =&gt; string '2' (length=1) 'is_sametime' =&gt; string '1' (length=1) 'money_max' =&gt; string '0.00' (length=4) 'money_reduce' =&gt; string '0' (length=1) 'money_amount' =&gt; string '5.00' (length=4) 'expiry_type' =&gt; string '3' (length=1) 'expiry' =&gt; string '30' (length=2) 'amount' =&gt; string '0' (length=1) 'fetched_amount' =&gt; string '0' (length=1) 'sort_order' =&gt; string '9999' (length=4) 'is_active' =&gt; string '1' (length=1) 'fetch_limit' =&gt; string '0' (length=1) 'directions' =&gt; string '' (length=0) 'prompt' =&gt; string '' (length=0) 'addtime' =&gt; string '1445910932' (length=10) 'discount' =&gt; string '0' (length=1) 'member_type' =&gt; string 'new' (length=3) 'item_type' =&gt; string '3' (length=1) 'starttime' =&gt; null 'reduce_max' =&gt; string '0.00' (length=4) 'is_service' =&gt; string '0' (length=1) 'is_beautyparlor' =&gt; string '0' (length=1) 'is_city' =&gt; string '0' (length=1) 'service_id' =&gt; null 'bp_id' =&gt; null 'city_id' =&gt; null 'updatetime' =&gt; null 'value' =&gt; 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>

页面列表

ITEM_HTML