5.2查询客户下权益卡订单列表
<p>路径:/api/order/getOrderPage</p>
<p>方法: POST</p>
<p>header:</p>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>Authorization</td>
<td>String</td>
<td></td>
<td>是</td>
<td>Bearer 客户认证令牌/会员认证令牌</td>
</tr>
</tbody>
</table>
<p>请求:</p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>是否必填</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>pageSize</td>
<td>Long</td>
<td></td>
<td>否</td>
<td>每页查询数量 为空默认50条</td>
</tr>
<tr>
<td>currentPage</td>
<td>Long</td>
<td></td>
<td>否</td>
<td>当前页码</td>
</tr>
<tr>
<td>orderState</td>
<td>String</td>
<td></td>
<td>否</td>
<td>订单状态TO_PAY 待付款,TO_DELIVERY 待发货,TO_RECEIVE 待收货,COMPLETE 完成,AFTER_SALES 售后,CANCEL 取消,CLOSE 关闭</td>
</tr>
<tr>
<td>createStartDate</td>
<td>String</td>
<td></td>
<td>否</td>
<td>下单开始日期</td>
</tr>
<tr>
<td>createEndDate</td>
<td>String</td>
<td></td>
<td>否</td>
<td>下单截止日期</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">{
"pageSize": 50,
"currentPage": 1
}</code></pre>
<p>返回:</p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>类型</th>
<th>长度限制</th>
<th>介绍</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderNo</td>
<td>String</td>
<td></td>
<td>烈熊订单号</td>
</tr>
<tr>
<td>thirdOrderNo</td>
<td>String</td>
<td></td>
<td>三方订单号,烈熊购卡页下单无该字段</td>
</tr>
<tr>
<td>createTime</td>
<td>String</td>
<td></td>
<td>创建时间,格式:yyyy-MM-dd HH:mm:ss</td>
</tr>
<tr>
<td>orderState</td>
<td>String</td>
<td></td>
<td>TO_PAY 待付款,TO_DELIVERY 待发货,TO_RECEIVE 待收货,COMPLETE 完成,AFTER_SALES 售后,CANCEL 取消,CLOSE 关闭</td>
</tr>
<tr>
<td>discountAmount</td>
<td>String</td>
<td></td>
<td>优惠总金额,单位:分</td>
</tr>
<tr>
<td>totalAmount</td>
<td>String</td>
<td></td>
<td>订单总金额,单位:分</td>
</tr>
<tr>
<td>goodsAmount</td>
<td>String</td>
<td></td>
<td>商品金额,单位:分</td>
</tr>
<tr>
<td>goodsItem</td>
<td>Array</td>
<td></td>
<td>订单商品集合</td>
</tr>
<tr>
<td>goodsItem.orderNo</td>
<td>String</td>
<td></td>
<td>烈熊订单号</td>
</tr>
<tr>
<td>goodsItem.salesDetailId</td>
<td>String</td>
<td></td>
<td>商品编号</td>
</tr>
<tr>
<td>goodsItem.goodsName</td>
<td>String</td>
<td></td>
<td>商品名称</td>
</tr>
<tr>
<td>goodsItem.buyNum</td>
<td>String</td>
<td></td>
<td>购买数量</td>
</tr>
<tr>
<td>goodsItem.discountAmount</td>
<td>String</td>
<td></td>
<td>优惠金额,单位:分</td>
</tr>
<tr>
<td>goodsItem.buyPrice</td>
<td>String</td>
<td></td>
<td>订单金额,单位:分</td>
</tr>
</tbody>
</table>
<pre><code class="language-json">{
"code": "0",
"data": {
"currentPage": 1,
"pageSize": 1,
"records": [
{
"createTime": "2021-12-29 18:06:45",
"customerOrderNo": "",
"discountAmount": "",
"goodsAmount": "1",
"goodsItem": [
{
"discountAmount": "",
"salesDetailId": "1476103871858905090",
"goodsName": "充值权益卡(月卡)",
"orderNo": "202112290000000000000282",
"buyNum": "1",
"buyPrice": "1"
}
],
"orderNo": "202112290000000000000282",
"orderState": "COMPLETE",
"totalAmount": "1"
}
],
"totalPage": 15,
"totalSize": 15
},
"message": "请求成功",
"service": "",
"success": true
}</code></pre>
<p>错误:</p>
<table>
<thead>
<tr>
<th style="text-align: left;">codes</th>
<th style="text-align: left;">问题描述</th>
<th style="text-align: left;">解决</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">401</td>
<td style="text-align: left;">Bearer令牌不允许为空/token无效</td>
<td style="text-align: left;">请检查Authorization参数</td>
</tr>
<tr>
<td style="text-align: left;">10003</td>
<td style="text-align: left;">关联的客户 (供应商)被移除或已禁用</td>
<td style="text-align: left;">请联系烈熊方产品核对</td>
</tr>
<tr>
<td style="text-align: left;">10004</td>
<td style="text-align: left;">缺少参数</td>
<td style="text-align: left;">具体内容查阅返回的message字段</td>
</tr>
</tbody>
</table>