订单服务接口
1、订单列表
接口说明
接口说明 |
接口说明 |
请求域名 |
http://***.yoho.cn/ |
接口名 |
third.trade.getOrderList |
接口说明 |
获取用户订单列表 |
http请求方式 |
GET/POST |
请求参数
名称 |
类型 |
是否必须 |
示例值 |
默认值 |
描述 |
method |
string |
是 |
third.trade.getOrderList |
"" |
'' |
uid |
int |
是 |
5772257 |
'' |
'' |
page |
int |
否 |
1 |
1 |
页数 |
limit |
int |
否 |
10 |
10 |
每页大小 |
businessLine |
int |
否 |
5 |
5 |
5:blue |
正常返回结果
{
"code": 200,
"data": {
"order_list": [
{
"id": "5528982",
"outerOrderNo": "1519273880",
"tradeOrderNo": "5519273880",
"orderTitle": "订单编号: 1519273880",
"uid": "5772257",
"createTime": "2018.08.06 10:00:00", --创建时间
"paymentAmount": "690.00", -- 实际支付金额
"totalAmount": "1000", --订单金额
"status": "TRADE_SUCCESS",
"statusDesc": "已付款", -- 状态名称
// 购买商品
"goodsList": [
{
"buyNumber": 1, -- 购买商品数量
"goodsId": 125106,
"goodsPrice": "1.00", -- 商品价格
"realPrice": "1.00",--分摊价,实际的价格
"discountTag":"", -- 折扣标记,V为vip,G为赠品
"productName": "004 满版龙纹迷彩七分休闲裤",
"productSkn": 51055461,
"refundNum": 0, -- 退货数量
"colorName": "彩色", -- 商品颜色
"sizeName": "M" -- 商品尺寸
}
],
//促销优惠等费用计算项目
"promotionFormulas":
[
{
"operator":"-",
"promotion":"店铺活动(满100减100)",
"promotion_amount":"¥100.00"
},
{
"operator":"+",
"promotion":"店铺活动(赠品)",
"promotion_amount":"¥0.00"
},
{
"operator":"-",
"promotion":"优惠券",
"promotion_amount":"¥100.00"
},
{
"operator":"-",
"promotion":"VIP优惠",
"promotion_amount":"¥10.00"
}
]
}
],
"page": 1,
"page_total": 27,
"total": 265
},
"message": "ok"
}