简要描述:
- 确认订单
请求URL:
POST/wapapi/addons/execute/addons/store/controller/store/action/orderInfo
参数:
参数名 | 是否必须 | 类型 | 说明 | |
---|---|---|---|---|
order_tag | 是 | string | 购物车则填写cart,立即够买则填写buy_now | |
sku_list | 是 | array | sku信息,立即购买传参 | |
cart_id_list | 是 | array | 购物车id,购物车传参 | |
seckill_id | 否 | string | 秒杀活动id 立即购买 && 是秒杀商品 | |
record_id | 否 | string | 团购记录id 立即购买 && 是团购商品 | |
group_id | 否 | string | 团购id 不传则原价购买,传则发起团购或者参加团购 | |
address_id | 否 | int | 修改收货地址时传参 | |
presell_id | 否 | int | 参加预售则填写活动ID,没有则填写0 | |
channel_id | 否 | int | 渠道商id | |
shopkeeper_id | 否 | int | 微店店主id | |
is_deduction | 否 | int | 是否积分抵扣 0不抵扣 1抵扣 | |
lng | 否 | string | 经度 | (计时计次商品) |
lat | 否 | string | 纬度 | (计时计次商品) |
`` |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"order_tag":"buy_now",
"record_id":团购记录id,
"group_id":团购id,
"presell_id":"1", //预售活动ID
"is_deduction":"1" //是否积分抵扣
"sku_list":[
{
"sku_id":9,
"num":2
"seckill_id"://秒杀id
"channel_id":2//渠道商id
"discount_id":""//限时折扣活动id
"bargain_id":"1" //砍价活动id
"coupon_id":1//优惠券id
}
]
"address_id":""
}
1
2
3
4
5
6
7
8
9
10
11
{
"order_tag":"cart",
"cart_id_list":[19,29,21],
"address_id":"",
"sku_list":[//不使用优惠券不传
{
"sku_id":1,
"coupon_id":1//优惠券id
}
]
}
返回示例:
正确时返回:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"code": 1,
"message": "",
"data": {
"amount": 196 // 总应付金额
"goods_amount": 200 // 总商品小计
"total_shipping":0 // 总运费
"promotion_amount":5 //总优惠金额
"customform": [],//自定义表单
"address": {
"address_id": 21, // 收货地址id
"consigner": "guanxianshen", //收货人
"mobile": "15625043246", // 收货人手机
"province_name": "广东省", // 省名称
"city_name": "广州市", //市名称
"district_name": "天河区", // 区名称
"address_detail": "111", //详细地址
"zip_code": "", //邮编
"alias": ""
},
"record_id":'', // 拼团记录
"group_id":'',//团购id
"shop": [
{
"shop_id" 0,
"shop_name": "tim",// 店铺名称
"total_amount": 35.55, // 店铺应付金额()
"shipping_fee": 0 // 邮费
"amount_for_coupon_discount": 20, // 用于计算折扣类型的优惠券的优惠金额,且优惠券最大优惠金额为这个
"member_promotion":2, //店铺会员优惠总金额
"discount_promotion": 2,//店铺限时折扣优惠总金额
"goods_list": [
{
"sku_id": 32, // sku id
"goods_name":"爱疯x",// 商品名称
"num": 1, // 购买数目
"stock": 10, //库存
"price": "200.00", // 原价
"goods_id": 30, // 商品id
"channel_id":2,//渠道商id 暂时不加入购物车
"shop_id": 0, // 商品所属店铺id
"goods_pic": "http://sit.vslai.com/upload/26/common/1535527854.jpg",
"member_price": 20,
"discount_price": 10, // 最终结算单价
"discount_id": 24, // 限时折扣id
"seckill_id": "", // 秒杀id
"goods_type": 1,//实物或虚拟商品标志 1实物商品 0 虚拟商品 2 F码商品
"shipping_fee":0,//运费
"spec": [
{
"spec_value_name": "29/32", //规则值
"spec_name": "李维斯裤子" // 规则名称
}
]
},
{
"sku_id": 36,
"goods_name":"爱疯x",// 商品名称
"num": 1,
"stock": 111,
"price": "11.00",
"goods_id": 34,
"shop_id": 0,
"goods_pic": ""
"member_price": 1.1,
"discount_price": 0.55,
"discount_id": 24,
"seckill_id": "",
"goods_type": 1,//实物或虚拟商品标志 1实物商品 0 虚拟商品 2 F码商品
"shipping_fee":0,//运费
"spec": [
{
"spec_value_name": "29/32",
"spec_name": "李维斯裤子" //
}
]
}
],
"full_cut": {
"man_song_id": 32, //满减送id
"rule_id": 47, // 活动规则id
"man_song_name": "满减10-5", // 活动名称
"discount": "5.00", // 活动优惠金额
"price": "10.00", // 活动金额要求
"shop_id": 0, // 活动店铺id
"goods_limit": [],
"coupon_type_id": 0,
"give_point": 0,
"range_type": 1,
"free_shipping": 1 // 是否包邮,1包邮,0不包邮
},
"presell_info":{
"maxbuy": 32, //限购
"firstmoney": 47, // 定金
"allmoney": "321 // 预售总价
"presellnum": "5", // 限购库存
"vrnum": "10", // 虚拟库存
},
"coupon_list": [
{
"coupon_id": 460, // 优惠券id
"coupon_name": "1000-10", //
"coupon_genre": 1, // 优惠券类型,1无门槛,2门槛券,3折扣券
"shop_range_type": 1, //优惠券适用范围,1:直营店,2:全平台
"at_least": "0.00", // 2门槛券,3折扣券的金额要求
"money": "10.00", // 1无门槛,2门槛券 优惠金额
"discount": "0.00",// 3折扣券 折扣,amount_for_coupon_discount * discount / 10 = 优惠券优惠金额
"start_time": 1541433600, // 使用范围 开始时间
"end_time": 1543939195 // 使用范围 结束时间
},
{
"coupon_id": 462,
"coupon_name": "1000-10",
"coupon_genre": 1,
"shop_range_type": 2,
"at_least": "0.00",
"money": "10.00",
"discount": "0.00",
"start_time": 1541433600,
"end_time": 1543939195
}
],
"coupon_num": 7, // 可用数目
},
{
"shop_id":52
"shop_name": "kwan-kwan-kwan",
"total_amount": 10,
"amount_for_coupon_discount": 10,
"goods_list": [
{
"sku_id": 73,
"goods_name":"爱疯x",// 商品名称
"num": 1,
"stock": 100,
"price": "100.00",
"goods_id": 61,
"shop_id": 52,
"goods_pic": "http://sit.vslai.com/upload/26/52/common/1536136534.jpg",
"member_price": 10,
"discount_price": 10,
"discount_id": "",
"group_id": ""
}
],
"full_cut": {},
"coupon_list": [
{
"coupon_id": 460,
"coupon_name": "1000-10",
"coupon_genre": 1,
"at_least": "0.00",
"money": "10.00",
"discount": "0.00",
"start_time": 1541433600,
"end_time": 1543939195
},
{
"coupon_id": 461,
"coupon_name": "1000-10",
"coupon_genre": 1,
"at_least": "0.00",
"money": "10.00",
"discount": "0.00",
"start_time": 1541433600,
"end_time": 1543939195
}
],
"store_list": [{
"distance": 8510.59, //距离
"store_id": 11,
"shop_id": 0,
"website_id": 26,
"store_name": "天河公园", //店铺名
"store_tel": "020-2135435", //电话
"province_name": "广东省",
"city_name": "广州市",
"dictrict_name": "天河区",
"img_temp_array": [{
"pic_id": 1711,
"pic_cover": "http:\/\/gd3.alicdn.com\/imgextra\/i3\/57220545\/O1CN014PaYai1FteKlv5srF_!!57220545.jpg"
}],
"store_img": "http:\/\/gd3.alicdn.com\/imgextra\/i3\/57220lv5srF_!!57220545.jpg", //门店主图
"address": "天河公园wwwqeqwe", //门店地址
"lat": "23.134342",//纬度
"lng": "113.372621",//经度
"status": 1,
"start_time": "04:03",//营业开始时间
"finish_time": "22:04",//营业结束时间
"shop_name": "tim",
"score": 0
}, {
"distance": 8516.74,
"store_id": 10,
"shop_id": 0,
"website_id": 26,
"store_name": "海珠公园",
"store_tel": "123456",
"province_name": "广东省",
"city_name": "广州市",
"dictrict_name": "海珠区",
"img_temp_array": [{
"pic_id": 1709,
"pic_cover": "http:\/\/gd2.alicdn.com\/imgextra\/i2\/57220545\/O1CN01NcWHWA1FteKk6MUmi_!!57220545.jpg"
}],
"store_img": "http:\/\/gd2.alicdn.com\/imgextra\/i2\/57220545\/O1CN01NcWHWA1FteKk6MUmi_!!57220545.jpg",
"address": "海珠公园dsssad",
"lat": "23.072726",
"lng": "113.343228",
"status": 1,
"start_time": "06:00",
"finish_time": "22:00",
"shop_name": "tim",
"score": 0
}],
"coupon_num": 7,
"shipping_fee": 6,
"deduction_point": {
point: 930000,//会员积分
total_deduction_money: 30,//可抵扣金额
total_deduction_point: 30000//可抵扣积分
}
is_point_deduction": 1,
is_point": 1,
total_give_point": 10,
}
]
}
}
商品状态变化时(仍可进行购物)返回:
1
2
3
4
{
"code": 1,
"message": "对应状态变化提示的信息"// message 不为空时显示 message
}
商品状态变化时(不可进行购物)返回:
1
2
3
4
{
"code": -2,
"message": "对应状态变化提示的信息"
}
错误时返回:
1
2
3
4
{
"code": 0,
"message": "暂无数据"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
shops | array | 店铺下的商品信息 |
stock | int | 库存 |
sku_id | int | 规格ID |
seckill_id | int | 商品秒杀ID |
price | int | 价格 |
give_point | int | 积分 |
give_coupon | int | 赠送优惠券ID |
rule_id | int | 规则ID |
goods_id | int | 商品ID |
goods_name | int | 商品名 |
max_buy | int | 0则为不限制 |
num | int | 商品数量 |
picture_info | array | 图片信息 |
pic_id | int | 图片ID |
pic_cover | string | 图片路径 |
pic_size | string | 图片大小 |
pic_spec | string | 图片规格 |
total_goods | int | 商品总数 |
address_info | string | 地址信息 |
consigner | string | 收获姓名 |
mobile | string | 收货电话 |
mansong_info | array | 满减信息 |
discount_info | array | 折扣信息 |
free_money | int | 邮费 |
discount_name | string | 折扣信息名称 |
coupon_list | array | 店铺优惠券列表信息优惠券信息 |
coupon_list['start_time'] | string | 店铺优惠券开始时间 |
coupon_list['end_time'] | string | 店铺优惠券结束时间 |
coupon_list['coupon_name'] | string | 店铺优惠券名称 |
coupon_list['at_least'] | int | 满多少才能用 |
coupon_list['shop_range_type'] | int | 优惠券适用范围,1:直营店,2:全平台 |
coupon_list['desc'] | string | 优惠券描述 |
store_list | string | 卡券核销门店 |
deduction_point | string | 积分抵扣多少个 |
is_point_deduction | int | 是否开启积分抵扣: 0否 1是 |
is_point | int | 是否开启购物返积分: 0否 1是 |
total_give_point | string | 返积分多少个 |