订单列表

订单列表

请求地址

POST https://{host}/openapi/order/list

请求参数

属性 类型 默认值 必填 说明
x-token String 用户token

body

属性 类型 默认值 必填 说明
pageNum int 分页页码,默认1
pageSize int 分页大小,默认10,
showType int showType 订单信息: 0,全部订单; 1,待付款; 2,待发货; 3,待收货; 4,待评价。

返回值

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "list": [
      {
        "orderStatusText": "未付款",
        "isGroupin": false,
        "orderSn": "20190804173848",
        "actualPrice": 87.0000,
        "goodsList": [
          {
            "number": 1,
            "picUrl": "http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png",
            "id": 14,
            "goodsName": "日式纯色水洗亚麻抱枕",
            "specificationList": ["标准"]
          }
        ],
        "id": 14,
        "handleOption": {
          "cancel": true,
          "delete": false,
          "pay": true,
          "comment": false,
          "confirm": false,
          "refund": false,
          "rebuy": false
        }
      }
    ]
  }
}

参数说明

属性 类型 说明
data DATA 包含返回的数据
errcode number 错误码
errmsg string 错误信息

DATA

属性 类型 说明
list list(order) 商品数据列表

order

属性 类型 说明
id int 订单id
orderStatusText String 订单状态文本
isGroupin bool 是否是拼团
orderSn String 订单编号
actualPrice BigDecimal 实际价格
goodsList list(product) 商品信息
handleOption handleOption 操作选项

product

属性 类型 说明
id int 商品id
goodsName String 商品名称
picUrl String 商品图片
number int 商品数量
specificationList list(String) 商品规格

handleOption

属性 类型 说明
cancel bool 是否可取消
delete bool 是否可删除
pay bool 是否可支付
comment bool 是否可评论
confirm bool 是否可确认收货
refund bool 是否可退款
rebuy bool 是否可重新购买

errcode 的合法值

说明 最低版本
-1 系统错误
0 请求成功
20001 参数为空
20003 参数错误

results matching ""

    No results matching ""