购物流程接口需求描述
目录
1 提交订单ﻩ1
2 取消订单ﻩ2
3 删除订单ﻩ3
4 查询订单详情(根据订单id)ﻩ4
5 获得用户的订单信息。ﻩ6
6 根据订单id查询物流。ﻩ7
7 商品加入购物车。 8
8 获得购物车条目列表(根据用户id)。 9
9 删除购物车中的条目(根据cartid)。ﻩ10
10 修改购物车中某条目的数量。ﻩ11
11 购物车结算。 12
12 获取用户收货地址列表。 14
13 收货地址增删改查。ﻩ14
14设置默认收货地址。ﻩ14
15获取用户浏览商品的历史记录列表。ﻩ14
16获取推荐应用列表。ﻩ14
17意见反馈。ﻩ14
18版本更新。ﻩ15
1 提交订单
a、HTTP请求方式
POST
b、是否需要登录
ﻩture
c、支持格式
ﻩJSON
e、请求参数
参数名称
是否必须
类型
描述
mod
true
string
模块名称
code
true
string
方法名称
productid
true
string
商品id
productnum
true
string
商品数量
attressid
true
string
收货地址id
message
true
string
客户留言
attribute1
true
string
商品可选参数1
attribute2
true
string
商品可选参数2
attribute3
true
string
商品可选参数3
……
……
f、说明
ﻩ提交一个订单…
g、返回结果及数据字段说明
ﻩ{
"ret":0,
"msg":"ok",
"data":{
"orderid":"1",
}
}
ﻩ{
"ret":1,
"msg":"商品参数错误,没有这个参数选项。"
}
ﻩ{
"ret":1,
"msg":"商品参数错误,没有这个参数值。"
}
2 取消订单
a、HTTP请求方式
POST
b、是否需要登录
ture
c、支持格式
ﻩJSON
e、请求参数
参数名称
是否必须
类型
描述
mod
true
string
模块名称
code
true
string
方法名称
orderid
true
string
订单id
f、说明
ﻩ取消掉没有完成(及没有确定收货)订单。
g、返回结果及数据字段说明
ﻩ{
"ret":0,
"msg":"ok",
"data":{
ﻩﻩﻩ " orderid ":"1",
ﻩﻩ}
}
3 删除订单
a、HTTP请求方式
POST
b、是否需要登录
ﻩture
c、支持格式
ﻩJSON
e、请求参数
参数名称
是否必须
类型
描述
mod
true
string
模块名称
code
true
string
方法名称
orderid
true
string
订单id
f、说明
删除掉已经完成的订单(即已经付过款的商品)。
g、返回结果及数据字段说明
{
"ret":0,
"msg":"ok",
"data":{
ﻩﻩ " orderid ":"1",
ﻩﻩ}
}
4 查询订单详情(根据订单id)
a、HTTP请求方式
GET
b、是否需要登录
ﻩture
c、支持格式
JSON
e、请求参数
参数名称
是否必须
类型
描述
mod
true
string
模块名称
code
true
string
方法名称
orderid
true
string
商品id
f、说明
根据订单的id查询订单的详细信息。返回数据包括订单id、是否付过款、数量、可选属性的数组以及商品的详细信息。
g、返回结果及数据字段说明
{
"ret":0,
"msg":"ok",
"data":{
ﻩﻩ{
ﻩﻩ " orderid ":"1",
ﻩﻩ " productnum ":"1",
" ispaid ":"false",
" attributes ": [
ﻩﻩ {
ﻩ ﻩﻩ"attributeid": "1",
ﻩ "attributen
购物流程接口需求描述 来自淘豆网m.daumloan.com转载请标明出处.