wiki:app2.2.0/order

Version 11 (modified by wuyuanbo, 10 years ago) (diff)

--

订单

提交订单

线上:/appIntf/order/createOrder.jsp

说明

生成订单

使用场景:根据商品outerId和用户id生成订单

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
outerId商品outerIdstring""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
             orderId:  123456//订单id
        }
}

取消订单

线上:/appIntf/order/cancelOrder.jsp

说明

取消用户某个订单

使用场景:用户下单后取消订单

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
            orderId:123456 //取消订单的id
        }
}

确认收货

线上:/appIntf/order/confirmReceive.jsp

说明

将订单状态改为已收货

使用场景:用户收到该订单的商品将订单改为已收货

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
            orderId:123456 //修改的订单id
        }
}

用户订单列表

线上:/appIntf/order/orderList.jsp

说明

登陆用户的订单列表

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
pageNo第几页int1
pageSize一页的数据量int10
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: "美国亚马逊"      //电商名称
        }
    ]
}

获取待付款订单剩余支付时间

线上:/appIntf/order/payDate.jsp

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
orderId订单idint0
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
    }
}