我的訂單列表

簡要描述
  • 我的訂單列表
請求url
  • https://www.商城域名.com/index.php?s=/api/order/list
請求方式
  • GET
是否需授權(quán)登錄
請求header
參數(shù)名 類型 是否必須 示例值 說明
storeId int 必填 10001 商城ID
platform string 必填 H5 當(dāng)前請求的客戶端(APP、小程序、H5等)
Access-Token string 選填 - 當(dāng)前登錄用戶的 Token
請求參數(shù)
參數(shù)名 類型 是否必須 示例值 說明
dataType string 必填 all 訂單類型(all全部、payment待支付、delivery待發(fā)貨、received待收貨、comment待評價(jià))
page int 選填 1 當(dāng)前頁碼
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "list": {
      "total": 4,
      "per_page": 15,
      "current_page": 1,
      "last_page": 1,
      "data": [
        {
          "order_id": 10200,
          "order_no": "2022022551549797",
          "total_price": "669.77",
          "order_price": "669.77",
          "coupon_id": 0,
          "coupon_money": "0.00",
          "points_money": "0.00",
          "points_num": 0,
          "pay_price": "669.77",
          "update_price": {
            "symbol": "+",
            "value": "0.00"
          },
          "buyer_remark": "",
          "pay_type": 20,
          "pay_method": "",
          "pay_status": 10,
          "pay_time": "",
          "trade_id": 0,
          "delivery_type": 10,
          "extract_shop_id": 0,
          "extract_clerk_id": 0,
          "express_price": "0.00",
          "express_id": 0,
          "express_no": "",
          "delivery_status": 10,
          "delivery_time": "",
          "receipt_status": 10,
          "receipt_time": "",
          "order_status": 10,
          "points_bonus": 32,
          "is_settled": 0,
          "transaction_id": "",
          "is_comment": 0,
          "order_source": 10,
          "order_source_id": 0,
          "platform": "H5",
          "user_id": 10125,
          "is_delete": 0,
          "create_time": "2022-02-25 12:52:35",
          "goods": [
            {
              "order_goods_id": 10202,
              "goods_id": 10019,
              "goods_name": "清野の木 56L灰色特大號 塑料收納箱整理箱環(huán)保加厚儲物箱",
              "image_id": 10364,
              "deduct_stock_type": 10,
              "spec_type": 10,
              "goods_sku_id": "0",
              "goods_props": null,
              "goods_no": "",
              "goods_price": "32.14",
              "line_price": "0.00",
              "goods_weight": 0,
              "is_user_grade": 1,
              "grade_ratio": 10,
              "grade_goods_price": "31.50",
              "grade_total_money": "1.93",
              "coupon_money": "0.00",
              "points_money": "0.00",
              "points_num": 0,
              "points_bonus": 4,
              "total_num": 3,
              "total_price": "94.49",
              "total_pay_price": "94.49",
              "delivery_status": 10,
              "delivery_num": 0,
              "is_comment": 0,
              "order_id": 10200,
              "user_id": 10125,
              "goods_source_id": 0,
              "goods_image": "2a6e0c0ea7d1e5f0f2ac3e406198850c.jpg"
            },
            {
              "order_goods_id": 10203,
              "goods_id": 10020,
              "goods_name": "耐克 男子 NIKE AIR FORCE 1'07 運(yùn)動鞋",
              "image_id": 10378,
              "deduct_stock_type": 10,
              "spec_type": 20,
              "goods_sku_id": "10052",
              "goods_props": [
                {
                  "group": {
                    "name": "尺碼",
                    "id": 10007
                  },
                  "value": {
                    "name": "39",
                    "id": 10052
                  }
                }
              ],
              "goods_no": "",
              "goods_price": "587.02",
              "line_price": "999.00",
              "goods_weight": 4,
              "is_user_grade": 1,
              "grade_ratio": 10,
              "grade_goods_price": "575.28",
              "grade_total_money": "11.74",
              "coupon_money": "0.00",
              "points_money": "0.00",
              "points_num": 0,
              "points_bonus": 28,
              "total_num": 1,
              "total_price": "575.28",
              "total_pay_price": "575.28",
              "delivery_status": 10,
              "delivery_num": 0,
              "is_comment": 0,
              "order_id": 10200,
              "user_id": 10125,
              "goods_source_id": 0,
              "goods_image": "b72822760ccc4bb892cc658b33af939e.jpg"
            }
          ],
          "state_text": "待支付"
        },
        {
          "order_id": 10196,
          "order_no": "2022012698511019",
          "total_price": "12.90",
          "order_price": "12.90",
          "coupon_id": 0,
          "coupon_money": "0.00",
          "points_money": "0.00",
          "points_num": 0,
          "pay_price": "12.90",
          "update_price": {
            "symbol": "+",
            "value": "0.00"
          },
          "buyer_remark": "",
          "pay_type": 20,
          "pay_method": "",
          "pay_status": 10,
          "pay_time": "",
          "trade_id": 0,
          "delivery_type": 10,
          "extract_shop_id": 0,
          "extract_clerk_id": 0,
          "express_price": "0.00",
          "express_id": 0,
          "express_no": "",
          "delivery_status": 10,
          "delivery_time": "",
          "receipt_status": 10,
          "receipt_time": "",
          "order_status": 10,
          "points_bonus": 0,
          "is_settled": 0,
          "transaction_id": "",
          "is_comment": 0,
          "order_source": 30,
          "order_source_id": 10116,
          "platform": "H5",
          "user_id": 10125,
          "is_delete": 0,
          "create_time": "2022-01-26 15:08:27",
          "goods": [
            {
              "order_goods_id": 10193,
              "goods_id": 10018,
              "goods_name": "簡約風(fēng)條紋客廳沙發(fā)臥室床頭抱枕靠墊套",
              "image_id": 10389,
              "deduct_stock_type": 10,
              "spec_type": 10,
              "goods_sku_id": "0",
              "goods_props": null,
              "goods_no": "",
              "goods_price": "0.01",
              "line_price": "129.00",
              "goods_weight": 0.8,
              "is_user_grade": 0,
              "grade_ratio": 0,
              "grade_goods_price": "0.00",
              "grade_total_money": "0.00",
              "coupon_money": "0.00",
              "points_money": "0.00",
              "points_num": 0,
              "points_bonus": 0,
              "total_num": 1,
              "total_price": "12.90",
              "total_pay_price": "12.90",
              "delivery_status": 10,
              "delivery_num": 0,
              "is_comment": 0,
              "order_id": 10196,
              "user_id": 10125,
              "goods_source_id": 10028,
              "goods_image": "41cdb778199f99ebebb6090680f382fc.png"
            }
          ],
          "state_text": "待支付"
        }
      ]
    }
  }
}
返回參數(shù)
參數(shù)名 類型 示例值 說明
status int 200 請求狀態(tài)(200:請求成功;500:請求錯誤/失敗)
message string success 請求結(jié)果的信息,默認(rèn)為 success
data object - 返回的業(yè)務(wù)數(shù)據(jù)
data 參數(shù)
參數(shù)名 類型 示例值 說明
list object - 列表數(shù)據(jù)
data.list 參數(shù)
參數(shù)名 類型 示例值 說明
total int 2 總記錄數(shù)
per_page int 15 每頁條數(shù)
current_page int 1 當(dāng)前頁碼
last_page int 1 最后頁碼
data array - 列表數(shù)組
data.list.data 參數(shù)
參數(shù)名 類型 示例值 說明
order_id int 10200 訂單ID
order_no string 2022022551549797 訂單號
total_price string 669.77 商品總金額 (不含優(yōu)惠折扣)
order_price string 669.77 訂單金額 (含優(yōu)惠折扣)
coupon_id int - 優(yōu)惠券ID
coupon_money string 0.00 優(yōu)惠券抵扣金額
points_money string 0.00 積分抵扣金額
points_num int - 積分抵扣數(shù)量
pay_price string 669.77 實(shí)際付款金額 (包含運(yùn)費(fèi))
update_price object - 后臺修改的訂單金額 (差價(jià))
buyer_remark string - 買家留言
pay_method string - 支付方式(余額/微信/支付寶)
pay_status int 10 付款狀態(tài)(10未付款 20已付款)
pay_time string - 付款時間
trade_id int - 第三方交易記錄ID
delivery_type int 10 配送方式 (10快遞配送 20門店自提)
extract_shop_id int - 自提門店ID
extract_clerk_id int - 核銷店員ID
express_price string 0.00 運(yùn)費(fèi)金額
express_id int - 物流公司ID (廢棄)
express_no string - 物流單號 (廢棄)
delivery_status int 10 發(fā)貨狀態(tài) (10未發(fā)貨 20已發(fā)貨 30部分發(fā)貨)
delivery_time string - 發(fā)貨時間
receipt_status int 10 收貨狀態(tài) (10未收貨 20已收貨)
receipt_time string - 收貨時間
order_status int 10 訂單狀態(tài) (10進(jìn)行中 20取消 21待取消 30已完成)
points_bonus int 32 贈送的積分?jǐn)?shù)量
is_comment int - 是否已評價(jià) (0否 1是)
order_source int 10 訂單來源 (10普通訂單 20砍價(jià)訂單 30秒殺訂單)
order_source_id int - 來源記錄ID
platform string H5 下單客戶端 (APP、H5、小程序等)
user_id int 10125 用戶ID
create_time string 2022-02-25 12:52:35 訂單創(chuàng)建時間
goods array - 訂單商品信息
state_text string 待支付 訂單狀態(tài)文字(待支付、待發(fā)貨、部分發(fā)貨、待收貨、已完成、已取消、待取消)
data.list.data.update_price 參數(shù)
參數(shù)名 類型 示例值 說明
symbol string + 變動類型 (+增加金額、-減免金額)
value string 0.00 金額數(shù)值
data.list.data.goods 參數(shù)
參數(shù)名 類型 示例值 說明
order_goods_id int 10202 訂單商品ID
goods_id int 10019 商品ID
goods_name string 清野の木 56L灰色特大號 塑料收納箱整理箱環(huán)保加厚儲物箱 商品標(biāo)題/名稱
image_id int 10364 商品封面圖ID
deduct_stock_type int 10 庫存計(jì)算方式 (10下單減庫存 20付款減庫存)
spec_type int 10 規(guī)格類型 (10單規(guī)格 20多規(guī)格)
goods_sku_id string - 商品SKU唯一標(biāo)識
goods_props null null SKU的規(guī)格屬性(json格式)
goods_no string - 商品編碼
goods_price string 32.14 商品價(jià)格(單價(jià))
line_price string 0.00 商品劃線價(jià)
goods_weight int - 商品重量(Kg)
is_user_grade int 1 是否使用會員等級折扣
grade_ratio int 10 會員折扣比例(0-10)
grade_goods_price string 31.50 會員折扣的商品單價(jià)
grade_total_money string 1.93 會員折扣的總額差
coupon_money string 0.00 優(yōu)惠券折扣金額
points_money string 0.00 積分金額
points_num int - 積分抵扣數(shù)量
points_bonus int 4 贈送的積分?jǐn)?shù)量
total_num int 3 購買數(shù)量
total_price string 94.49 商品總價(jià) (數(shù)量×單價(jià))
total_pay_price string 94.49 實(shí)際付款價(jià) (折扣和優(yōu)惠后)
delivery_status int 10 發(fā)貨狀態(tài) (10未發(fā)貨 20已發(fā)貨 30部分發(fā)貨)
delivery_num int - 已發(fā)貨數(shù)量
is_comment int - 是否已評價(jià)(0否 1是)
order_id int 10200 訂單ID
user_id int 10125 用戶ID
goods_source_id int - 來源記錄ID
goods_image string 2a6e0c0ea7d1e5f0f2ac3e406198850c.jpg 商品封面圖