订单可用优惠券
<p><strong>简要描述:</strong> </p>
<ul>
<li>
</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>v1/order/usableCouponList</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;">sss_shop_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>送件侠门店id</td>
</tr>
</tbody>
</table>
<p><strong>重要备注</strong>
<code>存在相同折扣但失效时间不同的优惠券,按折扣+失效时间分组,每组只出一张可用优惠券(coupon_alias), 计算运费时传入coupon_alias参数即可指定使用</code></p>
<p><strong>返回示例</strong></p>
<pre><code>
#成功(有数据)
{
&quot;code&quot;: 0,
&quot;message&quot;: &quot;ok&quot;,
&quot;data&quot;: [
{
&quot;coupon_group_id&quot;: 11,
&quot;coupon_name&quot;: &quot;85折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxxx1&quot;,
&quot;discount_rate&quot;: 85,
&quot;expire_at&quot;: 1591664283,
&quot;surplus_num&quot;: 50
},
{
&quot;coupon_group_id&quot;: 11,
&quot;coupon_name&quot;: &quot;85折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxxx2&quot;,
&quot;discount_rate&quot;: 85,
&quot;expire_at&quot;: 1593311972,
&quot;surplus_num&quot;: 50
},
{
&quot;coupon_group_id&quot;: 12,
&quot;coupon_name&quot;: &quot;9折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxxx3&quot;,
&quot;discount_rate&quot;: 90,
&quot;expire_at&quot;: 1591671155,
&quot;surplus_num&quot;: 50
},
{
&quot;coupon_group_id&quot;: 12,
&quot;coupon_name&quot;: &quot;9折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxxx4&quot;,
&quot;discount_rate&quot;: 90,
&quot;expire_at&quot;: 1593311948,
&quot;surplus_num&quot;: 50
},
{
&quot;coupon_group_id&quot;: 13,
&quot;coupon_name&quot;: &quot;95折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxx5&quot;,
&quot;discount_rate&quot;: 95,
&quot;expire_at&quot;: 1591671155,
&quot;surplus_num&quot;: 100
},
{
&quot;coupon_group_id&quot;: 13,
&quot;coupon_name&quot;: &quot;95折优惠券&quot;,
&quot;coupon_alias&quot;: &quot;xxx6&quot;,
&quot;discount_rate&quot;: 95,
&quot;expire_at&quot;: 1591664283,
&quot;surplus_num&quot;: 100
}
]
}
#成功(无数据)
{
&quot;code&quot;: 0,
&quot;message&quot;: &quot;ok&quot;,
&quot;data&quot;: &quot;&quot;
}
#失败
{
&quot;code&quot;: 1,
&quot;message&quot;: &quot;sss_shop_id必填&quot;
}
</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
<th>类型</th>
<th>必定返回</th>
</tr>
</thead>
<tbody>
<tr>
<td>coupon_group_id</td>
<td>优惠券组ID</td>
<td>int</td>
<td>是</td>
</tr>
<tr>
<td>coupon_name</td>
<td>优惠券名称</td>
<td>string</td>
<td>是</td>
</tr>
<tr>
<td>coupon_alias</td>
<td>优惠券唯一码</td>
<td>string</td>
<td>是</td>
</tr>
<tr>
<td>discount_rate</td>
<td>优惠券折扣</td>
<td>int</td>
<td>是</td>
</tr>
<tr>
<td>expire_at</td>
<td>优惠券时间戳,10位长度,精确到秒</td>
<td>int</td>
<td>是</td>
</tr>
<tr>
<td>surplus_num</td>
<td>优惠券剩余数量</td>
<td>int</td>
<td>是</td>
</tr>
</tbody>
</table>
<p><strong>请求示例demo x-www-form-urlencoded</strong></p>
<pre><code>appkey:4aa32923334940099ad6ecf6a552de33
timestamp:1575525613228
version:1.0
sign:c960c8153c5e7c8654ef60ec64aeb7c023eb48af
sss_shop_id:11111</code></pre>