订单详情
更新时间:2021-09-06
接口描述
本接口用于展示 AIPAGE 订单详情,返回查询的订单详细内容。
注意事项
- authorization header 签名时必须签名 host 头部,同时推荐签名所有 x-bce 开头 header。
请求结构
GET /v{version}/order/{orderId} HTTP/1.1
Host: aipage.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
orderId | String | 是 | URL参数 | 订单id |
siteId | String | 是 | query参数 | 站点 ID |
响应头域
除公共头域外,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
result | Object | 返回查询的订单详情 |
success | Boolean | 返回是否操作成功 |
请求示例
GET https://aipage.baidubce.com/v1/order/efabdd13-525f-4873-99aa-1e892ba8d52b
Host: aipage.baidubce.com
Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
query: { siteId: "4aee2098-7c99-4253-9844-32194d25428e"}
响应示例
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Date: Wed, 08 Jul 2015 03:28:11 GMT
x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
Server: BWS
{
"success": true,
"result":{
"info":{},
"address":{},
"detail":{
"discount":"399.50",
"levelPoint":0,
"consumePoint":0
},
"id":"efabdd13-525f-4873-99aa-1e892ba8d52b",
"type":0,
"siteId":"4aee2098-7c99-4253-9844-32194d25428e",
"memberId":"f9b54dd3-5219-422c-92b1-e3888b5cb085",
"productId":"",
"status":3,
"purchasePrice":29950,
"fromPlatform":10,
"goodsType":1,
"logisticsCom":"",
"logisticsNum":"",
"remark":"",
"feedback":"",
"payAt":"1970-01-01T00:00:00.000Z",
"createdAt":"2021-06-04T07:10:27.000Z",
"updatedAt":"2021-06-04T07:16:52.000Z",
"deletedAt":"1970-01-01T00:00:00.000Z",
"orderDetail":[
{
"images":[
"/resources/upload/qianhu2/1585550059545.jpeg@wm_2,t_5rWL6K+V5rC05Y2w,ff_RmFuZ1Nvbmc=,sz_19,fc_4e35ccff,a_0,g_5"
],
"id":"879d034e-4dec-42b4-9f18-8a00f0517832",
"goodsId":"e9d6c8a8-390b-4be3-82fa-8bd6390633b5",
"skuId":"",
"skuName":"",
"purchaseUnitPrice":29950,
"count":1,
"title":"冬季羽绒服-参数测试-虚拟订单",
"createdAt":"2021-06-04T07:10:27.000Z",
"updatedAt":"2021-06-04T07:10:27.000Z",
"deletedAt":"1970-01-01T00:00:00.000Z",
"orderId":"efabdd13-525f-4873-99aa-1e892ba8d52b"
}
],
"member":{
"name":"手机用户-6344",
"id":"f9b54dd3-5219-422c-92b1-e3888b5cb085",
"nickname":"手机用户-6344",
"groupId":"aca4fa57-653f-4aa4-9c44-9b24e38cb872",
"groupName":"普通用户"
},
"isPaid":true,
"extras":[]
}
}