Showing
1 changed file
with
200 additions
and
0 deletions
@@ -60,3 +60,203 @@ code为200即为成功,否则是失败。 | @@ -60,3 +60,203 @@ code为200即为成功,否则是失败。 | ||
60 | "message": "ok" | 60 | "message": "ok" |
61 | } | 61 | } |
62 | ``` | 62 | ``` |
63 | + | ||
64 | +## 3、购物车结算接口 ## | ||
65 | +#### 说明 | ||
66 | +购物车结算(app.Shopping.payment) | ||
67 | +#### 请求参数 | ||
68 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
69 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
70 | +|uid|int|否|3236556|0|用户id| | ||
71 | +|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
72 | +|yoho_coin_mode|int|是|0|0|是否使用yoho币| | ||
73 | +|product_sku_list|string|是|[{'type':'limitcode','sku':307502,'limitproductcode':'2016030711453248','buy_number':1,'skn':51001888}]||购买限购商品| | ||
74 | + | ||
75 | +### 响应 | ||
76 | +code为200即为成功,否则是失败。 | ||
77 | +响应JSON格式如下所示: | ||
78 | + | ||
79 | +```json | ||
80 | +{ | ||
81 | + "alg": "SALT_MD5", | ||
82 | + "code": 200, | ||
83 | + "data": { | ||
84 | + "delivery_address": { | ||
85 | + "address": "南京", | ||
86 | + "address_id": "4555851", | ||
87 | + "area": "北京市 北京市 东城区", | ||
88 | + "area_code": "110101", | ||
89 | + "consignee": "123", | ||
90 | + "is_delivery": "Y", | ||
91 | + "is_support": "Y", | ||
92 | + "mobile": "139****4768", | ||
93 | + "phone": "" | ||
94 | + }, | ||
95 | + "delivery_time": [{ | ||
96 | + "default": "N", | ||
97 | + "delivery_time_id": 1, | ||
98 | + "delivery_time_string": "只工作日送货" | ||
99 | + }, { | ||
100 | + "default": "Y", | ||
101 | + "delivery_time_id": 2, | ||
102 | + "delivery_time_string": "工作日、双休日和节假日均送货" | ||
103 | + }, { | ||
104 | + "default": "N", | ||
105 | + "delivery_time_id": 3, | ||
106 | + "delivery_time_string": "只双休日、节假日送货(工作日不送货)" | ||
107 | + }], | ||
108 | + "delivery_way": [{ | ||
109 | + "default": "Y", | ||
110 | + "delivery_way_cost": 10, | ||
111 | + "delivery_way_id": 1, | ||
112 | + "delivery_way_name": "普通快递", | ||
113 | + "is_delivery": "Y", | ||
114 | + "is_support": "Y" | ||
115 | + }, { | ||
116 | + "default": "N", | ||
117 | + "delivery_way_cost": 15, | ||
118 | + "delivery_way_id": 2, | ||
119 | + "delivery_way_name": "顺丰速运", | ||
120 | + "is_delivery": "Y", | ||
121 | + "is_support": "Y" | ||
122 | + }], | ||
123 | + "goods_list": [{ | ||
124 | + "attribute": "1", | ||
125 | + "brand_id": "141", | ||
126 | + "buy_limit": 0, | ||
127 | + "buy_number": "1", | ||
128 | + "cn_alphabet": "TYAKASHABaiSeNanNvTongKuanJiaoYinJiRouJiBenKuanTXuAJN01T16XSAJN01W", | ||
129 | + "color_id": "1", | ||
130 | + "color_name": "白色", | ||
131 | + "expect_arrival_time": "", | ||
132 | + "fit_promotions": ["8479", "8477", "8475"], | ||
133 | + "get_yoho_coin": "0", | ||
134 | + "goods_id": "529095", | ||
135 | + "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", | ||
136 | + "goods_type": "ordinary", | ||
137 | + "is_advance": "N", | ||
138 | + "is_jit": "N", | ||
139 | + "is_limited": "N", | ||
140 | + "is_outlets": "N", | ||
141 | + "is_special": "N", | ||
142 | + "last_price": "168.0", | ||
143 | + "last_vip_price": 168, | ||
144 | + "market_price": 168, | ||
145 | + "max_sort_id": "1", | ||
146 | + "middle_sort_id": "11", | ||
147 | + "off_shelves": 0, | ||
148 | + "product_id": 417451, | ||
149 | + "product_name": "TYAKASHA 白色男女通款胶印肌肉基本款T恤 ", | ||
150 | + "product_skc": "373162", | ||
151 | + "product_skn": "51228710", | ||
152 | + "product_sku": "1164186", | ||
153 | + "promotion_flag": "108", | ||
154 | + "promotion_id": "0", | ||
155 | + "real_price": 168, | ||
156 | + "real_vip_price": 0, | ||
157 | + "sale_price": 0, | ||
158 | + "sales_price": 168, | ||
159 | + "selected": "Y", | ||
160 | + "shop_id": 0, | ||
161 | + "shopping_cart_goods_id": "106796919", | ||
162 | + "shopping_cart_id": "131919063", | ||
163 | + "size_id": "201", | ||
164 | + "size_name": "L", | ||
165 | + "small_sort_id": "114", | ||
166 | + "storage_number": "100", | ||
167 | + "str_subtotal": "¥168.00", | ||
168 | + "subtotal": 168, | ||
169 | + "supplier_id": 0, | ||
170 | + "uid": "10921691", | ||
171 | + "vip1_price": "159.60", | ||
172 | + "vip2_price": "151.20", | ||
173 | + "vip3_price": "147.84", | ||
174 | + "vip_discount": 1, | ||
175 | + "vip_discount_money": 0, | ||
176 | + "vip_discount_type": "1", | ||
177 | + "vip_price": 0, | ||
178 | + "yoho_coin_num": "0" | ||
179 | + }], | ||
180 | + "invoices": { | ||
181 | + "invoices_title": "", | ||
182 | + "invoices_type_id": 0, | ||
183 | + "invoices_type_list": [{ | ||
184 | + "invoices_type_id": 1, | ||
185 | + "invoices_type_name": "图书" | ||
186 | + }, { | ||
187 | + "invoices_type_id": 2, | ||
188 | + "invoices_type_name": "资料" | ||
189 | + }, { | ||
190 | + "invoices_type_id": 3, | ||
191 | + "invoices_type_name": "办公用品" | ||
192 | + }, { | ||
193 | + "invoices_type_id": 4, | ||
194 | + "invoices_type_name": "洗涤用品" | ||
195 | + }, { | ||
196 | + "invoices_type_id": 5, | ||
197 | + "invoices_type_name": "化妆品" | ||
198 | + }, { | ||
199 | + "invoices_type_id": 6, | ||
200 | + "invoices_type_name": "体育用品" | ||
201 | + }, { | ||
202 | + "invoices_type_id": 7, | ||
203 | + "invoices_type_name": "服装" | ||
204 | + }, { | ||
205 | + "invoices_type_id": 8, | ||
206 | + "invoices_type_name": "饰品" | ||
207 | + }, { | ||
208 | + "invoices_type_id": 9, | ||
209 | + "invoices_type_name": "配件" | ||
210 | + }, { | ||
211 | + "invoices_type_id": 10, | ||
212 | + "invoices_type_name": "数码产品" | ||
213 | + }], | ||
214 | + "invoices_type_name": "" | ||
215 | + }, | ||
216 | + "payment_way": [{ | ||
217 | + "default": "Y", | ||
218 | + "is_support": "Y", | ||
219 | + "payment_id": 15, | ||
220 | + "payment_name": "支付宝", | ||
221 | + "payment_type": 1, | ||
222 | + "payment_type_name": "在线支付(推荐)", | ||
223 | + "is_support_message":"" | ||
224 | + }, { | ||
225 | + "default": "N", | ||
226 | + "is_support": "Y", | ||
227 | + "payment_id": 0, | ||
228 | + "payment_name": "货到付款", | ||
229 | + "payment_type": 2, | ||
230 | + "payment_type_name": "货到付款", | ||
231 | + "is_support_message":"送货上门后再付款" | ||
232 | + }], | ||
233 | + "promo_code_enabled": 0, | ||
234 | + "shopping_cart_data": { | ||
235 | + "discount_amount": 0, | ||
236 | + "fast_shopping_cost": 15, | ||
237 | + "gain_yoho_coin": 0, | ||
238 | + "goods_count": 1, | ||
239 | + "last_order_amount": 178, | ||
240 | + "order_amount": 168, | ||
241 | + "promotion_formula": "总计¥178.00=商品金额¥168.00+运费¥10.00", | ||
242 | + "promotion_formula_list": [{ | ||
243 | + "promotion": "商品金额", | ||
244 | + "promotion_amount": "¥168.00" | ||
245 | + }, { | ||
246 | + "promotion": "运费", | ||
247 | + "promotion_amount": "+¥10.00" | ||
248 | + }], | ||
249 | + "selected_goods_count": 1, | ||
250 | + "shipping_cost": 10, | ||
251 | + "str_discount_amount": "¥0.00", | ||
252 | + "str_order_amount": "¥168.00" | ||
253 | + }, | ||
254 | + "shopping_cart_tag": "3613572d1571f9cf448e3dacb8ec4c37", | ||
255 | + "uid": 10921691, | ||
256 | + "use_yoho_coin": 0, | ||
257 | + "yoho_coin": 0 | ||
258 | + }, | ||
259 | + "md5": "3c89d2af5917a0f12070df8281b39fe8", | ||
260 | + "message": "payment data." | ||
261 | +} | ||
262 | +``` |
-
Please register or login to post a comment