查询用户订单详情
GET
/app/mall/api/v1/user/order/info
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
orderId
integer
订单ID
示例值:
2
示例代码
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://47.93.16.76:8080/app/mall/api/v1/user/order/info?orderId=2'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
integer
必需
data
object
必需
orderGoodsList
array [object {12}]
订单商品信息
orderInfo
object
订单信息
示例
{
"msg": "操作成功",
"code": 200,
"data": {
"orderGoodsList": [
{
"id": 3,
"orderId": 2,
"goodsId": 1,
"goodsName": "母亲节礼物-舒适安睡组合",
"goodsCode": "515091408151908352",
"productId": 10,
"goodsNum": 4,
"goodsPrice": 1001,
"specifications": "[\"1.8m床垫*1+枕头*2\",\"浅杏粉\"]",
"imgUrl": "http://yanxuan.nosdn.127.net/10022c73fa7aa75c2c0d736e96cc56d5.png?quality=90&thumbnail=200x200&imageView",
"comment": 1018
},
{
"id": 4,
"orderId": 2,
"goodsId": 1,
"goodsName": "母亲节礼物-舒适安睡组合",
"goodsCode": "515091408151908352",
"productId": 11,
"goodsNum": 2,
"goodsPrice": 2000,
"specifications": "[\"1.8m床垫*1+枕头*2\",\"玛瑙红\"]",
"imgUrl": "quality=90&thumbnail=200x200&imageView",
"comment": 0
}
],
"orderInfo": {
"createTime": "2023-11-27 14:16:08",
"id": 2,
"userId": 1,
"orderCode": "516980550460772352",
"orderStatus": "3",
"aftersaleStatus": "0",
"consignee": "萧红",
"mobile": "15731231027",
"address": "132376鼓楼大街1306号",
"message": "请优先配送!!!",
"goodsPrice": 8004,
"freightPrice": 0,
"couponPrice": 0,
"integralPrice": 0,
"orderPrice": 8004,
"actualPrice": 8004,
"payType": "1",
"payCode": null,
"payTime": null,
"payResidueTime": "2023-11-27",
"shipSn": null,
"shipChannel": null,
"shipTime": null,
"refundAmount": null,
"refundType": null,
"refundContent": null,
"refundTime": null,
"confirmTime": "2023-11-29",
"comments": 1,
"endTime": "2023-12-06"
}
}
}
修改于 2023-12-08 01:56:06