- wiki
- 1. 获取首页数据GET
- 2. 商品搜索GET
- 3. 商品详情页GET
- 4. 购物车商品总数量GET
- 5. 商品保障服务GET
- 6. 获取商品评论GET
- 7. 获取商品评价总数GET
- 8. 商品评价列表GET
- 9. 添加商品到购物车POST
- 10. 获取图形验证码GET
- 11. 登录-获取短信验证码POST
- 12. 手机验证码登录(图形验证码可以不用传)POST
- 13. 购物车商品列表GET
- 14. 购物车商品更新POST
- 15. 删除购物车商品POST
- 16. 订单结算GET
- 17. 收货地址列表GET
- 18. 默认收货地址idGET
- 19. 获取省市区-添加地址GET
- 20. 添加收货地址POST
- 21. 设置默认地址POST
- 22. 删除收货地址POST
- 23. 获取收货地址详情GET
- 24. 编辑收货地址POST
- 25. 提交订单POST
- 26. 商品全部分类GET
- 27. 我的-获取用户信息GET
- 28. 我的-余额,积分,优惠券GET
- 29. 我的-商品状态数量(全部/待支付/待收货/待发货)GET
- 30. 我的-订单GET
- 31. 我的-订单详情GET
- 32. 我的-取消订单POST
- 32. 我的-订单支付GET
- 33. 我的-订单确认收货POST
- 34. 我的-订单评价商品列表GET
- 35. 上传图片POST
- 36. 我的-提交商品评价POST
- 37. 我的-申请售后POST
30. 我的-订单
开发中
开发环境
http://smart-shop.itheima.net/index.php?s=/api
开发环境
http://smart-shop.itheima.net/index.php?s=/api
GET
/order/list
请求参数
Query 参数
dataType
string
必需
示例值:
all
page
string
默认值
示例值:
1
Header 参数
platform
string
必需
示例值:
h5
Access-Token
string
必需
示例值:
1741f74aed758a688515f72572dc8e37
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://smart-shop.itheima.net/index.php?s=/api/order/list&dataType=all&page=1' \
--header 'platform: h5' \
--header 'Access-Token: 1741f74aed758a688515f72572dc8e37'
返回响应
🟢200成功
application/json
Body
status
integer
必需
message
string
必需
data
object
必需
list
object
必需
示例
{ "status": 200, "message": "success", "data": { "list": { "total": 12, "per_page": 15, "current_page": 1, "last_page": 1, "data": [ { "order_id": 10027, "order_no": "2023032448524849", "total_price": "0.01", "order_price": "0.01", "coupon_id": 0, "coupon_money": "0.00", "points_money": "0.00", "points_num": 0, "pay_price": "0.01", "update_price": { "symbol": "+", "value": "0.00" }, "buyer_remark": "", "pay_type": 10, "pay_status": 20, "pay_time": "2023-03-24 08:46:56", "delivery_type": 10, "express_price": "0.00", "express_id": 0, "express_company": "", "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": 10, "order_source_id": 0, "platform": "h5", "user_id": 10003, "is_delete": 0, "create_time": "2023-03-24 08:46:56", "goods": [ { "order_goods_id": 10032, "goods_id": 10038, "goods_name": "三星手机 SAMSUNG Galaxy S23 8GB+256GB 超视觉夜拍系统 超清夜景 悠雾紫 5G手机 游戏拍照旗舰机s23", "image_id": 10214, "deduct_stock_type": 10, "spec_type": 10, "goods_sku_id": "0", "goods_props": null, "goods_no": "SH001", "goods_price": "0.01", "line_price": "6699.00", "goods_weight": 0.1, "is_user_grade": 1, "grade_ratio": 10, "grade_goods_price": "0.01", "grade_total_money": "0.00", "coupon_money": "0.00", "points_money": "0.00", "points_num": 0, "points_bonus": 0, "total_num": 1, "total_price": "0.01", "total_pay_price": "0.01", "is_comment": 0, "order_id": 10027, "user_id": 10003, "goods_source_id": 0, "goods_image": "http:\/\/cba.itlike.com\/public\/uploads\/10001\/20230321\/8f505c6c437fc3d4b4310b57b1567544.jpg", "image": { "file_id": 10214, "group_id": 0, "channel": 10, "storage": "local", "domain": "", "file_type": 10, "file_name": "p1.jpg", "file_path": "10001\/20230321\/8f505c6c437fc3d4b4310b57b1567544.jpg", "file_size": 71199, "file_ext": "jpg", "cover": "", "uploader_id": 0, "is_recycle": 0, "is_delete": 0, "store_id": 10001, "create_time": "2023-03-21 09:47:30", "update_time": "2023-03-21 09:47:30", "preview_url": "http:\/\/cba.itlike.com\/public\/uploads\/10001\/20230321\/8f505c6c437fc3d4b4310b57b1567544.jpg", "external_url": "http:\/\/cba.itlike.com\/public\/uploads\/10001\/20230321\/8f505c6c437fc3d4b4310b57b1567544.jpg" } } ], "state_text": "待发货" }, { "order_id": 10026, "order_no": "2023032497501025", "total_price": "0.01",
修改于 2023-03-24 01:02:33