获取-订单详情(以及支付结果)
GET
/member/order/{id}获取订单详情
请求参数
Path 参数
id
string
订单id
示例值:
1543591863523479553
Header 参数
Authorization
string
必需
Bearer token值: 例如: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ7XCJuYW1lXCI6XCLkvKDmmbrmlZnogrIrMVwiLFwiaWRcIjpcIjEzNjk1OTQ5NTQ3Mzk4NTk0NThcIixcInVzZXJuYW1lXCI6XCJ4aWFvdHV4aWFuMDAxXCJ9IiwiaWF0IjoxNjU2NzY2MzkwLCJleHAiOjE2NTcwMjU1OTB9.g-0SLjVSVh2A6Zt14enZsP1bsImxLhaQclfyItIFrAs
示例值:
{{ERABBIT_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
参数有误(400)
身份认证失败_小兔仙(401)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
业务状态码
1成功, 其他失败
msg
string
响应消息
result
object
响应结果
id
string
订单id
createTime
string
订单创建时间
payType
integer
订单支付方式
1为在线支付, 2为货到付款
orderState
integer
订单状态
1为待付款, 2为待发货, 3为待收货, 4为待评价, 5为已完成, 6为已取消
payLatestTime
string
订单付款截止时间
剩余的秒数, 前台转换成分钟: 秒数
countdown
integer
订单倒计时
剩余的秒数-1表示已经超时, 正数表示倒计时未结束
postFee
integer
订单邮费
payMoney
integer
订单实付金额
payChannel
integer
订单支付渠道
1支付宝, 2微信
payState
integer
订单状态
1为待付款、2为待发货、3为待收货、4为待评价、5为已完成、6为已取消
totalMoney
integer
订单金额合计
totalNum
integer
订单数量合计
deliveryTimeType
integer
订单配送类型
配送时间类型,1为不限,2为工作日,3为双休或假日
receiverContact
string
订单收货人
receiverMobile
string
订单收货人手机号
provinceCode
string
订单收货人-省份编码
cityCode
string
订单收货人-城市编码
countyCode
string
订单收货人-地区编码
receiverAddress
string
订单收货人-详细地址
payTime
null
订单支付时间
consignTime
null
订单发货时间
endTime
null
订单交易完成时间
closeTime
string
订单交易关闭时间
evaluationTime
null
订单完成评价时间
skus
array [object {10}]
订单商品sku的id集合
arrivalEstimatedTime
null
预计到货时间
示例成功示例
{
"code": "1",
"msg": "操作成功",
"result": {
"id": "1543591863523479553",
"createTime": "2022-07-03 21:45:53",
"payType": 1,
"orderState": 6,
"payLatestTime": "2022-07-03 22:15:54",
"countdown": -1,
"postFee": 6,
"payMoney": 1139,
"payChannel": 1,
"payState": 3,
"totalMoney": 1133,
"totalNum": 9,
"deliveryTimeType": 1,
"receiverContact": "张先生12",
"receiverMobile": "15236363232",
"provinceCode": "150000",
"cityCode": "150600",
"countyCode": "150625",
"receiverAddress": "内蒙古自治区鄂尔多斯市杭锦旗仙霞西路885弄",
"payTime": null,
"consignTime": null,
"endTime": null,
"closeTime": "2022-07-03 22:15:54",
"evaluationTime": null,
"skus": [
{
"id": "1543591863607365633",
"spuId": "3459033",
"name": "软弹/保暖两款可选,女式舒软轻弹健步鞋",
"quantity": 2,
"image": "https://yanxuan-item.nosdn.127.net/1f95d579952f425d840dc051dafb6156.jpg",
"realPay": 270,
"curPrice": 135,
"totalMoney": null,
"properties": [
{
"propertyMainName": "颜色",
"propertyValueName": "灰色镂空"
},
{
"propertyMainName": "尺码",
"propertyValueName": "38"
}
],
"attrsText": "颜色:灰色镂空 尺码:38 "
},
{
"id": "1543591863632531457",
"spuId": "3995844",
"name": "优质90%白鸭绒,儿童轻薄羽绒裤1-6岁",
"quantity": 5,
"image": "https://yanxuan-item.nosdn.127.net/f17d6260e7eb0cb805b796296f5f54b5.jpg",
"realPay": 645,
"curPrice": 129,
"totalMoney": null,
"properties": [
{
"propertyMainName": "颜色",
"propertyValueName": "黑色"
},
{
"propertyMainName": "尺码",
"propertyValueName": "80cm(建议12-18个月)"
}
],
"attrsText": "颜色:黑色 尺码:80cm(建议12-18个月) "
},
{
"id": "1543591863703834626",
"spuId": "3997974",
"name": "入门首选,语音播报电子血压计",
"quantity": 2,
"image": "https://yanxuan-item.nosdn.127.net/8f0c15f981c5cbcb1aa17215a259fa62.png",
"realPay": 218,
"curPrice": 109,
"totalMoney": null,
"properties": [
{
"propertyMainName": "规格",
"propertyValueName": "白色KD-5901"
}
],
"attrsText": "规格:白色KD-5901 "
}
],
"arrivalEstimatedTime": null
}
}
最后修改时间: 2 年前