| Version 9 (modified by wuyuanbo, 10 years ago) (diff) |
|---|
Table of Contents
订单
提交订单
线上:/appIntf/order/createOrder.jsp
说明
生成订单
使用场景:根据商品outerId和用户id生成订单
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| outerId | 商品outerId | string | "" | 是 |
| common_session_id | - | string | "" | 是 |
返回
result {
status: 1,
msg: '请求成功',
data: {
orderId: 123456//订单id
}
}
取消订单
线上:/appIntf/order/cancelOrder.jsp
说明
取消用户某个订单
使用场景:用户下单后取消订单
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| orderId | 订单id | int | 0 | 是 |
| common_session_id | - | string | "" | 是 |
返回
result {
status: 1,
msg: '请求成功',
data: {
orderId:123456 //取消订单的id
}
}
确认收货
说明
将订单状态改为已收货
使用场景:用户收到该订单的商品将订单改为已收货
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| orderId | 订单id | int | 0 | 是 |
| common_session_id | - | string | "" | 是 |
返回
result {
status: 1,
msg: '请求成功',
data: {
orderId:123456 //修改的订单id
}
}
用户订单列表
说明
登陆用户的订单列表
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| pageNo | 第几页 | int | 1 | 是 |
| pageSize | 一页的数据量 | int | 10 | 是 |
| common_session_id | - | string | "" | 是 |
返回
result {
status: 1,
msg: '请求成功',
pageNo: 1,
pageSize: 10,
total: 20,
pageTotal: 2,
serviceDate: 2015-11-11 11:11:10
data: [
{
orderId: 123456, //订单id
orderNo: 20151111123321, //订单id
enName: "ECCO Men's Dress Moccasin Penny Loafer", //商品标题
parameter: "Size: 42 M EU / 8-8.5 D(M) US|Color: Black", //商品参数
imgUrl: xxx.xxxx... //商品图片
cnPrice: 123.00, //人民币单价
frPrice: 20.00, //美元单价
realExpPrice: 120.00, //关税
realExpPrice: 123.00, //运费
amountPrice: 100000.00, //订单总价
status: 1 //订单状态
payAt: 2015-11-11 11:11:11 //付款过期时间
mallId: 123 //电商id
mallName: "美国亚马逊" //电商名称
}
]
}
获取待付款订单剩余支付时间
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| orderId | 订单id | int | 0 | 是 |
| common_session_id | - | string | "" | 是 |
返回
result {
status: 1,
msg: '请求成功',
data: {
pastDate: 2015-11-11 11:11:11, //付款过期时间
serviceDate: 2015-11-11 11:11:10, //服务器时间
orderId: 123456
}
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)