add invoiceContentList
Showing
1 changed file
with
568 additions
and
545 deletions
1 | -## 1、获取用户可用的优惠券张数 ## | ||
2 | -#### 说明 | ||
3 | -获取用户可用的优惠券张数(app.Shopping.countUsableCoupon) | ||
4 | -#### 请求参数 | ||
5 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
7 | -|uid|int|否|3236556|0|用户id| | ||
8 | - | ||
9 | -### 请求示例 | ||
10 | -http://192.168.102.205:8080/gateway?method=app.Shopping.countUsableCoupon&uid=8041834&debug=XYZ | ||
11 | -### 响应 | ||
12 | -code为200即为成功,否则是失败。 | ||
13 | -响应JSON格式如下所示: | ||
14 | - | ||
15 | -```json | ||
16 | -{ | ||
17 | - "alg":"SALT_MD5", | ||
18 | - "code":200, | ||
19 | - "data":{"count":5}, | ||
20 | - "md5":"c1d725306fb09dcbf504776d276521cb", | ||
21 | - "message":"ok" | ||
22 | -} | ||
23 | -``` | ||
24 | - | ||
25 | -## 2、获取用户可用和不可用优惠券列表 ## | ||
26 | -#### 说明 | ||
27 | -获取用户优惠券列表,可用和不可用(app.Shopping.listCoupon) | ||
28 | -#### 请求参数 | ||
29 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
30 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
31 | -|uid|int|否|3236556|0|用户id| | ||
32 | - | ||
33 | -### 请求示例 | ||
34 | -http://192.168.102.205:8080/gateway?method=app.Shopping.listCoupon&uid=8041834&debug=XYZ | ||
35 | - | ||
36 | -### 响应 | ||
37 | -code为200即为成功,否则是失败。 | ||
38 | -响应JSON格式如下所示: | ||
39 | - | ||
40 | -```json | ||
41 | -{ | ||
42 | - "alg": "SALT_MD5", | ||
43 | - "code": 200, | ||
44 | - "data": { | ||
45 | - "usable_coupons":[ | ||
46 | - { | ||
47 | - "coupon_code": "amccccc", | ||
48 | - "coupon_name": "生日券", | ||
49 | - "coupon_type": "3", | ||
50 | - "coupon_validity": "2013.11.01-2017.01.31", | ||
51 | - "coupon_value": "55" | ||
52 | - } | ||
53 | - ], | ||
54 | - "unusable_coupons": [ | ||
55 | - { | ||
56 | - "coupon_code": "ambb2345", | ||
57 | - "coupon_name": "生日券", | ||
58 | - "coupon_type": "3", | ||
59 | - "coupon_validity": "2013.11.01-2017.01.31", | ||
60 | - "coupon_value": "55" | ||
61 | - } | ||
62 | - ] | ||
63 | - }, | ||
64 | - "md5": "c1d725306fb09dcbf504776d276521cb", | ||
65 | - "message": "ok" | ||
66 | -} | ||
67 | -``` | ||
68 | - | ||
69 | -## 3、购物车结算接口 ## | ||
70 | -#### 说明 | ||
71 | -购物车结算(app.Shopping.payment) | ||
72 | -#### 请求参数 | ||
73 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
74 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
75 | -|uid|int|否|3236556|0|用户id| | ||
76 | -|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
77 | -|yoho_coin_mode|int|是|1|1|是否使用yoho币,1使用,0不使用| | ||
78 | -|product_sku_list|string|是|[{'type':'limitcode','sku':307502,'limitproductcode':'2016030711453248','buy_number':1,'skn':51001888}]||购买限购商品| | ||
79 | - | ||
80 | -### 响应 | ||
81 | -code为200即为成功,否则是失败。 | ||
82 | -响应JSON格式如下所示: | ||
83 | - | ||
84 | -```json | ||
85 | -{ | ||
86 | - "alg": "SALT_MD5", | ||
87 | - "code": 200, | ||
88 | - "data": { | ||
89 | - "delivery_address": { | ||
90 | - "address": "南京", | ||
91 | - "address_id": "4555851", | ||
92 | - "area": "北京市 北京市 东城区", | ||
93 | - "area_code": "110101", | ||
94 | - "consignee": "123", | ||
95 | - "is_delivery": "Y", | ||
96 | - "is_support": "Y", | ||
97 | - "mobile": "139****4768", | ||
98 | - "phone": "" | ||
99 | - }, | ||
100 | - "delivery_time": [{ | ||
101 | - "default": "N", | ||
102 | - "delivery_time_id": 1, | ||
103 | - "delivery_time_string": "只工作日送货" | ||
104 | - }, { | ||
105 | - "default": "Y", | ||
106 | - "delivery_time_id": 2, | ||
107 | - "delivery_time_string": "工作日、双休日和节假日均送货" | ||
108 | - }, { | ||
109 | - "default": "N", | ||
110 | - "delivery_time_id": 3, | ||
111 | - "delivery_time_string": "只双休日、节假日送货(工作日不送货)" | ||
112 | - }], | ||
113 | - "delivery_way": [{ | ||
114 | - "default": "Y", | ||
115 | - "delivery_way_cost": 10, | ||
116 | - "delivery_way_id": 1, | ||
117 | - "delivery_way_name": "普通快递", | ||
118 | - "is_delivery": "Y", | ||
119 | - "is_support": "Y" | ||
120 | - }, { | ||
121 | - "default": "N", | ||
122 | - "delivery_way_cost": 15, | ||
123 | - "delivery_way_id": 2, | ||
124 | - "delivery_way_name": "顺丰速运", | ||
125 | - "is_delivery": "Y", | ||
126 | - "is_support": "Y" | ||
127 | - }], | ||
128 | - "goods_list": [{ | ||
129 | - "attribute": "1", | ||
130 | - "brand_id": "141", | ||
131 | - "buy_limit": 0, | ||
132 | - "buy_number": "1", | ||
133 | - "cn_alphabet": "TYAKASHABaiSeNanNvTongKuanJiaoYinJiRouJiBenKuanTXuAJN01T16XSAJN01W", | ||
134 | - "color_id": "1", | ||
135 | - "color_name": "白色", | ||
136 | - "expect_arrival_time": "", | ||
137 | - "fit_promotions": ["8479", "8477", "8475"], | ||
138 | - "get_yoho_coin": "0", | ||
139 | - "goods_id": "529095", | ||
140 | - "goods_images": "http://img10.static.yhbimg.com/goodsimg/2016/04/11/10/01717d13ad6eab0a039f013dfecdb0e4a7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
141 | - "goods_type": "ordinary", | ||
142 | - "is_advance": "N", | ||
143 | - "is_jit": "N", | ||
144 | - "is_limited": "N", | ||
145 | - "is_outlets": "N", | ||
146 | - "is_special": "N", | ||
147 | - "last_price": "168.0", | ||
148 | - "last_vip_price": 168, | ||
149 | - "market_price": 168, | ||
150 | - "max_sort_id": "1", | ||
151 | - "middle_sort_id": "11", | ||
152 | - "off_shelves": 0, | ||
153 | - "product_id": 417451, | ||
154 | - "product_name": "TYAKASHA 白色男女通款胶印肌肉基本款T恤 ", | ||
155 | - "product_skc": "373162", | ||
156 | - "product_skn": "51228710", | ||
157 | - "product_sku": "1164186", | ||
158 | - "promotion_flag": "108", | ||
159 | - "promotion_id": "0", | ||
160 | - "real_price": 168, | ||
161 | - "real_vip_price": 0, | ||
162 | - "sale_price": 0, | ||
163 | - "sales_price": 168, | ||
164 | - "selected": "Y", | ||
165 | - "shop_id": 0, | ||
166 | - "shopping_cart_goods_id": "106796919", | ||
167 | - "shopping_cart_id": "131919063", | ||
168 | - "size_id": "201", | ||
169 | - "size_name": "L", | ||
170 | - "small_sort_id": "114", | ||
171 | - "storage_number": "100", | ||
172 | - "str_subtotal": "¥168.00", | ||
173 | - "subtotal": 168, | ||
174 | - "supplier_id": 0, | ||
175 | - "uid": "10921691", | ||
176 | - "vip1_price": "159.60", | ||
177 | - "vip2_price": "151.20", | ||
178 | - "vip3_price": "147.84", | ||
179 | - "vip_discount": 1, | ||
180 | - "vip_discount_money": 0, | ||
181 | - "vip_discount_type": "1", | ||
182 | - "vip_price": 0, | ||
183 | - "yoho_coin_num": "0" | ||
184 | - }], | ||
185 | - "invoices": { | ||
186 | - "invoices_title": "", | ||
187 | - "invoices_type_id": 0, | ||
188 | - "invoices_type_list": [{ | ||
189 | - "invoices_type_id": 1, | ||
190 | - "invoices_type_name": "图书" | ||
191 | - }, { | ||
192 | - "invoices_type_id": 2, | ||
193 | - "invoices_type_name": "资料" | ||
194 | - }, { | ||
195 | - "invoices_type_id": 3, | ||
196 | - "invoices_type_name": "办公用品" | ||
197 | - }, { | ||
198 | - "invoices_type_id": 4, | ||
199 | - "invoices_type_name": "洗涤用品" | ||
200 | - }, { | ||
201 | - "invoices_type_id": 5, | ||
202 | - "invoices_type_name": "化妆品" | ||
203 | - }, { | ||
204 | - "invoices_type_id": 6, | ||
205 | - "invoices_type_name": "体育用品" | ||
206 | - }, { | ||
207 | - "invoices_type_id": 7, | ||
208 | - "invoices_type_name": "服装" | ||
209 | - }, { | ||
210 | - "invoices_type_id": 8, | ||
211 | - "invoices_type_name": "饰品" | ||
212 | - }, { | ||
213 | - "invoices_type_id": 9, | ||
214 | - "invoices_type_name": "配件" | ||
215 | - }, { | ||
216 | - "invoices_type_id": 10, | ||
217 | - "invoices_type_name": "数码产品" | ||
218 | - }], | ||
219 | - "invoices_type_name": "" | ||
220 | - }, | ||
221 | - "payment_way": [{ | ||
222 | - "default": "Y", | ||
223 | - "is_support": "Y", | ||
224 | - "payment_id": 15, | ||
225 | - "payment_name": "支付宝", | ||
226 | - "payment_type": 1, | ||
227 | - "payment_type_name": "在线支付(推荐)", | ||
228 | - "is_support_message":"" | ||
229 | - }, { | ||
230 | - "default": "N", | ||
231 | - "is_support": "Y", | ||
232 | - "payment_id": 0, | ||
233 | - "payment_name": "货到付款", | ||
234 | - "payment_type": 2, | ||
235 | - "payment_type_name": "货到付款", | ||
236 | - "is_support_message":"送货上门后再付款" | ||
237 | - }], | ||
238 | - "promo_code_enabled": 0, | ||
239 | - "shopping_cart_data": { | ||
240 | - "discount_amount": 0, | ||
241 | - "fast_shopping_cost": 15, | ||
242 | - "gain_yoho_coin": 0, | ||
243 | - "goods_count": 1, | ||
244 | - "last_order_amount": 178, | ||
245 | - "order_amount": 168, | ||
246 | - "promotion_formula": "总计¥178.00=商品金额¥168.00+运费¥10.00", | ||
247 | - "promotion_formula_list": [{ | ||
248 | - "promotion": "商品金额", | ||
249 | - "promotion_amount": "¥168.00" | ||
250 | - }, { | ||
251 | - "promotion": "运费", | ||
252 | - "promotion_amount": "+¥10.00" | ||
253 | - }], | ||
254 | - "selected_goods_count": 1, | ||
255 | - "shipping_cost": 10, | ||
256 | - "str_discount_amount": "¥0.00", | ||
257 | - "str_order_amount": "¥168.00", | ||
258 | - "is_multi_package":"Y", | ||
259 | - "package_list":[{ | ||
260 | - "supplier_id":"0", | ||
261 | - "goods_list":[{ | ||
262 | - "buy_number": "1", | ||
263 | - "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
264 | - "goods_type": "ordinary", | ||
265 | - "product_id": 329795, | ||
266 | - "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
267 | - "product_skc": "320280", | ||
268 | - "product_skn": "51184595", | ||
269 | - "product_sku": "1003938" | ||
270 | - }], | ||
271 | - "shopping_cost":3, | ||
272 | - "shopping_cut_cost": 7, | ||
273 | - "shopping_orig_cost:10 | ||
274 | - }, | ||
275 | - { | ||
276 | - "supplier_id":"23", | ||
277 | - "goods_list":[{ | ||
278 | - "buy_number": "1", | ||
279 | - "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
280 | - "goods_type": "gift", | ||
281 | - "product_id": 329795, | ||
282 | - "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
283 | - "product_skc": "320280", | ||
284 | - "product_skn": "51184595", | ||
285 | - "product_sku": "1003938" | ||
286 | - }], | ||
287 | - "shopping_cost":3, | ||
288 | - "shopping_cut_cost": 7, | ||
289 | - "shopping_orig_cost:10 | ||
290 | - }] | ||
291 | - }, | ||
292 | - "shopping_cart_tag": "3613572d1571f9cf448e3dacb8ec4c37", | ||
293 | - "uid": 10921691, | ||
294 | - "use_yoho_coin": 0, | ||
295 | - "yoho_coin": 0 | ||
296 | - }, | ||
297 | - "md5": "3c89d2af5917a0f12070df8281b39fe8", | ||
298 | - "message": "payment data." | ||
299 | -} | ||
300 | -``` | ||
301 | -## 4、购物车compute接口 ## | ||
302 | -#### 说明 | ||
303 | -购物车结算(app.Shopping.compute) | ||
304 | -#### 请求参数 | ||
305 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
306 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
307 | -|uid|int|否|3236556|0|用户id| | ||
308 | -|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
309 | -|yoho_coin_mode|int|是|1|1|是否使用yoho币,1使用,0不使用| | ||
310 | -|payment_type|int|否|1|1|支付方式,1 在线支付 2 货到付款| | ||
311 | -|delivery_way|int|否|1|1|快递方式,1 普通 2 加急| | ||
312 | -|use_yoho_coin|double|是|1.00||使用的yoho币金额,单位元| | ||
313 | -|use_red_envelopes|double|是|1.00||使用的红包,单位元| | ||
314 | -|coupon_code|string|是|b123456||优惠券code| | ||
315 | -|promotion_code|string|是|1345abc||优惠码code| | ||
316 | -|product_sku_list|string|是|[{'type':'limitcode','sku':307502,'limitproductcode':'2016030711453248','buy_number':1,'skn':51001888}]||购买限购商品| | ||
317 | - | ||
318 | -### 响应 | ||
319 | -code为200即为成功,否则是失败。 | ||
320 | -响应JSON格式如下所示: | ||
321 | - | ||
322 | -```json | ||
323 | -{ | ||
324 | - "alg": "SALT_MD5", | ||
325 | - "code": 200, | ||
326 | - "data": { | ||
327 | - "coupon_amount": 0, | ||
328 | - "delivery_way": [{ | ||
329 | - "default": "Y", | ||
330 | - "delivery_way_cost": 0, | ||
331 | - "delivery_way_id": 1, | ||
332 | - "delivery_way_name": "普通快递", | ||
333 | - "is_delivery": "Y", | ||
334 | - "is_support": "Y" | ||
335 | - }, { | ||
336 | - "default": "N", | ||
337 | - "delivery_way_cost": 5, | ||
338 | - "delivery_way_id": 2, | ||
339 | - "delivery_way_name": "顺丰速运", | ||
340 | - "is_delivery": "Y", | ||
341 | - "is_support": "Y" | ||
342 | - }], | ||
343 | - "discount_amount": 0, | ||
344 | - "fast_shopping_cost": 5, | ||
345 | - "gain_yoho_coin": 0, | ||
346 | - "goods_count": 4, | ||
347 | - "last_order_amount": 340, | ||
348 | - "order_amount": 335, | ||
349 | - "payment_way": [{ | ||
350 | - "default": "Y", | ||
351 | - "is_support": "Y", | ||
352 | - "is_support_message": "", | ||
353 | - "payment_id": 15, | ||
354 | - "payment_name": "支付宝", | ||
355 | - "payment_type": 1, | ||
356 | - "payment_type_name": "在线支付(推荐)" | ||
357 | - }, { | ||
358 | - "default": "N", | ||
359 | - "is_support": "Y", | ||
360 | - "is_support_message": "送货上门后再付款", | ||
361 | - "payment_id": 0, | ||
362 | - "payment_name": "货到付款", | ||
363 | - "payment_type": 2, | ||
364 | - "payment_type_name": "货到付款" | ||
365 | - }], | ||
366 | - "promotion_formula": "总计¥340.00=商品金额¥335.00+运费¥5.00", | ||
367 | - "promotion_formula_list": [{ | ||
368 | - "promotion": "商品金额", | ||
369 | - "promotion_amount": "¥335.00" | ||
370 | - }, { | ||
371 | - "promotion": "运费", | ||
372 | - "promotion_amount": "+¥5.00" | ||
373 | - }], | ||
374 | - "selected_goods_count": 2, | ||
375 | - "shipping_cost": 0, | ||
376 | - "str_discount_amount": "¥0.00", | ||
377 | - "str_order_amount": "¥335.00", | ||
378 | - "use_red_envelopes": 0, | ||
379 | - "use_yoho_coin": 0, | ||
380 | - "is_multi_package":"Y", | ||
381 | - "package_list":[{ | ||
382 | - "supplier_id":"0", | ||
383 | - "goods_list":[{ | ||
384 | - "buy_number": "1", | ||
385 | - "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
386 | - "goods_type": "ordinary", | ||
387 | - "product_id": 329795, | ||
388 | - "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
389 | - "product_skc": "320280", | ||
390 | - "product_skn": "51184595", | ||
391 | - "product_sku": "1003938" | ||
392 | - }], | ||
393 | - "shopping_cost":3, | ||
394 | - "shopping_cut_cost": 7, | ||
395 | - "shopping_orig_cost:10 | ||
396 | - }, | ||
397 | - { | ||
398 | - "supplier_id":"23", | ||
399 | - "goods_list":[{ | ||
400 | - "buy_number": "1", | ||
401 | - "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
402 | - "goods_type": "gift", | ||
403 | - "product_id": 329795, | ||
404 | - "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
405 | - "product_skc": "320280", | ||
406 | - "product_skn": "51184595", | ||
407 | - "product_sku": "1003938" | ||
408 | - }], | ||
409 | - "shopping_cost":3, | ||
410 | - "shopping_cut_cost": 7, | ||
411 | - "shopping_orig_cost:10 | ||
412 | - }] | ||
413 | - }, | ||
414 | - "md5": "c743135bb9ee4afe3c522c59e64604ea", | ||
415 | - "message": "compute list." | ||
416 | -} | ||
417 | -``` | ||
418 | -## 5、虚拟购物车电子票下单接口 ## | ||
419 | -#### 说明 | ||
420 | -虚拟购物车电子票下单(method=app.Shopping.submitTicket) | ||
421 | -#### 请求参数 | ||
422 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
423 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
424 | -|uid|int|否|3236556|0|用户id| | ||
425 | -|product_sku|int|否|3236556|0|电子票sku| | ||
426 | -|use_yoho_coin|double|否|20|0|用户购买电子票使用的yoho币| | ||
427 | -|mobile|string|否|18913002600|0|用户手机号| | ||
428 | - | ||
429 | -### 响应 | ||
430 | -code为200即为成功,否则是失败。 | ||
431 | -响应JSON格式如下所示: | ||
432 | - | ||
433 | -```json | ||
434 | -{ | ||
435 | - "alg":"SALT_MD5", | ||
436 | - "code":200, | ||
437 | - "data":{ | ||
438 | - "order_amount": 0, | ||
439 | - "order_code": 1607472960, | ||
440 | - "payment_status": 1 | ||
441 | - }, | ||
442 | - "md5":"c1d725306fb09dcbf504776d276521cb", | ||
443 | - "message":"ok" | ||
444 | -} | ||
445 | -``` | ||
446 | -## 6、虚拟购物车电子票立即购买接口 ## | ||
447 | -#### 说明 | ||
448 | -虚拟购物车电子票立即购买(method=app.Shopping.ticket) | ||
449 | -#### 请求参数 | ||
450 | -| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
451 | -|:-------| -----:|-----:|-----:|-----:|----:| | ||
452 | -|uid|int|否|3236556|0|用户id| | ||
453 | -|product_sku|int|否|3236556|0|电子票sku| | ||
454 | -|use_yoho_coin|double|否|20|0|用户购买电子票使用的yoho币| | ||
455 | - | ||
456 | -### 响应 | ||
457 | -code为200即为成功,否则是失败。 | ||
458 | -响应JSON格式如下所示: | ||
459 | - | ||
460 | -```json | ||
461 | -{ | ||
462 | - "alg":"SALT_MD5", | ||
463 | - "code":200, | ||
464 | - "data":{ | ||
465 | - "goods_list": [ | ||
466 | - { | ||
467 | - "attribute": "3", | ||
468 | - "brand_id": "730", | ||
469 | - "buy_limit": 0, | ||
470 | - "buy_number": "1", | ||
471 | - "can_cod_pay": "Y", | ||
472 | - "cn_alphabet": "XiangDuiLunXiaJiXinKuanFuGuHeYeBianXiuChunSeLianYiQunYuanChuangSheJiChouZhouYuanLingChangQunFD232", | ||
473 | - "color_id": "11", | ||
474 | - "color_name": "红色", | ||
475 | - "expect_arrival_time": "", | ||
476 | - "fit_promotions": [], | ||
477 | - "get_yoho_coin": "0", | ||
478 | - "goods_id": "293003", | ||
479 | - "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/07/16/08/01b0816a39106c40c054b45980d18b3ff1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
480 | - "goods_type": "ordinary", | ||
481 | - "is_advance": "N", | ||
482 | - "is_jit": "N", | ||
483 | - "is_limited": "N", | ||
484 | - "is_outlets": "B", | ||
485 | - "is_special": "N", | ||
486 | - "last_price": "229.0", | ||
487 | - "last_vip_price": 229, | ||
488 | - "market_price": 479, | ||
489 | - "max_sort_id": "4", | ||
490 | - "middle_sort_id": "31", | ||
491 | - "off_shelves": 0, | ||
492 | - "product_id": 221541, | ||
493 | - "product_name": "相对纶 原创设计抽皱圆领长裙", | ||
494 | - "product_skc": "247803", | ||
495 | - "product_skn": "51125575", | ||
496 | - "product_sku": "803801", | ||
497 | - "promotion_flag": "101", | ||
498 | - "promotion_id": "0", | ||
499 | - "real_price": 229, | ||
500 | - "real_vip_price": 0, | ||
501 | - "sale_price": 0, | ||
502 | - "sales_price": 229, | ||
503 | - "selected": "Y", | ||
504 | - "shop_id": 0, | ||
505 | - "shopping_cart_goods_id": "0", | ||
506 | - "shopping_cart_id": "0", | ||
507 | - "size_id": "207", | ||
508 | - "size_name": "S", | ||
509 | - "small_sort_id": "134", | ||
510 | - "storage_number": "10", | ||
511 | - "str_subtotal": "¥229.00", | ||
512 | - "subtotal": 229, | ||
513 | - "supplier_id": 0, | ||
514 | - "vip1_price": "0.00", | ||
515 | - "vip2_price": "0.00", | ||
516 | - "vip3_price": "0.00", | ||
517 | - "vip_discount": 1, | ||
518 | - "vip_discount_money": 0, | ||
519 | - "vip_discount_type": "3", | ||
520 | - "vip_price": 0, | ||
521 | - "yoho_coin_num": "0" | ||
522 | - } | ||
523 | - ], | ||
524 | - "shopping_cart_data": { | ||
525 | - "goods_count": 1, | ||
526 | - "last_order_amount": 129, | ||
527 | - "order_amount": 229, | ||
528 | - "promotion_formula_list": [ | ||
529 | - { | ||
530 | - "promotion": "商品金额", | ||
531 | - "promotion_amount": "¥229.00" | ||
532 | - }, | ||
533 | - { | ||
534 | - "promotion": "YOHO币", | ||
535 | - "promotion_amount": "-¥100.00" | ||
536 | - } | ||
537 | - ], | ||
538 | - "use_yoho_coin": 100 | ||
539 | - }, | ||
540 | - "uid": 8041834, | ||
541 | - "yoho_coin": 171 | ||
542 | - }, | ||
543 | - "md5":"c1d725306fb09dcbf504776d276521cb", | ||
544 | - "message":"ok" | ||
545 | -} | 1 | +## 1、获取用户可用的优惠券张数 ## |
2 | +#### 说明 | ||
3 | +获取用户可用的优惠券张数(app.Shopping.countUsableCoupon) | ||
4 | +#### 请求参数 | ||
5 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
7 | +|uid|int|否|3236556|0|用户id| | ||
8 | + | ||
9 | +### 请求示例 | ||
10 | +http://192.168.102.205:8080/gateway?method=app.Shopping.countUsableCoupon&uid=8041834&debug=XYZ | ||
11 | +### 响应 | ||
12 | +code为200即为成功,否则是失败。 | ||
13 | +响应JSON格式如下所示: | ||
14 | + | ||
15 | +```json | ||
16 | +{ | ||
17 | + "alg":"SALT_MD5", | ||
18 | + "code":200, | ||
19 | + "data":{"count":5}, | ||
20 | + "md5":"c1d725306fb09dcbf504776d276521cb", | ||
21 | + "message":"ok" | ||
22 | +} | ||
23 | +``` | ||
24 | + | ||
25 | +## 2、获取用户可用和不可用优惠券列表 ## | ||
26 | +#### 说明 | ||
27 | +获取用户优惠券列表,可用和不可用(app.Shopping.listCoupon) | ||
28 | +#### 请求参数 | ||
29 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
30 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
31 | +|uid|int|否|3236556|0|用户id| | ||
32 | + | ||
33 | +### 请求示例 | ||
34 | +http://192.168.102.205:8080/gateway?method=app.Shopping.listCoupon&uid=8041834&debug=XYZ | ||
35 | + | ||
36 | +### 响应 | ||
37 | +code为200即为成功,否则是失败。 | ||
38 | +响应JSON格式如下所示: | ||
39 | + | ||
40 | +```json | ||
41 | +{ | ||
42 | + "alg": "SALT_MD5", | ||
43 | + "code": 200, | ||
44 | + "data": { | ||
45 | + "usable_coupons":[ | ||
46 | + { | ||
47 | + "coupon_code": "amccccc", | ||
48 | + "coupon_name": "生日券", | ||
49 | + "coupon_type": "3", | ||
50 | + "coupon_validity": "2013.11.01-2017.01.31", | ||
51 | + "coupon_value": "55" | ||
52 | + } | ||
53 | + ], | ||
54 | + "unusable_coupons": [ | ||
55 | + { | ||
56 | + "coupon_code": "ambb2345", | ||
57 | + "coupon_name": "生日券", | ||
58 | + "coupon_type": "3", | ||
59 | + "coupon_validity": "2013.11.01-2017.01.31", | ||
60 | + "coupon_value": "55" | ||
61 | + } | ||
62 | + ] | ||
63 | + }, | ||
64 | + "md5": "c1d725306fb09dcbf504776d276521cb", | ||
65 | + "message": "ok" | ||
66 | +} | ||
67 | +``` | ||
68 | + | ||
69 | +## 3、购物车结算接口 ## | ||
70 | +#### 说明 | ||
71 | +购物车结算(app.Shopping.payment) | ||
72 | +#### 请求参数 | ||
73 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
74 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
75 | +|uid|int|否|3236556|0|用户id| | ||
76 | +|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
77 | +|yoho_coin_mode|int|是|1|1|是否使用yoho币,1使用,0不使用| | ||
78 | +|product_sku_list|string|是|[{'type':'limitcode','sku':307502,'limitproductcode':'2016030711453248','buy_number':1,'skn':51001888}]||购买限购商品| | ||
79 | + | ||
80 | +### 响应 | ||
81 | +code为200即为成功,否则是失败。 | ||
82 | +响应JSON格式如下所示: | ||
83 | + | ||
84 | +```json | ||
85 | +{ | ||
86 | + "alg": "SALT_MD5", | ||
87 | + "code": 200, | ||
88 | + "data": { | ||
89 | + "delivery_address": { | ||
90 | + "address": "南京", | ||
91 | + "address_id": "4555851", | ||
92 | + "area": "北京市 北京市 东城区", | ||
93 | + "area_code": "110101", | ||
94 | + "consignee": "123", | ||
95 | + "is_delivery": "Y", | ||
96 | + "is_support": "Y", | ||
97 | + "mobile": "139****4768", | ||
98 | + "phone": "" | ||
99 | + }, | ||
100 | + "delivery_time": [{ | ||
101 | + "default": "N", | ||
102 | + "delivery_time_id": 1, | ||
103 | + "delivery_time_string": "只工作日送货" | ||
104 | + }, { | ||
105 | + "default": "Y", | ||
106 | + "delivery_time_id": 2, | ||
107 | + "delivery_time_string": "工作日、双休日和节假日均送货" | ||
108 | + }, { | ||
109 | + "default": "N", | ||
110 | + "delivery_time_id": 3, | ||
111 | + "delivery_time_string": "只双休日、节假日送货(工作日不送货)" | ||
112 | + }], | ||
113 | + "delivery_way": [{ | ||
114 | + "default": "Y", | ||
115 | + "delivery_way_cost": 10, | ||
116 | + "delivery_way_id": 1, | ||
117 | + "delivery_way_name": "普通快递", | ||
118 | + "is_delivery": "Y", | ||
119 | + "is_support": "Y" | ||
120 | + }, { | ||
121 | + "default": "N", | ||
122 | + "delivery_way_cost": 15, | ||
123 | + "delivery_way_id": 2, | ||
124 | + "delivery_way_name": "顺丰速运", | ||
125 | + "is_delivery": "Y", | ||
126 | + "is_support": "Y" | ||
127 | + }], | ||
128 | + "goods_list": [{ | ||
129 | + "attribute": "1", | ||
130 | + "brand_id": "141", | ||
131 | + "buy_limit": 0, | ||
132 | + "buy_number": "1", | ||
133 | + "cn_alphabet": "TYAKASHABaiSeNanNvTongKuanJiaoYinJiRouJiBenKuanTXuAJN01T16XSAJN01W", | ||
134 | + "color_id": "1", | ||
135 | + "color_name": "白色", | ||
136 | + "expect_arrival_time": "", | ||
137 | + "fit_promotions": ["8479", "8477", "8475"], | ||
138 | + "get_yoho_coin": "0", | ||
139 | + "goods_id": "529095", | ||
140 | + "goods_images": "http://img10.static.yhbimg.com/goodsimg/2016/04/11/10/01717d13ad6eab0a039f013dfecdb0e4a7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
141 | + "goods_type": "ordinary", | ||
142 | + "is_advance": "N", | ||
143 | + "is_jit": "N", | ||
144 | + "is_limited": "N", | ||
145 | + "is_outlets": "N", | ||
146 | + "is_special": "N", | ||
147 | + "last_price": "168.0", | ||
148 | + "last_vip_price": 168, | ||
149 | + "market_price": 168, | ||
150 | + "max_sort_id": "1", | ||
151 | + "middle_sort_id": "11", | ||
152 | + "off_shelves": 0, | ||
153 | + "product_id": 417451, | ||
154 | + "product_name": "TYAKASHA 白色男女通款胶印肌肉基本款T恤 ", | ||
155 | + "product_skc": "373162", | ||
156 | + "product_skn": "51228710", | ||
157 | + "product_sku": "1164186", | ||
158 | + "promotion_flag": "108", | ||
159 | + "promotion_id": "0", | ||
160 | + "real_price": 168, | ||
161 | + "real_vip_price": 0, | ||
162 | + "sale_price": 0, | ||
163 | + "sales_price": 168, | ||
164 | + "selected": "Y", | ||
165 | + "shop_id": 0, | ||
166 | + "shopping_cart_goods_id": "106796919", | ||
167 | + "shopping_cart_id": "131919063", | ||
168 | + "size_id": "201", | ||
169 | + "size_name": "L", | ||
170 | + "small_sort_id": "114", | ||
171 | + "storage_number": "100", | ||
172 | + "str_subtotal": "¥168.00", | ||
173 | + "subtotal": 168, | ||
174 | + "supplier_id": 0, | ||
175 | + "uid": "10921691", | ||
176 | + "vip1_price": "159.60", | ||
177 | + "vip2_price": "151.20", | ||
178 | + "vip3_price": "147.84", | ||
179 | + "vip_discount": 1, | ||
180 | + "vip_discount_money": 0, | ||
181 | + "vip_discount_type": "1", | ||
182 | + "vip_price": 0, | ||
183 | + "yoho_coin_num": "0" | ||
184 | + }], | ||
185 | + "invoices": { | ||
186 | + "invoices_title": "", | ||
187 | + "invoices_type_id": 0, | ||
188 | + "invoices_type_list": [{ | ||
189 | + "invoices_type_id": 1, | ||
190 | + "invoices_type_name": "图书" | ||
191 | + }, { | ||
192 | + "invoices_type_id": 2, | ||
193 | + "invoices_type_name": "资料" | ||
194 | + }, { | ||
195 | + "invoices_type_id": 3, | ||
196 | + "invoices_type_name": "办公用品" | ||
197 | + }, { | ||
198 | + "invoices_type_id": 4, | ||
199 | + "invoices_type_name": "洗涤用品" | ||
200 | + }, { | ||
201 | + "invoices_type_id": 5, | ||
202 | + "invoices_type_name": "化妆品" | ||
203 | + }, { | ||
204 | + "invoices_type_id": 6, | ||
205 | + "invoices_type_name": "体育用品" | ||
206 | + }, { | ||
207 | + "invoices_type_id": 7, | ||
208 | + "invoices_type_name": "服装" | ||
209 | + }, { | ||
210 | + "invoices_type_id": 8, | ||
211 | + "invoices_type_name": "饰品" | ||
212 | + }, { | ||
213 | + "invoices_type_id": 9, | ||
214 | + "invoices_type_name": "配件" | ||
215 | + }, { | ||
216 | + "invoices_type_id": 10, | ||
217 | + "invoices_type_name": "数码产品" | ||
218 | + }], | ||
219 | + "invoiceContentList": -- 发票内容 | ||
220 | + [{ | ||
221 | + "invoices_type_id": 1, | ||
222 | + "invoices_type_name": "服装" | ||
223 | + }, { | ||
224 | + "invoices_type_id": 2, | ||
225 | + "invoices_type_name": "图书" | ||
226 | + }, { | ||
227 | + "invoices_type_id": 3, | ||
228 | + "invoices_type_name": "配件" | ||
229 | + }, { | ||
230 | + "invoices_type_id": 4, | ||
231 | + "invoices_type_name": "日用品" | ||
232 | + }, { | ||
233 | + "invoices_type_id": 5, | ||
234 | + "invoices_type_name": "办公用品" | ||
235 | + }, { | ||
236 | + "invoices_type_id": 6, | ||
237 | + "invoices_type_name": "体育用品" | ||
238 | + }, { | ||
239 | + "invoices_type_id": 7, | ||
240 | + "invoices_type_name": "数码产品" | ||
241 | + }], | ||
242 | + "invoices_type_name": "" | ||
243 | + }, | ||
244 | + "payment_way": [{ | ||
245 | + "default": "Y", | ||
246 | + "is_support": "Y", | ||
247 | + "payment_id": 15, | ||
248 | + "payment_name": "支付宝", | ||
249 | + "payment_type": 1, | ||
250 | + "payment_type_name": "在线支付(推荐)", | ||
251 | + "is_support_message":"" | ||
252 | + }, { | ||
253 | + "default": "N", | ||
254 | + "is_support": "Y", | ||
255 | + "payment_id": 0, | ||
256 | + "payment_name": "货到付款", | ||
257 | + "payment_type": 2, | ||
258 | + "payment_type_name": "货到付款", | ||
259 | + "is_support_message":"送货上门后再付款" | ||
260 | + }], | ||
261 | + "promo_code_enabled": 0, | ||
262 | + "shopping_cart_data": { | ||
263 | + "discount_amount": 0, | ||
264 | + "fast_shopping_cost": 15, | ||
265 | + "gain_yoho_coin": 0, | ||
266 | + "goods_count": 1, | ||
267 | + "last_order_amount": 178, | ||
268 | + "order_amount": 168, | ||
269 | + "promotion_formula": "总计¥178.00=商品金额¥168.00+运费¥10.00", | ||
270 | + "promotion_formula_list": [{ | ||
271 | + "promotion": "商品金额", | ||
272 | + "promotion_amount": "¥168.00" | ||
273 | + }, { | ||
274 | + "promotion": "运费", | ||
275 | + "promotion_amount": "+¥10.00" | ||
276 | + }], | ||
277 | + "selected_goods_count": 1, | ||
278 | + "shipping_cost": 10, | ||
279 | + "str_discount_amount": "¥0.00", | ||
280 | + "str_order_amount": "¥168.00", | ||
281 | + "is_multi_package":"Y", | ||
282 | + "package_list":[{ | ||
283 | + "supplier_id":"0", | ||
284 | + "goods_list":[{ | ||
285 | + "buy_number": "1", | ||
286 | + "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
287 | + "goods_type": "ordinary", | ||
288 | + "product_id": 329795, | ||
289 | + "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
290 | + "product_skc": "320280", | ||
291 | + "product_skn": "51184595", | ||
292 | + "product_sku": "1003938" | ||
293 | + }], | ||
294 | + "shopping_cost":3, | ||
295 | + "shopping_cut_cost": 7, | ||
296 | + "shopping_orig_cost:10 | ||
297 | + }, | ||
298 | + { | ||
299 | + "supplier_id":"23", | ||
300 | + "goods_list":[{ | ||
301 | + "buy_number": "1", | ||
302 | + "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
303 | + "goods_type": "gift", | ||
304 | + "product_id": 329795, | ||
305 | + "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
306 | + "product_skc": "320280", | ||
307 | + "product_skn": "51184595", | ||
308 | + "product_sku": "1003938" | ||
309 | + }], | ||
310 | + "shopping_cost":3, | ||
311 | + "shopping_cut_cost": 7, | ||
312 | + "shopping_orig_cost:10 | ||
313 | + }] | ||
314 | + }, | ||
315 | + "shopping_cart_tag": "3613572d1571f9cf448e3dacb8ec4c37", | ||
316 | + "uid": 10921691, | ||
317 | + "use_yoho_coin": 0, | ||
318 | + "yoho_coin": 0 | ||
319 | + }, | ||
320 | + "md5": "3c89d2af5917a0f12070df8281b39fe8", | ||
321 | + "message": "payment data." | ||
322 | +} | ||
323 | +``` | ||
324 | +## 4、购物车compute接口 ## | ||
325 | +#### 说明 | ||
326 | +购物车结算(app.Shopping.compute) | ||
327 | +#### 请求参数 | ||
328 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
329 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
330 | +|uid|int|否|3236556|0|用户id| | ||
331 | +|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
332 | +|yoho_coin_mode|int|是|1|1|是否使用yoho币,1使用,0不使用| | ||
333 | +|payment_type|int|否|1|1|支付方式,1 在线支付 2 货到付款| | ||
334 | +|delivery_way|int|否|1|1|快递方式,1 普通 2 加急| | ||
335 | +|use_yoho_coin|double|是|1.00||使用的yoho币金额,单位元| | ||
336 | +|use_red_envelopes|double|是|1.00||使用的红包,单位元| | ||
337 | +|coupon_code|string|是|b123456||优惠券code| | ||
338 | +|promotion_code|string|是|1345abc||优惠码code| | ||
339 | +|product_sku_list|string|是|[{'type':'limitcode','sku':307502,'limitproductcode':'2016030711453248','buy_number':1,'skn':51001888}]||购买限购商品| | ||
340 | + | ||
341 | +### 响应 | ||
342 | +code为200即为成功,否则是失败。 | ||
343 | +响应JSON格式如下所示: | ||
344 | + | ||
345 | +```json | ||
346 | +{ | ||
347 | + "alg": "SALT_MD5", | ||
348 | + "code": 200, | ||
349 | + "data": { | ||
350 | + "coupon_amount": 0, | ||
351 | + "delivery_way": [{ | ||
352 | + "default": "Y", | ||
353 | + "delivery_way_cost": 0, | ||
354 | + "delivery_way_id": 1, | ||
355 | + "delivery_way_name": "普通快递", | ||
356 | + "is_delivery": "Y", | ||
357 | + "is_support": "Y" | ||
358 | + }, { | ||
359 | + "default": "N", | ||
360 | + "delivery_way_cost": 5, | ||
361 | + "delivery_way_id": 2, | ||
362 | + "delivery_way_name": "顺丰速运", | ||
363 | + "is_delivery": "Y", | ||
364 | + "is_support": "Y" | ||
365 | + }], | ||
366 | + "discount_amount": 0, | ||
367 | + "fast_shopping_cost": 5, | ||
368 | + "gain_yoho_coin": 0, | ||
369 | + "goods_count": 4, | ||
370 | + "last_order_amount": 340, | ||
371 | + "order_amount": 335, | ||
372 | + "payment_way": [{ | ||
373 | + "default": "Y", | ||
374 | + "is_support": "Y", | ||
375 | + "is_support_message": "", | ||
376 | + "payment_id": 15, | ||
377 | + "payment_name": "支付宝", | ||
378 | + "payment_type": 1, | ||
379 | + "payment_type_name": "在线支付(推荐)" | ||
380 | + }, { | ||
381 | + "default": "N", | ||
382 | + "is_support": "Y", | ||
383 | + "is_support_message": "送货上门后再付款", | ||
384 | + "payment_id": 0, | ||
385 | + "payment_name": "货到付款", | ||
386 | + "payment_type": 2, | ||
387 | + "payment_type_name": "货到付款" | ||
388 | + }], | ||
389 | + "promotion_formula": "总计¥340.00=商品金额¥335.00+运费¥5.00", | ||
390 | + "promotion_formula_list": [{ | ||
391 | + "promotion": "商品金额", | ||
392 | + "promotion_amount": "¥335.00" | ||
393 | + }, { | ||
394 | + "promotion": "运费", | ||
395 | + "promotion_amount": "+¥5.00" | ||
396 | + }], | ||
397 | + "selected_goods_count": 2, | ||
398 | + "shipping_cost": 0, | ||
399 | + "str_discount_amount": "¥0.00", | ||
400 | + "str_order_amount": "¥335.00", | ||
401 | + "use_red_envelopes": 0, | ||
402 | + "use_yoho_coin": 0, | ||
403 | + "is_multi_package":"Y", | ||
404 | + "package_list":[{ | ||
405 | + "supplier_id":"0", | ||
406 | + "goods_list":[{ | ||
407 | + "buy_number": "1", | ||
408 | + "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
409 | + "goods_type": "ordinary", | ||
410 | + "product_id": 329795, | ||
411 | + "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
412 | + "product_skc": "320280", | ||
413 | + "product_skn": "51184595", | ||
414 | + "product_sku": "1003938" | ||
415 | + }], | ||
416 | + "shopping_cost":3, | ||
417 | + "shopping_cut_cost": 7, | ||
418 | + "shopping_orig_cost:10 | ||
419 | + }, | ||
420 | + { | ||
421 | + "supplier_id":"23", | ||
422 | + "goods_list":[{ | ||
423 | + "buy_number": "1", | ||
424 | + "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/23/07/0115f6f0e2ca345d2b413396202f97c8b5.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
425 | + "goods_type": "gift", | ||
426 | + "product_id": 329795, | ||
427 | + "product_name": "Blackbird 黑鸟锥形香-Ai香型", | ||
428 | + "product_skc": "320280", | ||
429 | + "product_skn": "51184595", | ||
430 | + "product_sku": "1003938" | ||
431 | + }], | ||
432 | + "shopping_cost":3, | ||
433 | + "shopping_cut_cost": 7, | ||
434 | + "shopping_orig_cost:10 | ||
435 | + }] | ||
436 | + }, | ||
437 | + "md5": "c743135bb9ee4afe3c522c59e64604ea", | ||
438 | + "message": "compute list." | ||
439 | +} | ||
440 | +``` | ||
441 | +## 5、虚拟购物车电子票下单接口 ## | ||
442 | +#### 说明 | ||
443 | +虚拟购物车电子票下单(method=app.Shopping.submitTicket) | ||
444 | +#### 请求参数 | ||
445 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
446 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
447 | +|uid|int|否|3236556|0|用户id| | ||
448 | +|product_sku|int|否|3236556|0|电子票sku| | ||
449 | +|use_yoho_coin|double|否|20|0|用户购买电子票使用的yoho币| | ||
450 | +|mobile|string|否|18913002600|0|用户手机号| | ||
451 | + | ||
452 | +### 响应 | ||
453 | +code为200即为成功,否则是失败。 | ||
454 | +响应JSON格式如下所示: | ||
455 | + | ||
456 | +```json | ||
457 | +{ | ||
458 | + "alg":"SALT_MD5", | ||
459 | + "code":200, | ||
460 | + "data":{ | ||
461 | + "order_amount": 0, | ||
462 | + "order_code": 1607472960, | ||
463 | + "payment_status": 1 | ||
464 | + }, | ||
465 | + "md5":"c1d725306fb09dcbf504776d276521cb", | ||
466 | + "message":"ok" | ||
467 | +} | ||
468 | +``` | ||
469 | +## 6、虚拟购物车电子票立即购买接口 ## | ||
470 | +#### 说明 | ||
471 | +虚拟购物车电子票立即购买(method=app.Shopping.ticket) | ||
472 | +#### 请求参数 | ||
473 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
474 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
475 | +|uid|int|否|3236556|0|用户id| | ||
476 | +|product_sku|int|否|3236556|0|电子票sku| | ||
477 | +|use_yoho_coin|double|否|20|0|用户购买电子票使用的yoho币| | ||
478 | + | ||
479 | +### 响应 | ||
480 | +code为200即为成功,否则是失败。 | ||
481 | +响应JSON格式如下所示: | ||
482 | + | ||
483 | +```json | ||
484 | +{ | ||
485 | + "alg":"SALT_MD5", | ||
486 | + "code":200, | ||
487 | + "data":{ | ||
488 | + "goods_list": [ | ||
489 | + { | ||
490 | + "attribute": "3", | ||
491 | + "brand_id": "730", | ||
492 | + "buy_limit": 0, | ||
493 | + "buy_number": "1", | ||
494 | + "can_cod_pay": "Y", | ||
495 | + "cn_alphabet": "XiangDuiLunXiaJiXinKuanFuGuHeYeBianXiuChunSeLianYiQunYuanChuangSheJiChouZhouYuanLingChangQunFD232", | ||
496 | + "color_id": "11", | ||
497 | + "color_name": "红色", | ||
498 | + "expect_arrival_time": "", | ||
499 | + "fit_promotions": [], | ||
500 | + "get_yoho_coin": "0", | ||
501 | + "goods_id": "293003", | ||
502 | + "goods_images": "http://img11.static.yhbimg.com/goodsimg/2015/07/16/08/01b0816a39106c40c054b45980d18b3ff1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
503 | + "goods_type": "ordinary", | ||
504 | + "is_advance": "N", | ||
505 | + "is_jit": "N", | ||
506 | + "is_limited": "N", | ||
507 | + "is_outlets": "B", | ||
508 | + "is_special": "N", | ||
509 | + "last_price": "229.0", | ||
510 | + "last_vip_price": 229, | ||
511 | + "market_price": 479, | ||
512 | + "max_sort_id": "4", | ||
513 | + "middle_sort_id": "31", | ||
514 | + "off_shelves": 0, | ||
515 | + "product_id": 221541, | ||
516 | + "product_name": "相对纶 原创设计抽皱圆领长裙", | ||
517 | + "product_skc": "247803", | ||
518 | + "product_skn": "51125575", | ||
519 | + "product_sku": "803801", | ||
520 | + "promotion_flag": "101", | ||
521 | + "promotion_id": "0", | ||
522 | + "real_price": 229, | ||
523 | + "real_vip_price": 0, | ||
524 | + "sale_price": 0, | ||
525 | + "sales_price": 229, | ||
526 | + "selected": "Y", | ||
527 | + "shop_id": 0, | ||
528 | + "shopping_cart_goods_id": "0", | ||
529 | + "shopping_cart_id": "0", | ||
530 | + "size_id": "207", | ||
531 | + "size_name": "S", | ||
532 | + "small_sort_id": "134", | ||
533 | + "storage_number": "10", | ||
534 | + "str_subtotal": "¥229.00", | ||
535 | + "subtotal": 229, | ||
536 | + "supplier_id": 0, | ||
537 | + "vip1_price": "0.00", | ||
538 | + "vip2_price": "0.00", | ||
539 | + "vip3_price": "0.00", | ||
540 | + "vip_discount": 1, | ||
541 | + "vip_discount_money": 0, | ||
542 | + "vip_discount_type": "3", | ||
543 | + "vip_price": 0, | ||
544 | + "yoho_coin_num": "0" | ||
545 | + } | ||
546 | + ], | ||
547 | + "shopping_cart_data": { | ||
548 | + "goods_count": 1, | ||
549 | + "last_order_amount": 129, | ||
550 | + "order_amount": 229, | ||
551 | + "promotion_formula_list": [ | ||
552 | + { | ||
553 | + "promotion": "商品金额", | ||
554 | + "promotion_amount": "¥229.00" | ||
555 | + }, | ||
556 | + { | ||
557 | + "promotion": "YOHO币", | ||
558 | + "promotion_amount": "-¥100.00" | ||
559 | + } | ||
560 | + ], | ||
561 | + "use_yoho_coin": 100 | ||
562 | + }, | ||
563 | + "uid": 8041834, | ||
564 | + "yoho_coin": 171 | ||
565 | + }, | ||
566 | + "md5":"c1d725306fb09dcbf504776d276521cb", | ||
567 | + "message":"ok" | ||
568 | +} | ||
546 | ``` | 569 | ``` |
-
Please register or login to post a comment