订单结算页面接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>订单结算页面接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://api.magicalday.cn/order/Settlement</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<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;">settlement_goods_list</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">否</td>
<td>结算商品json字符串,示例:[{"goods_id":71,"number":1},{"goods_id":72,"number":2}]</td>
</tr>
<tr>
<td style="text-align: left;">user_coupon_id</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">否</td>
<td>用户选择的优惠券id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;:0,
&quot;msg&quot;:&quot;&quot;,
&quot;count&quot;:0,
&quot;data&quot;:{
&quot;total_amount&quot;:70.19,
&quot;coupon_reduction_amount&quot;:0,
&quot;vip_reduction_amount&quot;:0,
&quot;pay_amount&quot;:70.19,
&quot;open_vip_info&quot;: {
&quot;price&quot;: 9.9,
&quot;reduction_amount&quot;: 3,
&quot;max_reduction_amount&quot;: 168,
&quot;min_amount&quot;: 8,
&quot;number&quot;: 6
}
&quot;goods_list&quot;:[
{
&quot;goods_id&quot;:&quot;71&quot;,
&quot;bid&quot;:&quot;1&quot;,
&quot;cid&quot;:&quot;1&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/groceryimages/2ebe24755f225167666a55c0a752c1bf90866.jpg&quot;,
&quot;title&quot;:&quot;1111&quot;,
&quot;selling_price&quot;:&quot;10.90&quot;,
&quot;vip_price&quot;:&quot;0.00&quot;,
&quot;number&quot;:&quot;1&quot;
},
{
&quot;goods_id&quot;:&quot;72&quot;,
&quot;bid&quot;:&quot;1&quot;,
&quot;cid&quot;:&quot;1&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/750.750/groceryinfrastructureimages/7561db014f7ee9a23e18704ac8f4524c536118.png&quot;,
&quot;title&quot;:&quot;2222&quot;,
&quot;selling_price&quot;:&quot;19.39&quot;,
&quot;vip_price&quot;:&quot;0.00&quot;,
&quot;number&quot;:&quot;1&quot;
},
{
&quot;goods_id&quot;:&quot;73&quot;,
&quot;bid&quot;:&quot;1&quot;,
&quot;cid&quot;:&quot;1&quot;,
&quot;img&quot;:&quot;https://img.meituan.net/750.750/groceryinfrastructureimages/5e424661f9158c879aacb12efb2687cf290123.png&quot;,
&quot;title&quot;:&quot;3333&quot;,
&quot;selling_price&quot;:&quot;39.90&quot;,
&quot;vip_price&quot;:&quot;0.00&quot;,
&quot;number&quot;:&quot;1&quot;
}
],
&quot;user_coupon_id&quot;:0,
&quot;user_consignee&quot;:{
&quot;id&quot;:&quot;1&quot;,
&quot;name&quot;:&quot;11122223333&quot;,
&quot;mobile&quot;:&quot;15652206707&quot;
},
}
}</code></pre>
<h5>返回参数说明</h5>
<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;">open_vip_info</td>
<td style="text-align: left;">array</td>
<td>是否开通省钱卡,如已是会员则不会返回此字段, price:省钱卡价格、reduction_amount:购买省钱卡本单可节省金额、max_reduction_amount:最多可省多少元,min_amount:满多少可用、number:优惠券数量</td>
</tr>
<tr>
<td style="text-align: left;">total_amount</td>
<td style="text-align: left;">float</td>
<td>商品总价</td>
</tr>
<tr>
<td style="text-align: left;">coupon_reduction_amount</td>
<td style="text-align: left;">float</td>
<td>优惠券抵扣金额</td>
</tr>
<tr>
<td style="text-align: left;">vip_reduction_amount</td>
<td style="text-align: left;">float</td>
<td>vip抵扣金额</td>
</tr>
<tr>
<td style="text-align: left;">pay_amount</td>
<td style="text-align: left;">float</td>
<td>实际支付金额</td>
</tr>
<tr>
<td style="text-align: left;">goods_list</td>
<td style="text-align: left;">array</td>
<td>商品列表</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->goods_id</td>
<td style="text-align: left;">string</td>
<td>商品ID</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->bid</td>
<td style="text-align: left;">string</td>
<td>商家ID</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->cid</td>
<td style="text-align: left;">string</td>
<td>分类ID</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->img</td>
<td style="text-align: left;">string</td>
<td>商品展示图片</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->title</td>
<td style="text-align: left;">string</td>
<td>商品名称</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->selling_price</td>
<td style="text-align: left;">string</td>
<td>商品售价</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->vip_price</td>
<td style="text-align: left;">string</td>
<td>省钱卡价格</td>
</tr>
<tr>
<td style="text-align: left;">goods_list->index->number</td>
<td style="text-align: left;">int</td>
<td>购物车数量</td>
</tr>
<tr>
<td style="text-align: left;">user_coupon_id</td>
<td style="text-align: left;">string</td>
<td>用户选中的的优惠券ID</td>
</tr>
<tr>
<td style="text-align: left;">user_consignee</td>
<td style="text-align: left;">array</td>
<td>提货人信息</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>