Showing
1 changed file
with
150 additions
and
0 deletions
订单/虚拟购物车.md
0 → 100644
1 | +# 虚拟购物车服务接口 | ||
2 | + | ||
3 | +## 接口列表 | ||
4 | +| 接口名称 | 接口描述 | | ||
5 | +| --------| -------- | | ||
6 | +|[app.Shopping.ticket](#1-app.Shopping.ticket)|电子票添加和查询| | ||
7 | +|[app.Shopping.submitTicket](#2-app.Shopping.submitTicket)|电子票下单| | ||
8 | + | ||
9 | +## 接口描述 | ||
10 | + | ||
11 | +### 1、电子票添加和查询(app.Shopping.ticket) | ||
12 | + | ||
13 | +#### 请求参数 | ||
14 | +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | ||
15 | +| :-- | :-- | :-- | :-- | :-- | :-- | | ||
16 | +| method | String | 是 | app.Shopping.ticket| |请求方法| | ||
17 | +| uid | int | 是 | 8041886 ||用户ID | | ||
18 | +| product_sku | int | 是 | 803801 ||产品sku| | ||
19 | +| use_yoho_coin | double | 否 | 100 ||使用yoho币| | ||
20 | + | ||
21 | +### 错误编码 | ||
22 | +------------------------- | ||
23 | +|错误码code|消息| | ||
24 | +|----------|----| | ||
25 | +|400|请求参数不能为空| | ||
26 | +|400|UID不能为空| | ||
27 | +|400|加入商品不能为空| | ||
28 | +|500|你选择的商品库存不足. | | ||
29 | +|400|所购商品非电子商品| | ||
30 | +|400|每人只可买一张当日门票哦,不要贪心哦!| | ||
31 | +|500|电子票sys配置项为空| | ||
32 | +#### 响应内容 | ||
33 | +```json | ||
34 | +{ | ||
35 | + "code": 200, | ||
36 | + "message": "", | ||
37 | + "data": { | ||
38 | + "shopping_cart_data": { | ||
39 | + "order_amount": 229, | ||
40 | + "last_order_amount": 229, | ||
41 | + "goods_count": 1, | ||
42 | + "promotion_formula_list": [ | ||
43 | + { | ||
44 | + "promotion": "总价", | ||
45 | + "promotion_amount": "¥229" | ||
46 | + } | ||
47 | + ], | ||
48 | + "use_yoho_coin": 0 | ||
49 | + }, | ||
50 | + "yoho_coin": 0, | ||
51 | + "uid": 8041886, | ||
52 | + "goods_list": [ | ||
53 | + { | ||
54 | + "vip_price": 0, | ||
55 | + "sales_price": 229, | ||
56 | + "real_price": 229, | ||
57 | + "market_price": 479, | ||
58 | + "last_vip_price": 229, | ||
59 | + "last_price": 229, | ||
60 | + "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/90", | ||
61 | + "color_name": "红色", | ||
62 | + "product_id": 221541, | ||
63 | + "product_name": "相对纶 原创设计抽皱圆领长裙", | ||
64 | + "selected": "Y", | ||
65 | + "promotion_id": 0, | ||
66 | + "color_id": "11", | ||
67 | + "goods_id": "293003", | ||
68 | + "size_name": "S", | ||
69 | + "size_id": "207", | ||
70 | + "storage_number": "1", | ||
71 | + "yoho_coin_num": "0", | ||
72 | + "get_yoho_coin": "0", | ||
73 | + "real_vip_price": 0, | ||
74 | + "vip_discount_money": 0, | ||
75 | + "vip_discount_type": "3", | ||
76 | + "vip_discount": "1.00", | ||
77 | + "vip1_price": "0.00", | ||
78 | + "vip2_price": "0.00", | ||
79 | + "vip3_price": "0.00", | ||
80 | + "brand_id": "730", | ||
81 | + "is_limited": "N", | ||
82 | + "max_sort_id": "4", | ||
83 | + "middle_sort_id": "31", | ||
84 | + "small_sort_id": "134", | ||
85 | + "is_special": "N", | ||
86 | + "promotion_flag": "101", | ||
87 | + "buy_number": 1, | ||
88 | + "is_advance": "N", | ||
89 | + "is_outlets": "B", | ||
90 | + "attribute": "3", | ||
91 | + "uid": 8041886, | ||
92 | + "shopping_cart_id": 0, | ||
93 | + "product_skn": "51125575", | ||
94 | + "product_skc": "247803", | ||
95 | + "product_sku": "803801", | ||
96 | + "buy_limit": 0, | ||
97 | + "activities_id": 0, | ||
98 | + "expect_arrival_time": "", | ||
99 | + "is_jit": "N", | ||
100 | + "shop_id": 0, | ||
101 | + "supplier_id": 0, | ||
102 | + "shopping_cart_goods_id": 0, | ||
103 | + "goods_type": "ordinary", | ||
104 | + "subtotal": 229, | ||
105 | + "str_subtotal": "¥229.00" | ||
106 | + } | ||
107 | + ] | ||
108 | + }, | ||
109 | + "md5": "5772d929c6a2b780bb2cd95a00c7e626" | ||
110 | +} | ||
111 | +``` | ||
112 | + | ||
113 | +### 2、电子票下单(app.Shopping.submitTicket) | ||
114 | + | ||
115 | +#### 请求参数 | ||
116 | +| 名称 | 类型 | 是否必须 | 示例值 | 默认值 | 描述 | | ||
117 | +| :-- | :-- | :-- | :-- | :-- | :-- | | ||
118 | +| method | String | 是 | app.Shopping.ticket| |请求方法| | ||
119 | +| uid | int | 是 | 8041886 ||用户ID | | ||
120 | +| product_sku | int | 是 | 803801 ||产品sku| | ||
121 | +| mobile | String | 是 | 13814772111 ||手机号码| | ||
122 | +| use_yoho_coin | double | 否 | 100 ||使用yoho币| | ||
123 | + | ||
124 | +### 错误编码 | ||
125 | +------------------------- | ||
126 | +|错误码code|消息| | ||
127 | +|----------|----| | ||
128 | +|400|请求参数不能为空| | ||
129 | +|400|UID不能为空| | ||
130 | +|400|加入商品不能为空| | ||
131 | +|400|手机号码格式错误 | | ||
132 | +|500|电子票sizezname属性不对。 | | ||
133 | +|500|你选择的商品库存不足. | | ||
134 | +|400|所购商品非电子商品| | ||
135 | +|400|每人只可买一张当日门票哦,不要贪心哦!| | ||
136 | +|500|电子票sys配置项为空| | ||
137 | +|500|电子票sys配置项为空 | | ||
138 | +#### 响应内容 | ||
139 | +```json | ||
140 | +{ | ||
141 | + "code": 200, | ||
142 | + "message": "订单创建成功.", | ||
143 | + "data": { | ||
144 | + "order_code": "1612373774", | ||
145 | + "payment_status": 0, | ||
146 | + "order_amount": 229 | ||
147 | + }, | ||
148 | + "md5": "52aa3d19e0474b3a9d39044b8eadc684" | ||
149 | +} | ||
150 | +``` |
-
Please register or login to post a comment