订单详情
订单详情
请求地址
GET https://{host}/openapi/order/detail
请求参数
属性 |
类型 |
默认值 |
必填 |
说明 |
x-token |
String |
|
|
用户token |
param
属性 |
类型 |
默认值 |
必填 |
说明 |
orderId |
int |
|
|
订单编号 |
返回值
{
"errcode": "0",
"errmsg": "",
"data": {
"orderInfo": {
"consignee": "我摸",
"address": "天津市市辖区和平区 麒麟继续",
"orderSn": "20190804173848",
"actualPrice": 87.0000,
"mobile": "13333333333",
"expCode": null,
"orderStatusText": "未付款",
"createTime": "2019-08-04T04:13:50.000+0000",
"goodsPrice": 79.0000,
"expNo": null,
"couponPrice": 0.0000,
"id": 14,
"freightPrice": 8.0000,
"handleOption": {
"cancel": true,
"delete": false,
"pay": true,
"comment": false,
"confirm": false,
"refund": false,
"rebuy": false
}
},
"orderGoods": [
{
"id": 14,
"orderId": 14,
"goodsId": 1057036,
"goodsName": "日式纯色水洗亚麻抱枕",
"goodsSn": "1057036",
"productId": 71,
"number": 1,
"price": 79.0000,
"specificationList": ["标准"],
"picUrl": "http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png",
"comment": 0
}
]
}
}
参数说明
属性 |
类型 |
说明 |
data |
DATA |
包含返回的数据 |
errcode |
number |
错误码 |
errmsg |
string |
错误信息 |
DATA
order
属性 |
类型 |
说明 |
id |
int |
订单id |
orderStatusText |
String |
订单状态文本 |
orderSn |
String |
订单编号 |
consignee |
String |
收货人 |
address |
String |
收货地址 |
mobile |
String |
收货人手机号 |
expCode |
String |
物流公司编号 |
expNo |
String |
物流单号 |
freightPrice |
String |
运费 |
goodsPrice |
BigDecimal |
商品价格 |
actualPrice |
BigDecimal |
实际价格 |
couponPrice |
BigDecimal |
优惠价格 |
handleOption |
handleOption |
操作选项 |
createTime |
date |
下单时间 |
orderGoods
属性 |
类型 |
说明 |
id |
int |
订单商品id |
orderId |
int |
订单id |
goodsId |
int |
商品id |
goodsName |
String |
商品名称 |
goodsSn |
String |
商品编号 |
productId |
int |
skuid |
number |
int |
商品数量 |
price |
BigDecimal |
商品价格 |
specificationList |
list(String) |
商品规格 |
picUrl |
String |
商品图片 |
comment |
int |
评论数量 |
handleOption
属性 |
类型 |
说明 |
cancel |
bool |
是否可取消 |
delete |
bool |
是否可删除 |
pay |
bool |
是否可支付 |
comment |
bool |
是否可评论 |
confirm |
bool |
是否可确认收货 |
refund |
bool |
是否可退款 |
rebuy |
bool |
是否可重新购买 |
errcode 的合法值
值 |
说明 |
最低版本 |
-1 |
系统错误 |
|
0 |
请求成功 |
|
20001 |
参数为空 |
|
20003 |
参数错误 |
|