Showing
2 changed files
with
679 additions
and
0 deletions
yohobuy-global/api-list.md
0 → 100644
1 | +线上域名 :https://api-global.yohobuy.com | ||
2 | + | ||
3 | +1.editor | ||
4 | + | ||
5 | + 1).品牌列表 | ||
6 | + 地址 : /editor/api/v1/brand/brandList | ||
7 | + 例 :http://api-global.yohobuy.com/editor/api/v1/brand/brandList?app_version=5.2.0.1611240002&client_secret=9c3782ce9830ef348ac062c5b605dde6&client_type=iphone&fromPage=iFP_GlobalBrand&os_version=9.2&screen_size=320x568&v=7&yh_channel=1 | ||
8 | + 必填参数 | ||
9 | + client_type 客户端类型 | ||
10 | + client_secret 加密字符串 | ||
11 | + | ||
12 | + | ||
13 | + 2).品牌详情 | ||
14 | + 地址 :/editor/api/v1/brand/get | ||
15 | + 例 : http://api-global.yohobuy.com/editor/api/v1/brand/get?brandId=2&client_type=iphone&client_secret=13566d772b057e01a2ae5b1550bbbcf1 | ||
16 | + 必填参数 | ||
17 | + brandId 品牌id | ||
18 | + client_type 客户端类型 | ||
19 | + client_secret 加密字符串 | ||
20 | + | ||
21 | + 3).运营品类列表 | ||
22 | + 地址 :/editor/api/v1/osort/osortList | ||
23 | + 例 :http://api-global.yohobuy.com/editor/api/v1/osort/osortList?brandId=2&client_type=iphone&client_secret=13566d772b057e01a2ae5b1550bbbcf1 | ||
24 | + 必填参数 | ||
25 | + client_type 客户端类型 | ||
26 | + client_secret 加密字符串 | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | +2.express模块 | ||
31 | + | ||
32 | + 1).转运四方---集货模式 | ||
33 | + 地址 :/express/api/v1/fourpxstore/api | ||
34 | + 例 : http://api-global.yohobuy.com/express/api/v1/fourpxstore/api | ||
35 | + 必填参数: { SeqID: , Type:, Timestamp:, Data:{ShipperOrderNo:,CarrierDeliveryNo:,CarrierCompanyCode:}, Signature: } | ||
36 | + | ||
37 | + 2).海米派 | ||
38 | + 地址 :/express/api/v1/haimibuy/transport | ||
39 | + 例 : http://api-global.yohobuy.com/express/api/v1/haimibuy/transport | ||
40 | + 必填参数:{timestamp:,token:,data:{express_no:,express_status:,cn_transfer_company:,cn_transfer_no:, | ||
41 | + express_infos:[{time:,context:}] } } | ||
42 | + | ||
43 | + | ||
44 | + 3).一号仓 | ||
45 | + 地址 :/express/api/v1/onehcang/transport | ||
46 | + 例 : http://api-global.yohobuy.com/express/api/v1/onehcang/transport | ||
47 | + 必填参数:{timestamp:,token:,data:{express_no:,express_status:,cn_transfer_company:,cn_transfer_no:, | ||
48 | + express_infos:[{time:,context:}] } } | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | +3.image模块 | ||
53 | + | ||
54 | + 1).获取七牛私有空间上传token | ||
55 | + 地址 :/image/api/v1/upload/gettoken | ||
56 | + 例 :http://api-global.yohobuy.com/image/api/v1/upload/gettoken?bucket=skn&client_type=iphone&client_secret=13566d772b057e01a2ae5b1550bbbcf1 | ||
57 | + | ||
58 | + 必填参数 | ||
59 | + bucket 空间名 | ||
60 | + client_type 客户端类型 | ||
61 | + client_secret 加密字符串 | ||
62 | + | ||
63 | + | ||
64 | + 2).上传到七牛普通空间 | ||
65 | + | ||
66 | + 地址 :/image/api/v1/upload/upload | ||
67 | + 例 :http://api-global.yohobuy.com/image/api/v1/upload/upload?bucket=skn&image=&&&&&& | ||
68 | + | ||
69 | + 必填参数 | ||
70 | + bucket 空间名 | ||
71 | + image form表单文件流 | ||
72 | + | ||
73 | + | ||
74 | + 3).上传到七牛私有空间 | ||
75 | + 地址 :/image/api/v1/upload/uploadPrivate | ||
76 | + 例 :http://api-global.yohobuy.com/image/api/v1/upload/uploadprivate?bucket=skn&image=&&&&&& | ||
77 | + 必填参数 | ||
78 | + bucket 空间名 | ||
79 | + image form表单文件流 | ||
80 | + | ||
81 | + | ||
82 | +4.order模块 | ||
83 | + | ||
84 | + 1.地址管理 | ||
85 | + | ||
86 | + 1).收货地址信息列表 | ||
87 | + 地址 :/order/api/v1/address/infoList | ||
88 | + 例 :http://api-global.yohobuy.com/order/api/v1/address/infoList?uid=5000000&client_type=iphone&client_secret=bff599fa9c8f42e440a26a8e3cfdc399 | ||
89 | + | ||
90 | + 必填参数 | ||
91 | + uid 用户ID | ||
92 | + client_type 客户端类型 | ||
93 | + client_secret 加密字符串 | ||
94 | + | ||
95 | + 2).新增收货地址信息 | ||
96 | + 地址 :/order/api/v1/address/add | ||
97 | + 例 :http://api-global.yohobuy.com/order/api/v1/address/add? | ||
98 | + 必填参数 | ||
99 | + uid 用户ID | ||
100 | + address 地址 | ||
101 | + area_code 编码 | ||
102 | + mobile 手机号 | ||
103 | + consignee 收货人姓名 | ||
104 | + card_number 身份证号码 | ||
105 | + card_positive 身份证正面照 [url] | ||
106 | + card_negative 身份证反面照 [url] | ||
107 | + client_type 客户端类型 | ||
108 | + client_secret 加密字符串 | ||
109 | + | ||
110 | + 3).修改收货地址信息 | ||
111 | + 地址 :/order/api/v1/address/edit | ||
112 | + 例 :http://api-global.yohobuy.com/order/api/v1/address/edit? | ||
113 | + 必填参数 | ||
114 | + uid 用户ID | ||
115 | + id | ||
116 | + address 地址 | ||
117 | + area_code 编码 | ||
118 | + mobile 手机号 | ||
119 | + consignee 收货人姓名 | ||
120 | + card_number 身份证号码 | ||
121 | + card_positive 身份证正面照 [url] | ||
122 | + card_negative 身份证反面照 [url] | ||
123 | + client_type 客户端类型 | ||
124 | + client_secret 加密字符串 | ||
125 | + | ||
126 | + 4).删除收货地址信息 | ||
127 | + 地址 :/order/api/v1/address/delete | ||
128 | + 例 :http://api-global.yohobuy.com/order/api/v1/address/delete? | ||
129 | + 必填参数 | ||
130 | + uid 用户ID | ||
131 | + id | ||
132 | + client_type 客户端类型 | ||
133 | + client_secret 加密字符串 | ||
134 | + | ||
135 | + 5).设置默认地址信息 | ||
136 | + 地址 :/order/api/v1/address/setDefault | ||
137 | + 例 :http://api-global.yohobuy.com/order/api/v1/address/setDefault? | ||
138 | + 必填参数 | ||
139 | + uid 用户ID | ||
140 | + id | ||
141 | + client_type 客户端类型 | ||
142 | + client_secret 加密字符串 | ||
143 | + | ||
144 | + | ||
145 | + 2.购物车 | ||
146 | + | ||
147 | + 1).购物车数量接口 | ||
148 | + 地址 :/order/api/v1/cart/getCartGoodCount | ||
149 | + 例 : https://api-global.yohobuy.com/order/api/v1/cart/getCartGoodCount?v=7&app_version=4.9.0&client_type=android&yh_channel=1&screen_size=540x960&client_secret=606cdeff302bd5279a40222b7ddac701&uid=9248477&gender=1%2C3&os_version=android5.0.2%3ASM-A3000&session_key=951eb3f782e471cd649e411a26518ffc&shopping_key= | ||
150 | + | ||
151 | + 必填参数 | ||
152 | + uid 用户id | ||
153 | + client_type 客户端类型 | ||
154 | + client_secret 加密字符串 | ||
155 | + shopping_key 临时购物车key | ||
156 | + | ||
157 | + 2).购物车列表接口 | ||
158 | + 地址 :/order/api/v1/cart/getCartGoodList | ||
159 | + 例 : https://api-global.yohobuy.com/order/api/v1/cart/getCartGoodList?v=7&app_version=4.9.0&client_type=android&yh_channel=1&screen_size=540x960&client_secret=606cdeff302bd5279a40222b7ddac701&uid=9248477&gender=1%2C3&os_version=android5.0.2%3ASM-A3000&session_key=951eb3f782e471cd649e411a26518ffc&shopping_key= | ||
160 | + 必填参数 | ||
161 | + uid 用户id | ||
162 | + client_type 客户端类型 | ||
163 | + client_secret 加密字符串 | ||
164 | + shopping_key 临时购物车key | ||
165 | + | ||
166 | + | ||
167 | + 3).添加购物车商品 | ||
168 | + 地址 :/order/api/v1/cart/addToCart | ||
169 | + 必填参数 | ||
170 | + uid 用户id | ||
171 | + shopping_key 临时购物车key | ||
172 | + client_type 客户端类型 | ||
173 | + client_secret 加密字符串 | ||
174 | + add_goods_list json字符串 | ||
175 | + array( | ||
176 | + product_skn | ||
177 | + product_skc | ||
178 | + product_sku | ||
179 | + buy_number | ||
180 | + selected | ||
181 | + ) | ||
182 | + | ||
183 | + 4).编辑购物车中商品 | ||
184 | + 地址 :/order/api/v1/cart/updateGoodInCart | ||
185 | + 必填参数 | ||
186 | + uid 用户id | ||
187 | + shopping_key 临时购物车key | ||
188 | + client_type 客户端类型 | ||
189 | + client_secret 加密字符串 | ||
190 | + update_goods_list json字符串 | ||
191 | + array( | ||
192 | + array( | ||
193 | + before_update => array( | ||
194 | + product_skn | ||
195 | + product_skc | ||
196 | + product_sku | ||
197 | + ) | ||
198 | + after_update => array( | ||
199 | + product_skn | ||
200 | + product_skc | ||
201 | + product_sku | ||
202 | + buy_number | ||
203 | + selected | ||
204 | + ) | ||
205 | + ) | ||
206 | + ) | ||
207 | + | ||
208 | + | ||
209 | + 5).删除购物车商品 | ||
210 | + 地址 :/order/api/v1/cart/delFromCart | ||
211 | + 必填参数 | ||
212 | + uid 用户id | ||
213 | + shopping_key 临时购物车key | ||
214 | + client_type 客户端类型 | ||
215 | + client_secret 加密字符串 | ||
216 | + del_goods_list json字符串 | ||
217 | + array( | ||
218 | + product_skn | ||
219 | + product_skc | ||
220 | + product_sku | ||
221 | + ) | ||
222 | + | ||
223 | + | ||
224 | + 6).增加购物车中商品数量 | ||
225 | + 地址:/order/api/v1/cart/increaseBuyNumber | ||
226 | + 必填参数 | ||
227 | + uid 用户id | ||
228 | + shopping_key 临时购物车key | ||
229 | + client_type 客户端类型 | ||
230 | + client_secret 加密字符串 | ||
231 | + product_skn | ||
232 | + product_skc | ||
233 | + product_sku | ||
234 | + buy_number | ||
235 | + | ||
236 | + 7).减少购物车中商品数量 | ||
237 | + 地址:/order/api/v1/cart/decreaseBuyNumber | ||
238 | + 必填参数 | ||
239 | + uid 用户id | ||
240 | + shopping_key 临时购物车key | ||
241 | + client_type 客户端类型 | ||
242 | + client_secret 加密字符串 | ||
243 | + product_skn | ||
244 | + product_skc | ||
245 | + product_sku | ||
246 | + buy_number | ||
247 | + | ||
248 | + 8).选中商品后,更新商品信息 | ||
249 | + 地址 :/order/api/v1/cart/updateGoodSelect | ||
250 | + 必填参数 | ||
251 | + uid 用户id | ||
252 | + shopping_key 临时购物车key | ||
253 | + client_type 客户端类型 | ||
254 | + client_secret 加密字符串 | ||
255 | + update_goods_list json字符串 | ||
256 | + array( | ||
257 | + product_skn | ||
258 | + product_skc | ||
259 | + product_sku | ||
260 | + selected | ||
261 | + ) | ||
262 | + | ||
263 | + 9).移入收藏夹 | ||
264 | + 地址:/order/api/v1/cart/moveToCollect | ||
265 | + 必填参数 | ||
266 | + uid 用户id | ||
267 | + client_type 客户端类型 | ||
268 | + client_secret 加密字符串 | ||
269 | + move_goods_list json字符串 | ||
270 | + array( | ||
271 | + product_skn | ||
272 | + product_skc | ||
273 | + product_sku | ||
274 | + ) | ||
275 | + | ||
276 | + | ||
277 | + 3.收藏 | ||
278 | + | ||
279 | + 1).收藏列表 | ||
280 | + 地址 :/order/api/v1/collect/getCollectList | ||
281 | + 例 :http://api-global.yohobuy.com/order/api/v1/collect/getCollectList?type=product&uid=5000000&client_type=iphone&client_secret=28472060b7a76453c41cff913038230d&limit=50&page=1 | ||
282 | + 必填参数 | ||
283 | + uid 用户id | ||
284 | + type 收藏类型 | ||
285 | + limit 限制显示数量 | ||
286 | + page 当前页数 | ||
287 | + client_type 客户端类型 | ||
288 | + client_secret 加密字符串 | ||
289 | + | ||
290 | + 2).添加收藏商品 | ||
291 | + 地址:/order/api/v1/collect/addToCollect | ||
292 | + | ||
293 | + 必填参数 | ||
294 | + uid 用户id | ||
295 | + type 收藏类型 product | ||
296 | + fav_id 商品skn | ||
297 | + client_type 客户端类型 | ||
298 | + client_secret 加密字符串 | ||
299 | + | ||
300 | + 3).取消收藏商品 | ||
301 | + 地址:/order/api/v1/collect/cancelFromCollect | ||
302 | + 必填参数 | ||
303 | + uid 用户id | ||
304 | + type 收藏类型 product | ||
305 | + fav_id 商品skn | ||
306 | + client_type 客户端类型 | ||
307 | + client_secret 加密字符串 | ||
308 | + | ||
309 | + | ||
310 | + 4.下单确认 | ||
311 | + | ||
312 | + 1).预览下单信息 | ||
313 | + 地址:/order/api/v1/confirm/preview | ||
314 | + 必填参数 | ||
315 | + uid 用户id | ||
316 | + address_id 地址ID | ||
317 | + client_type 客户端类型 | ||
318 | + client_secret 加密字符串 | ||
319 | + | ||
320 | + 2).确认下单 | ||
321 | + 地址:/order/api/v1/confirm/confirm | ||
322 | + 必填参数 | ||
323 | + uid 用户id | ||
324 | + address_id 地址ID | ||
325 | + remark 备注 | ||
326 | + client_type 客户端类型 | ||
327 | + client_secret 加密字符串 | ||
328 | + | ||
329 | + 5.订单详情 | ||
330 | + | ||
331 | + 1).根据订单id获取订单详情 | ||
332 | + 地址:/order/api/v1/detail/get | ||
333 | + 例 :http://api-global.yohobuy.com/order/api/v1/detail/get?order_id=15120310489&client_type=iphone&client_secret=5893afad34e3e0d0256b7b2c3c115d99 | ||
334 | + 必填参数 | ||
335 | + order_id 订单id | ||
336 | + client_type 客户端类型 | ||
337 | + client_secret 加密字符串 | ||
338 | + | ||
339 | + | ||
340 | + 2).获取订单列表 | ||
341 | + 地址 :/order/api/v1/detail/getList | ||
342 | + 例 :http://api-global.yohobuy.com/order/api/v1/detail/getList?uid=5000000&page=1&limit=10&type=0&client_type=iphone&client_secret=e95ddb1b2627d4c1e172c36a0f9207cc | ||
343 | + | ||
344 | + 必填参数 | ||
345 | + uid 用户id | ||
346 | + limit 限制显示数量 | ||
347 | + page 当前页数 | ||
348 | + type 订单类型 | ||
349 | + client_type 客户端类型 | ||
350 | + client_secret 加密字符串 | ||
351 | + | ||
352 | + 3).个人中心调用 订单数量+收藏商品数量接口 | ||
353 | + | ||
354 | + 地址 :/order/api/v1/detail/getCount | ||
355 | + 例 :https://api-global.yohobuy.com/order/api/v1/detail/getCount?v=7&app_version=4.9.0&client_type=android&yh_channel=1&screen_size=540x960&client_secret=606cdeff302bd5279a40222b7ddac701&uid=9248477&gender=1%2C3&os_version=android5.0.2%3ASM-A3000&session_key=951eb3f782e471cd649e411a26518ffc&shopping_key= | ||
356 | + 必填参数 | ||
357 | + uid 用户id | ||
358 | + type 类型 | ||
359 | + client_type 客户端类型 | ||
360 | + client_secret 加密字符串 | ||
361 | + | ||
362 | + 4).更新身份证信息 | ||
363 | + 地址 :/order/api/v1/detail/postIDCard | ||
364 | + 必填参数: | ||
365 | + order_id | ||
366 | + idcard_front 身份证正面 | ||
367 | + idcard_back 身份证反面 | ||
368 | + client_type 客户端类型 | ||
369 | + client_secret 加密字符串 | ||
370 | + | ||
371 | + | ||
372 | + 5).取消订单 | ||
373 | + 地址 :/order/api/v1/detail/cancel | ||
374 | + 参数 | ||
375 | + cancel_order_reason_id | ||
376 | + order_id | ||
377 | + uid | ||
378 | + client_type 客户端类型 | ||
379 | + client_secret 加密字符串 | ||
380 | + | ||
381 | + | ||
382 | + 6).删除订单 | ||
383 | + 地址 :/order/api/v1/detail/del | ||
384 | + 参数 | ||
385 | + order_id | ||
386 | + uid | ||
387 | + | ||
388 | + 7).获取订单物流详情 | ||
389 | + 地址 :/order/api/v1/detail/getExpress | ||
390 | + 例 :http://api-global.yohobuy.com/order/api/v1/detail/getExpress?order_id=15120310489&client_type=iphone&client_secret=5893afad34e3e0d0256b7b2c3c115d99 | ||
391 | + 必填参数 | ||
392 | + order_id 订单id | ||
393 | + client_type 客户端类型 | ||
394 | + client_secret 加密字符串 | ||
395 | + | ||
396 | + | ||
397 | + 8).修改订单价格 | ||
398 | + 地址 :/order/api/v1/detail/changePrice | ||
399 | + 必填参数 | ||
400 | + order_id 订单id | ||
401 | + price | ||
402 | + client_type 客户端类型 | ||
403 | + client_secret 加密字符串 | ||
404 | + | ||
405 | + | ||
406 | + 9).修改订单状态 | ||
407 | + 地址 :/order/api/v1/detail/setStatus | ||
408 | + 必填参数 | ||
409 | + order_id 订单id | ||
410 | + status | ||
411 | + client_type 客户端类型 | ||
412 | + client_secret 加密字符串 | ||
413 | + | ||
414 | + | ||
415 | + 10).订单取消原因列表 | ||
416 | + 地址 :/order/api/v1/detail/getReasonForCancelOrder | ||
417 | + 必填参数 | ||
418 | + client_type 客户端类型 | ||
419 | + client_secret 加密字符串 | ||
420 | + | ||
421 | + | ||
422 | + | ||
423 | + 11).修改订单地址 | ||
424 | + 地址 :/order/api/v1/detail/editAddress | ||
425 | + 必填参数 | ||
426 | + uid | ||
427 | + address_id | ||
428 | + order_id | ||
429 | + client_type 客户端类型 | ||
430 | + client_secret 加密字符串 | ||
431 | + | ||
432 | + | ||
433 | + 12).确认收货 | ||
434 | + 地址 :/order/api/v1/detail/tradeSuccess | ||
435 | + 必填参数 | ||
436 | + order_id | ||
437 | + client_type 客户端类型 | ||
438 | + client_secret 加密字符串 | ||
439 | + | ||
440 | + 13).再次购买 | ||
441 | + 地址 :/order/api/v1/detail/cartAdd | ||
442 | + 必填参数 | ||
443 | + uid | ||
444 | + order_id | ||
445 | + client_type 客户端类型 | ||
446 | + client_secret 加密字符串 | ||
447 | + | ||
448 | + | ||
449 | + 6.支付 | ||
450 | + | ||
451 | + 1).支付宝付款签名 | ||
452 | + 地址 :/order/api/v1/pay/alipayGetSign | ||
453 | + 必填参数: | ||
454 | + data:json字符 | ||
455 | + client_type 客户端类型 | ||
456 | + client_secret 加密字符串 | ||
457 | + | ||
458 | + 2).支付宝支付成功回调 | ||
459 | + 地址 :/order/api/v1/pay/alipayPaySuccess | ||
460 | + 必填参数: | ||
461 | + out_trade_no | ||
462 | + total_fee | ||
463 | + sign | ||
464 | + sign_type | ||
465 | + | ||
466 | + | ||
467 | + 3).支付宝退款成功回调 | ||
468 | + 地址 :/order/api/v1/pay/alipayRefundSuccess | ||
469 | + 必填参数: | ||
470 | + | ||
471 | + | ||
472 | + | ||
473 | +5.product模块 | ||
474 | + | ||
475 | + 1).根据商品SKN获取商品详情 | ||
476 | + 地址 :/product/api/v1/detail/get | ||
477 | + 例 :http://api-global.yohobuy.com/product/api/v1/detail/get?app_version=3.8.1.1511270001&client_secret=d25bb3b4c5fc6a5337588e33bd09571f&client_type=iphone&os_version=9.1&product_skn=5000426&screen_size=320x568&v=7 | ||
478 | + 必填参数 | ||
479 | + product_skn 商品skn | ||
480 | + client_type 客户端类型 | ||
481 | + client_secret 加密字符串 | ||
482 | + | ||
483 | + 2).根据商品SKN获取商品详情H5页面 | ||
484 | + 地址 : /product/api/v1/detail/gethtml | ||
485 | + 例 :http://api-global.yohobuy.com/product/api/v1/detail/gethtml?app_version=3.8.1.1511270001&client_secret=d25bb3b4c5fc6a5337588e33bd09571f&client_type=iphone&os_version=9.1&product_skn=5000426&screen_size=320x568&v=7 | ||
486 | + 必填参数 | ||
487 | + product_skn 商品skn | ||
488 | + client_type 客户端类型 | ||
489 | + client_secret 加密字符串 | ||
490 | + | ||
491 | + 3).获取商品列表 | ||
492 | + 地址1 :/product/api/v1/detail/getList | ||
493 | + 地址 :/product/api/v2/detail/getList | ||
494 | + | ||
495 | + 例 :https://api-global.yohobuy.com/product/api/v2/detail/getList?app_version=4.8.0.1607260003&brand=37&client_secret=5abd1a5f42b4bff2abfadc700a055e0d&client_type=iphone&limit=60&order=s_t_desc&os_version=9.3&page=1&screen_size=375x667&v=7 | ||
496 | + 必填参数 | ||
497 | + client_type 客户端类型 | ||
498 | + client_secret 加密字符串 | ||
499 | + 其他参数 (所有列表页面通过传参不同 显示不同结果) | ||
500 | + page 页数 | ||
501 | + limit 限制显示数量 | ||
502 | + order 排序规则 | ||
503 | + site 网站id | ||
504 | + brand 品牌id | ||
505 | + sort 第四层物理类目id | ||
506 | + color 颜色 | ||
507 | + gender 性别 | ||
508 | + yh_channel 频道 | ||
509 | + is_limited 是否限量 | ||
510 | + price 价格区间 | ||
511 | + msort | ||
512 | + site_id 网站id | ||
513 | + | ||
514 | + 4).获取商品总数(供搜索引擎) | ||
515 | + 地址 :/product/api/v1/detail/getProductsCountForSearch | ||
516 | + 必填参数 | ||
517 | + client_type 客户端类型 | ||
518 | + client_secret 加密字符串 | ||
519 | + brand_id | ||
520 | + | ||
521 | + | ||
522 | + 5).分页获取商品数据(供搜索引擎) | ||
523 | + 地址 :/product/api/v1/detail/getProductsListForSearch | ||
524 | + 必填参数 | ||
525 | + client_type 客户端类型 | ||
526 | + client_secret 加密字符串 | ||
527 | + brand_id | ||
528 | + offset | ||
529 | + limit | ||
530 | + | ||
531 | + 6).获取商品详情页推荐商品 | ||
532 | + 地址 :/product/api/v1/detail/getRecommends | ||
533 | + 例 :http://api-global.yohobuy.com/product/api/v1/detail/getRecommends?app_version=3.8.1.1511270001&client_secret=d25bb3b4c5fc6a5337588e33bd09571f&client_type=iphone&os_version=9.1&product_skn=5000426&screen_size=320x568&v=7 | ||
534 | + 必填参数 | ||
535 | + product_skn 商品skn | ||
536 | + client_type 客户端类型 | ||
537 | + client_secret 加密字符串 | ||
538 | + | ||
539 | + | ||
540 | + | ||
541 | + | ||
542 | + | ||
543 | + | ||
544 | + |
yohobuy-global/orders.md
0 → 100644
1 | +# 订单接口 | ||
2 | + | ||
3 | +## 接口列表 | ||
4 | +| 接口名称 | 接口描述 | | ||
5 | +| --------| -------- | | ||
6 | +|[/order/api/v1/detail/getList](#1)|订单列表页| | ||
7 | + | ||
8 | +## 接口描述 | ||
9 | + | ||
10 | +### 订单列表页(/order/api/v1/detail/getList) | ||
11 | + | ||
12 | +#### 请求参数 | ||
13 | +| 参数名称 | 参数类型 | 是否必填 | 示例值 | 描述 | | ||
14 | +| :-- | --: | --: | --: | --: | | ||
15 | +| uid | int | 是 | 7893817 |用户ID | | ||
16 | +| page | int | 是 | 1 | 当前页数 | | ||
17 | +| limit| int | 是 | 10 | 每页数量 | | ||
18 | + | ||
19 | +#### 响应内容 | ||
20 | +```json | ||
21 | +{ | ||
22 | + "code":"200", | ||
23 | + "message":"order_info", | ||
24 | + "data":{ | ||
25 | + "order_code":"15120310489", | ||
26 | + "parent_order_code":"0", | ||
27 | + "create_time":"1449110653", | ||
28 | + "status":"900", | ||
29 | + "is_confirm_show":"N", | ||
30 | + "is_cancel":"Y", | ||
31 | + "payment_status":"N", | ||
32 | + "payment_type":"1", | ||
33 | + "payment_type_str":"在线支付", | ||
34 | + "status_str":"已取消", | ||
35 | + "order_status_str":"已取消", | ||
36 | + "amount":"149.00", | ||
37 | + "payment":"", | ||
38 | + "shipping_cost":"¥55.00", | ||
39 | + "servie_price":"8.00", | ||
40 | + "attribute":"1", | ||
41 | + "pay_begin":"1449110653000", | ||
42 | + "pay_expire":"1449117853000", | ||
43 | + "counter_flag":"Y", | ||
44 | + "pay_lefttime":-31548809, | ||
45 | + "order_goods":[ | ||
46 | + [ | ||
47 | + { | ||
48 | + "product_skn":"5000192", | ||
49 | + "product_sku":"5000734", | ||
50 | + "product_name":"Birthday BE@RBRICK 2012", | ||
51 | + "size_name":"FREE", | ||
52 | + "color_name":"1月", | ||
53 | + "buy_number":"2", | ||
54 | + "goods_price":"38.00", | ||
55 | + "goods_amount":"76", | ||
56 | + "goods_image":"http://img11.static.yhbimg.com/global/2015/11/02/09/01df624ff5aece80d6d314afdec0374542.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
57 | + "goods_type":"0", | ||
58 | + "goods_status":"", | ||
59 | + "expect_arrival_time":"", | ||
60 | + "country_name":"日本", | ||
61 | + "tariff_price":"3.80", | ||
62 | + "tariff_collect":"N", | ||
63 | + "product_source":"ZOZO", | ||
64 | + "is_global":"Y", | ||
65 | + "is_plane":"Y" | ||
66 | + } | ||
67 | + ] | ||
68 | + ], | ||
69 | + "promotion_formula_list":[ | ||
70 | + { | ||
71 | + "promotion":"商品金额", | ||
72 | + "promotion_amount":"¥76.00" | ||
73 | + }, | ||
74 | + { | ||
75 | + "promotion":"运费", | ||
76 | + "promotion_amount":"¥73.00" | ||
77 | + }, | ||
78 | + { | ||
79 | + "promotion":"税费", | ||
80 | + "promotion_select":"Y", | ||
81 | + "promotion_amount":"¥0.00" | ||
82 | + }, | ||
83 | + { | ||
84 | + "promotion":"服务费", | ||
85 | + "promotion_amount":"¥8.00", | ||
86 | + "promotion_select":"N" | ||
87 | + } | ||
88 | + ], | ||
89 | + "address":"嘉陵江东街18号南京国家广告产业园05栋18楼新力传媒", | ||
90 | + "user_name":"侯海宁", | ||
91 | + "mobile":"186****0225", | ||
92 | + "area":"江苏省 南京市 建邺区", | ||
93 | + "area_code":"320105", | ||
94 | + "phone":"", | ||
95 | + "card_number":"320311111111111111", | ||
96 | + "card_positive":"2015/12/03/10/4fb0ded3913dfe426e8e40596d4df511.jpg", | ||
97 | + "card_positive_url":"http://yhgidcard.static.yhbimg.com/2015/12/03/10/4fb0ded3913dfe426e8e40596d4df511.jpg?e=1480670262&token=cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE:0zhAe5uRhPg3TtqV2ZDM_3F8TDI=", | ||
98 | + "card_negative":"2015/12/03/10/89313b3abd7f42a7132d64616e918a95.jpg", | ||
99 | + "card_negative_url":"http://yhgidcard.static.yhbimg.com/2015/12/03/10/89313b3abd7f42a7132d64616e918a95.jpg?e=1480670262&token=cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE:1VpmAOHjVNUVhc59RZC7j3egPOI=", | ||
100 | + "is_card_upload":"Y", | ||
101 | + "express_company":{ | ||
102 | + "caption":"一号仓", | ||
103 | + "url":"", | ||
104 | + "logo":"http://cdn.yoho.cn/global/images/express_3.jpg?imageView/{mode}/w/{width}/h/{height}", | ||
105 | + "is_support":"1" | ||
106 | + }, | ||
107 | + "express_number":"", | ||
108 | + "express_node":"", | ||
109 | + "can_update_delivery_address":"N", | ||
110 | + "goods_quantity":"2" | ||
111 | + }, | ||
112 | + "md5":"d9c224f7ac0ee0210e7cef0f383844f4", | ||
113 | + "t":{ | ||
114 | + "i":0.00084519386291504, | ||
115 | + "e":0.033078908920288, | ||
116 | + "t":0.033924102783203 | ||
117 | + }, | ||
118 | + "s":"N" | ||
119 | +} | ||
120 | +``` | ||
121 | + | ||
122 | + | ||
123 | +### 订单详情(/order/api/v1/detail/get) | ||
124 | + | ||
125 | +#### 请求参数 | ||
126 | +| 参数名称 | 参数类型 | 是否必填 | 示例值 | 描述 | | ||
127 | +| :-- | --: | --: | --: | --: | | ||
128 | +| uid | int | 是 | 7893817 |用户ID | | ||
129 | +| order_id | long | 是 | 15120310489 | 订单号 | | ||
130 | + | ||
131 | +#### 响应内容 | ||
132 | +```json | ||
133 | +{ | ||
134 | +} | ||
135 | +``` |
-
Please register or login to post a comment