Merge branch 'master' of http://git.yoho.cn/yoho-documents/api-interfaces
Showing
5 changed files
with
614 additions
and
264 deletions
@@ -7,134 +7,106 @@ | @@ -7,134 +7,106 @@ | ||
7 | 7 | ||
8 | |接口名称|编号|说明| | 8 | |接口名称|编号|说明| |
9 | |:--|:--|:--| | 9 | |:--|:--|:--| |
10 | -|app.product.intro|1|| | ||
11 | -|app.product.data|2|| | ||
12 | -|app.sort.get|3|| | ||
13 | -|app.search.category|4|| | ||
14 | -|app.search.sales|5|| | ||
15 | -|app.search.newProduct|6|| | ||
16 | -|app.search.fuzzy|7|| | ||
17 | -|app.search.li|8|| | ||
18 | -|app.brand.brandlist|9|| | ||
19 | -|app.search.brand|10|| | ||
20 | -|app.favorite.add|11|| | ||
21 | -|app.favorite.cancel|12|| | ||
22 | -|app.home.preference|13|| | ||
23 | -|app.search.top|14|| | ||
24 | -|app.search.last7day|15|| | ||
25 | -|h5.consult.li|16|| | ||
26 | -|h5.consult.add|17|| | ||
27 | -|h5.preference.Search|18|| | ||
28 | -|h5.sortPreference.Search|19|| | ||
29 | -|h5.product.data|20|| | ||
30 | -|h5.product.intro|21|| | ||
31 | -|app.config.fashioncodeTemplate|22|| | ||
32 | -|app.promotion.sendCheckCode|23|| | ||
33 | -|app.promotion.getCoupon|24|| | ||
34 | -|app.promotion.validCode|25|| | ||
35 | -|app.promotion.queryCoupon|26|| | ||
36 | -|app.address.get|27|| | ||
37 | -|app.address.getlist|28|| | ||
38 | -|app.address.add|29|| | ||
39 | -|app.address.del|30|| | ||
40 | -|app.address.setDefault|31|| | ||
41 | -|app.address.provinces|32|| | ||
42 | -|app.address.update|33|| | ||
43 | -|inbox.updateInbox|34|| | ||
44 | -|inbox.queryListById|35|| | ||
45 | -|app.inbox.getlist|36|| | ||
46 | -|app.inbox.getlistnew|37|| | ||
47 | -|app.register.sendRegCodeToMobile|38|| | ||
48 | -|app.register.validRegCode|39|| | ||
49 | -|app.coupons.total|40|| | ||
50 | -|app.coupons.li|41|| | ||
51 | -|app.home.getInfoNum|42|| | ||
52 | -|app.passport.register|43|| | ||
53 | -|app.passport.profile|44|| | ||
54 | -|app.passport.signin|45|| | ||
55 | -|app.passport.signinByOpenID|46|| | ||
56 | -|app.passport.bind|47|| | ||
57 | -|app.passport.changeCheck|48|| | ||
58 | -|app.passport.modifyBase|49|| | ||
59 | -|app.passport.check|50|| | ||
60 | -|app.passport.getPrivilege|51|| | ||
61 | -|app.passport.smsbind|52|| | ||
62 | -|app.passport.vip|53|| | ||
63 | -|app.passport.changeMobile|54|| | ||
64 | -|app.brand.getBrandIntro|55|| | ||
65 | -|app.yohocoin.lists|56|| | ||
66 | -|app.yohocoin.total|57|| | ||
67 | -|show.toShareOrderList|58|| | ||
68 | -|show.productShareOrderList|59|| | ||
69 | -|show.allToShareOrderList|60|| | ||
70 | -|show.ownerShareList|61|| | ||
71 | -|show.otherToShareOrderList|62|| | ||
72 | -|show.showChannel|63|| | ||
73 | -|show.saveShareOrder|64|| | ||
74 | -|app.favorite.brand|70|| | ||
75 | -|app.favorite.product|71|| | ||
76 | -|app.consult.add|72|| | ||
77 | -|app.consult.li|73|| | ||
78 | -|app.consult.common|74|| | ||
79 | -|app.product.preference|75|| | ||
80 | -|app.consult.useful|76|| | ||
81 | -|app.consult.like|77|| | ||
82 | -|web.search.banner|90|| | ||
83 | -|app.yoho.yohocoin|91|| | ||
84 | -|app.browse.product|92|| | ||
85 | -|app.browse.delete|93|| | ||
86 | -|app.yoho.redpacket|94|| | ||
87 | -|app.yoho.redpacketInfo|95|| | ||
88 | -|app.promotion.queryBirthCoupon|96|| | ||
89 | -|app.resources.getNotices|97|| | ||
90 | -|app.promotion.queryUserShowYohoCoin|98|| | ||
91 | -|show.addPraise|100|| | ||
92 | -|show.cancelPraise|101|| | ||
93 | -|app.promotion_code.get|102|| | ||
94 | -|app.register.sendBackpwdCodeToMobile|116|| | ||
95 | -|app.register.validBackpwdCode|117|| | ||
96 | -|app.register.changepwdByMobileCode|118|| | ||
97 | -|app.register.backpwdByEmail|119|| | ||
98 | -|app.inbox.getTotal|120|| | ||
99 | -|app.product.gift|121|| | ||
100 | -|app.consult.lastTwo|122|| | ||
101 | -|show.recentShareOrderByProductId|123|| | ||
102 | -|app.search.getTerms|127|| | ||
103 | -|app.search.compareRecord|128|| | ||
104 | -|app.search.getTerms|129|| | ||
105 | -|app.brand.banner|130|| | ||
106 | -|app.cover.getCoverStart|137|| | ||
107 | -|app.msgsys.getIosUser|138|| | ||
108 | -|app.Msgsys.getAndroidUser|139|| | ||
109 | -|app.msgsys.pushIosUser|140|| | ||
110 | -|app.Msgsys.pushAndroidUser|141|| | ||
111 | -|app.activity.getlist|142|| | ||
112 | -|app.activity.bindaccount|143|| | ||
113 | -|app.activity.getshare|144|| | ||
114 | -|app.activity.addshare|145|| | ||
115 | -|app.search.lifeStyle|146|| | ||
116 | -|app.search.kids|147|| | ||
117 | -|app.help.li|149|| | ||
118 | -|app.help.detail|150|| | ||
119 | -|app.drawline.getQueueList|151|| | ||
120 | -|app.drawline.addQueue|152|| | ||
121 | -|app.drawline.getUserActivityInfo|153|| | ||
122 | -|app.drawline.getActivityInfo|154|| | ||
123 | -|app.drawline.getLuckyUserList|155|| | ||
124 | -|app.drawline.changeTaskValue|156|| | ||
125 | -|app.limitcode.add|157|| | ||
126 | -|app.limitcode.query|158|| | ||
127 | -|app.limitcode.showredpoint|159|| | ||
128 | -|app.limitcode.deleteinvalid|160|| | ||
129 | -|app.limitProduct.alreadySaleLimitProduct|161|| | ||
130 | -|app.limitProduct.hotLimitProduct|162|| | ||
131 | -|app.limitProduct.soonToSaleLimitProduct|163|| | ||
132 | -|app.limitProduct.limitProductDetail|164|| | ||
133 | -|app.limitProduct.limitProductHtml|165|| | ||
134 | -|app.reminder.addUserReminder|166|| | ||
135 | -|app.reminder.getUserReminder|167|| | ||
136 | -|show.notCommentRecordCount|168|| | ||
137 | -|web.passport.getUserVerifyInfo|171|| | 10 | +|__APP商品开始__||| |
11 | +|app.product.data|500001001|| | ||
12 | +|app.product.intro|500001002|| | ||
13 | +|app.product.gift|500001003|| | ||
14 | +|app.product.promotion|500001004|| | ||
15 | +|app.limitProduct.alreadySaleLimitProduct|500001005|| | ||
16 | +|app.limitProduct.hotLimitProduct|500001006|| | ||
17 | +|app.limitProduct.soonToSaleLimitProduct|500001007|| | ||
18 | +|app.limitProduct.limitProductHtml|500001008|| | ||
19 | +|app.limitProduct.limitProductDetail|500001009|| | ||
20 | +|app.reminder.addUserReminder|500001010|| | ||
21 | +|app.reminder.getUserReminder|500001011|| | ||
22 | +|app.limitProduct.userChoiceSku|500001012|| | ||
23 | +|app.limitProduct.getLimitProductDataBySkn|500001013|| | ||
24 | +|app.favorite.product|500001014|| | ||
25 | +|app.favorite.brand|500001015|| | ||
26 | +|app.favorite.isFavorite|500001016|| | ||
27 | +|app.favorite.batchCheckIsFavorite|500001017|| | ||
28 | +|app.favorite.add|500001018|| | ||
29 | +|app.favorite.cancel|500001019|| | ||
30 | +|app.consult.li|500001020|| | ||
31 | +|app.consult.add|500001021|| | ||
32 | +|app.consult.like|500001022|| | ||
33 | +|app.consult.useful|500001023|| | ||
34 | +|app.consult.common|500001024|| | ||
35 | +|app.consult.lastTwo|500001025|| | ||
36 | +|app.comment.li|500001026|| | ||
37 | +|app.shopsdecorator.getList|500001027|| | ||
38 | +|app.shops.getIntro|500001028|| | ||
39 | +|app.shops.getShopsBrands|500001029|| | ||
40 | +|app.shop.banner|500001030|| | ||
41 | +|app.category.getMax|500001031|| | ||
42 | +|app.category.queryMax|500001032|| | ||
43 | +|app.category.queryMin|500001033|| | ||
44 | +|app.config.fashioncodeTemplate|500001034|| | ||
45 | +|app.product.purchased|500001035|| | ||
46 | +|app.recommend.purchased|500001036|| | ||
47 | +|app.shops.insertApply|500001037|| | ||
48 | +|cnstore.brandlist.get|500001038|| | ||
49 | +|cnstore.product.get|500001039|| | ||
50 | +|cnstore.product.duoban|500001040|| | ||
51 | +|cnstore.product.info|500001041|| | ||
52 | +|__PC、H5商品开始__||| | ||
53 | +|h5.product.data|500002001|| | ||
54 | +|h5.product.intro|500002002|| | ||
55 | +|cn.favorite.li|500002003|| | ||
56 | +|cn.favorite.product|500002004|| | ||
57 | +|h5.consult.li|500002005|| | ||
58 | +|h5.consult.add|500002006|| | ||
59 | +|h5.preference.Search|500002007|| | ||
60 | +|h5.sortPreference.Search|500002008|| | ||
61 | +|web.html.content|500002009|| | ||
62 | +|web.brand.byDomain|500002010|| | ||
63 | +|web.brand.folder|500002011|| | ||
64 | +|web.brand.series|500002012|| | ||
65 | +|web.brand.info|500002013|| | ||
66 | +|web.favorite.product|500002014|| | ||
67 | +|web.favorite.cancel|500002015|| | ||
68 | +|web.productBanner.data|500002016|| | ||
69 | +|web.productCollocation.list|500002017|| | ||
70 | +|web.productModelcard.list|500002018|| | ||
71 | +|web.brand.banner|500002019|| | ||
72 | +|web.product.together|500002020|| | ||
73 | +|web.productComfort.data|500002021|| | ||
74 | +|web.productModelTry.data|500002022|| | ||
75 | +|web.queryProductInfoBySkuId|500002023|| | ||
76 | +|__商品搜索开始__||| | ||
77 | +|app.search.li|500003001|| | ||
78 | +|app.search.brand|500003002|| | ||
79 | +|app.search.category|500003003|| | ||
80 | +|app.search.fuzzy|500003004|| | ||
81 | +|app.brand.brandlist|500003005|| | ||
82 | +|app.brand.newBrandList|500003006|| | ||
83 | +|app.search.sales|500003007|| | ||
84 | +|app.search.last7day|500003008|| | ||
85 | +|app.search.newLast7day|500003009|| | ||
86 | +|app.sale.getBreakingSort|500003010|| | ||
87 | +|app.search.shop|500003011|| | ||
88 | +|app.search.newProduct|500003012|| | ||
89 | +|app.product.preference|500003013|| | ||
90 | +|app.home.preference|500003014|| | ||
91 | +|app.home.newPreference|500003015|| | ||
92 | +|app.sort.get|500003016|| | ||
93 | +|app.shop.getSortInfo|500003017|| | ||
94 | +|app.shop.queryShopsByBrandId|500003018|| | ||
95 | +|app.search.top|500003019|| | ||
96 | +|app.brand.getBrandIntro|500003020|| | ||
97 | +|app.brand.banner|500003021|| | ||
98 | +|app.search.hotBrands|500003022|| | ||
99 | +|app.search.hotBrandRecords|500003023|| | ||
100 | +|app.search.clearHotBrandRecords|500003024|| | ||
101 | +|app.search.trend|500003025|| | ||
102 | +|app.search.lifeStyle|500003026|| | ||
103 | +|app.search.kids|500003027|| | ||
104 | +|app.recommend.popup|500003028|| | ||
105 | +|/operations/api/{v}/activitytemplate/getProduct|500003029|| | ||
106 | +|__ERP同步__||| | ||
107 | +|/erp/sync/storage/full|500004001|| | ||
108 | +|/erp/sync/storage/change|500004002|| | ||
109 | +|/erp/sync/promotion/update|500004003|| | ||
138 | |__资源位开始__||| | 110 | |__资源位开始__||| |
139 | |app.ads.list|300000001|| | 111 | |app.ads.list|300000001|| |
140 | |app.cover.getCoverStart|300000002|| | 112 | |app.cover.getCoverStart|300000002|| |
@@ -222,6 +194,28 @@ | @@ -222,6 +194,28 @@ | ||
222 | |app.refund.submit|400006006|| | 194 | |app.refund.submit|400006006|| |
223 | |app.invoice.logs|400007001|| | 195 | |app.invoice.logs|400007001|| |
224 | |app.order.savePrePayInfo|400007002|| | 196 | |app.order.savePrePayInfo|400007002|| |
197 | +|__促销开始__||| | ||
198 | +|web.activity.get|700007000|| | ||
199 | +|web.activity.getCoupon|700007001|| | ||
200 | +|app.activity.getCoupon|700007002|| | ||
201 | +|app.coupons.lists|700007003|| | ||
202 | +|app.coupons.li|700007005|| | ||
203 | +|app.coupons.total|700007006|| | ||
204 | +|app.limitcode.check|700007007|| | ||
205 | +|app.limitcode.add|700007008|| | ||
206 | +|app.limitcode.query|700007009|| | ||
207 | +|app.limitcode.showredpoint|700007010|| | ||
208 | +|app.limitcode.deleteinvalid|700007011|| | ||
209 | +|app.promotion_code.get|700007012|| | ||
210 | +|app.promotion.queryCoupon|700007013|| | ||
211 | +|app.promotion.queryBirthCoupon|700007014|| | ||
212 | +|app.promotion.getCoupon|700007015|| | ||
213 | +|app.promotion.queryCouponCenter|700007016|| | ||
214 | +|app.coupons.couponSend|700007017|| | ||
215 | +|app.promotion.sendCheckCode|700007018|| | ||
216 | +|app.promotion.validCode|700007019|| | ||
217 | +|app.promotion.queryUserShowYohoCoin|700007020|| | ||
218 | + | ||
225 | 219 | ||
226 | ## service.yoho.cn | 220 | ## service.yoho.cn |
227 | |接口名称|编号|说明| | 221 | |接口名称|编号|说明| |
@@ -255,6 +249,8 @@ | @@ -255,6 +249,8 @@ | ||
255 | |/payment/wechat_data |400001015|| | 249 | |/payment/wechat_data |400001015|| |
256 | |/payment/wechat_notify|400001016|| | 250 | |/payment/wechat_notify|400001016|| |
257 | |/payment/alipaywap_notify |400001017|| | 251 | |/payment/alipaywap_notify |400001017|| |
258 | -|/payment/wechatwap_notify |400001018|| | ||
259 | |/payment/alipay_notify |400001019|| | 252 | |/payment/alipay_notify |400001019|| |
260 | |/union/UnionRest/activeUnion |400001020|| | 253 | |/union/UnionRest/activeUnion |400001020|| |
254 | +|__促销开始__||| | ||
255 | +|/operations/api/{v}/activitytemplate/getActivityTemplateInfo|700007999|目前线上是 v5| | ||
256 | + |
活动/邀请好友赢福利.md
0 → 100644
1 | +## 1、活动首页 ## | ||
2 | +活动首页。查询已经接受该用户的邀请的用户列表(?method=wap.invite.index) | ||
3 | + | ||
4 | +#### 请求参数 | ||
5 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
7 | +|uid|int|否|50001796|0|用户id| | ||
8 | +|activityId|int|否|50001796|0|活动id| | ||
9 | + | ||
10 | +### 请求示例 | ||
11 | +http://api.yoho.cn?method=wap.invite.index&uid=1&activityId=2 | ||
12 | + | ||
13 | +### 响应 | ||
14 | +code为200即为成功,否则是失败。 | ||
15 | + - 500-活动不存在 | ||
16 | + - 400-活动状态不正确 | ||
17 | + - 401-没有分享记录 | ||
18 | + | ||
19 | +响应参数,data部分 | ||
20 | + | ||
21 | + | ||
22 | +| 参数名称 | 参数类型 | 示例 | 备注 | | ||
23 | +|:-------| -----:|-----:|-----:|----:| | ||
24 | +|id|int|123|主键id| | ||
25 | +|uid|int|123|获取优惠券的好友的uid| | ||
26 | +|shareUid|int|123|由谁发起分享的用户的uid| | ||
27 | +|openId|string|adfadsf|获取优惠券的好友的第三方id| | ||
28 | +|couponId|int|12345|优惠券id| | ||
29 | +|couponCode|string|12345|优惠券码| | ||
30 | +|couponAmount|BigDecimal|20|优惠券金额| | ||
31 | +|activityId|int|20|活动| | ||
32 | +|createTime|int|12121212121|领取时间(时间戳:秒数)| | ||
33 | +|couponType|int|2|优惠券类型(1-新用户券,0-老用户券;2-分享者所得的券)| | ||
34 | +|status|int|1|状态(0-未发券,1-已发券)| | ||
35 | +|orderCode|int|1|订单编号| | ||
36 | + | ||
37 | +响应成功JSON格式如下所示: | ||
38 | +```json | ||
39 | +{ | ||
40 | + "alg": "SALT_MD5", | ||
41 | + "code": 200, | ||
42 | + "data": [{ | ||
43 | + "id" : 1, | ||
44 | + "uid" : 2, | ||
45 | + "shareUid" : 3, | ||
46 | + "openId" : "adfasdf", | ||
47 | + "couponId" : 12121, | ||
48 | + "couponCode" : "asdgsdfg", | ||
49 | + "couponAmount" : 20, | ||
50 | + "activityId" : 4, | ||
51 | + "createTime" : 1212134234, | ||
52 | + "couponType" : 2, | ||
53 | + "status" : 1, | ||
54 | + "orderCode" : 7813491234 | ||
55 | + }], | ||
56 | + "md5": "bc08c52373b36a0578293aa334176879", | ||
57 | + "message": "success!" | ||
58 | +} | ||
59 | +``` | ||
60 | + | ||
61 | + | ||
62 | +## 2、发送已注册用户参与活动的优惠券 ## | ||
63 | +发送已注册用户参与活动的优惠券(?method=wap.invite.checkOldUserCoupon) | ||
64 | + | ||
65 | +#### 请求参数 | ||
66 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
67 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
68 | +|mobile|string|否|12345677|0|用户手机号码| | ||
69 | +|activityId|int|否|50001796|0|活动id| | ||
70 | + | ||
71 | +### 请求示例 | ||
72 | +http://api.yoho.cn?method=wap.invite.checkOldUserCoupon&mobile=1391234567&activityId=2 | ||
73 | + | ||
74 | +### 响应 | ||
75 | +code为200即为成功,否则是失败。 | ||
76 | + - 300-参数错误 | ||
77 | + - 404-用户不存在 | ||
78 | + - 201-已经领取过 | ||
79 | + | ||
80 | +响应参数,data部分 | ||
81 | + | ||
82 | + | ||
83 | +| 参数名称 | 参数类型 | 示例 | 备注 | | ||
84 | +|:-------| -----:|-----:|-----:|----:| | ||
85 | +|uid|int|123|用户uid| | ||
86 | + | ||
87 | + | ||
88 | +响应成功JSON格式如下所示: | ||
89 | +```json | ||
90 | +{ | ||
91 | + "alg": "SALT_MD5", | ||
92 | + "code": 200, | ||
93 | + "data": { | ||
94 | + "uid" : 12121 | ||
95 | + }, | ||
96 | + "md5": "bc08c52373b36a0578293aa334176879", | ||
97 | + "message": "success!" | ||
98 | +} | ||
99 | +``` |
@@ -438,135 +438,6 @@ code为200即为成功,否则是失败。 | @@ -438,135 +438,6 @@ code为200即为成功,否则是失败。 | ||
438 | "message": "compute list." | 438 | "message": "compute list." |
439 | } | 439 | } |
440 | ``` | 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 | -} | ||
569 | -``` | ||
570 | 441 | ||
571 | ## 7、限购商品立即购买接口 ## | 442 | ## 7、限购商品立即购买接口 ## |
572 | #### 说明 | 443 | #### 说明 |
@@ -822,4 +693,48 @@ code为200即为成功,否则是失败。 | @@ -822,4 +693,48 @@ code为200即为成功,否则是失败。 | ||
822 | "md5": "3c89d2af5917a0f12070df8281b39fe8", | 693 | "md5": "3c89d2af5917a0f12070df8281b39fe8", |
823 | "message": "payment data." | 694 | "message": "payment data." |
824 | } | 695 | } |
825 | -``` | ||
696 | +``` | ||
697 | + | ||
698 | +## 8、购物车提交接口 ## | ||
699 | +#### 说明 | ||
700 | +购物车提交订单(app.Shopping.submit) | ||
701 | +#### 请求参数 | ||
702 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
703 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
704 | +|uid|int|否|3236556|0|用户id| | ||
705 | +|cart_type|string|否|ordinary|ordinary|购物车类型| | ||
706 | +|address_id|int|否|5816006||送货地址id| | ||
707 | +|delivery_time|int|否|2||寄送时间类型| | ||
708 | +|delivery_way|int|否|1||发货方式(1:普通,2顺丰)| | ||
709 | +|invoices_title|string|是|""|""|发票抬头| | ||
710 | +|invoices_type_id|int|是|""|""|发票类型| | ||
711 | +|payment_id|int|否|15||支付id| | ||
712 | +|payment_type|int|否|1||支付类型| | ||
713 | +|remark|string|是|""|""|备注| | ||
714 | +|coupon_code|string|是|""|""|优惠券码| | ||
715 | +|product_sku_list|string|否|""|""|立即购买,优先| | ||
716 | +|client_type|string|否|web|iphone|终端| | ||
717 | +| qhy_union | String | 否 | {"go_url":"http:\/\/m.yohobuy.com\/?utm_source=dmwwap&utm_medium=none&utm_campaign=dmwwap","channel_code":"174168585","append":null,"client_id":3019,"mbr_name":"174168585","u_id":null} ||联盟参数,json格式,app没有| | ||
718 | + | ||
719 | +### 响应 | ||
720 | +code为200即为成功,否则是失败。 | ||
721 | +响应JSON格式如下所示: | ||
722 | +```json | ||
723 | +{ | ||
724 | + "alg": "SALT_MD5", | ||
725 | + "code": 200, | ||
726 | + "data": { | ||
727 | + "create_time": "2016-07-14 15:57:48",//订单创建时间 | ||
728 | + "order_amount": 1965,//订单金额 | ||
729 | + "order_code": 1613291832,//订单号 | ||
730 | + "pay_expire": "2016-07-14 17:57:48",//支付失效时间 | ||
731 | + "payment_status": 0//0 未支付,1已支付,只有0元订单才为1 | ||
732 | + }, | ||
733 | + "md5": "62723a6f81151e880b04a8480df4d2f9", | ||
734 | + "message": "submit order ." | ||
735 | +} | ||
736 | +``` | ||
737 | + | ||
738 | + | ||
739 | + | ||
740 | + |
@@ -9,8 +9,12 @@ | @@ -9,8 +9,12 @@ | ||
9 | | :-- | :-- | :-- | :-- | :-- | :-- | | 9 | | :-- | :-- | :-- | :-- | :-- | :-- | |
10 | | method | String | 是 | app.SpaceOrders.updateDeliveryAddress| |请求方法| | 10 | | method | String | 是 | app.SpaceOrders.updateDeliveryAddress| |请求方法| |
11 | | order_code | String | 是 | "1607472719" ||订单号 | | 11 | | order_code | String | 是 | "1607472719" ||订单号 | |
12 | -| address_id | String | 是 | "944005" ||地址ID| | ||
13 | - | 12 | +| address_id | String | 否 | "944005" ||地址ID(仅用于app)| |
13 | +| user_name | String | 否 | "刘子阳" ||收货人(仅用于PC)| | ||
14 | +| area_code | String | 否 | "10101" ||地区编号(仅用于PC)| | ||
15 | +| address | String | 否 | "北京市朝阳区八里庄东里"||详细地址(仅用于PC)| | ||
16 | +| mobile | String | 否 | "15811225238" ||手机(仅用于PC)| | ||
17 | +| phone | String | 否 | "010-65566057" ||电话(仅用于PC)| | ||
14 | #### 请求示例 | 18 | #### 请求示例 |
15 | http://devapi.yoho.cn:58078?method=app.SpaceOrders.updateDeliveryAddress&order_code=160103590&debug=XYZ&address_id=944005 | 19 | http://devapi.yoho.cn:58078?method=app.SpaceOrders.updateDeliveryAddress&order_code=160103590&debug=XYZ&address_id=944005 |
16 | 20 |
1 | ## 取消订单 | 1 | ## 取消订单 |
2 | app.SpaceOrders.close | 2 | app.SpaceOrders.close |
3 | - - order.findLogisticsDetail | 3 | + - order.findUidByOrderCode |
4 | - order.closeOrderByCode | 4 | - order.closeOrderByCode |
5 | - users.refundYohoCoin | 5 | - users.refundYohoCoin |
6 | - users.cancelReturnRedenvelopes | 6 | - users.cancelReturnRedenvelopes |
@@ -43,7 +43,7 @@ app.SpaceOrders.get | @@ -43,7 +43,7 @@ app.SpaceOrders.get | ||
43 | 43 | ||
44 | ## 订单详情 | 44 | ## 订单详情 |
45 | app.SpaceOrders.detail | 45 | app.SpaceOrders.detail |
46 | - - order.findLogisticsDetail | 46 | + - order.findUidByOrderCode |
47 | - order.orderDetail | 47 | - order.orderDetail |
48 | - product.queryOrderListByProductIds | 48 | - product.queryOrderListByProductIds |
49 | - users.getAreaByCode | 49 | - users.getAreaByCode |
@@ -130,8 +130,344 @@ app.SpaceOrders.getAntHbfqDetail | @@ -130,8 +130,344 @@ app.SpaceOrders.getAntHbfqDetail | ||
130 | 130 | ||
131 | ## 获取物流详情信息 | 131 | ## 获取物流详情信息 |
132 | app.express.get | 132 | app.express.get |
133 | + - order.findUidByOrderCode | ||
133 | - order.findLogisticsDetail | 134 | - order.findLogisticsDetail |
134 | 135 | ||
135 | ## 获取物流详情信息 | 136 | ## 获取物流详情信息 |
136 | app.express.li | 137 | app.express.li |
137 | - - order.findLogisticsDetail | ||
138 | + - order.findUidByOrderCode | ||
139 | + - order.findLogisticsDetail | ||
140 | + | ||
141 | +## 获取物流公司列表 | ||
142 | +app.express.getExpressCompany | ||
143 | + - order.getNewExpress | ||
144 | + | ||
145 | +## 获取最新退换货物流信息 | ||
146 | +app.express.li | ||
147 | + - order.findUidByOrderCode | ||
148 | + - order.findLogisticsDetail | ||
149 | + | ||
150 | +## 获取退换货物流信息 | ||
151 | +app.express.getRefundExpress | ||
152 | + - order.getRefundExpress | ||
153 | + | ||
154 | +## 获取退换货订单列表 | ||
155 | +app.refund.getList | ||
156 | + - order.getList | ||
157 | + - product.batchQueryProductBasicInfo | ||
158 | + - product.batchQueryGoodsById | ||
159 | + | ||
160 | +## 获取退货订单商品列表 | ||
161 | +app.refund.goodsList | ||
162 | + - order.goodsList | ||
163 | + - product.batchQueryIsSupportRefundExchange | ||
164 | + - product.queryRefundProductByIds | ||
165 | + | ||
166 | +## 提交退货申请 | ||
167 | +app.refund.submit | ||
168 | + - order.submit | ||
169 | + - users.getAreaByCode | ||
170 | + | ||
171 | +## 退货详情 | ||
172 | +app.refund.detail | ||
173 | + - order.detail | ||
174 | + - product.batchQueryProductBasicInfo | ||
175 | + - product.batchQueryGoodsById | ||
176 | + | ||
177 | +## 保存快递信息 | ||
178 | +app.refund.setexpress | ||
179 | + - order.setExpress | ||
180 | + | ||
181 | +## 取消退货 | ||
182 | +app.refund.cancel | ||
183 | + - order.refundCancel | ||
184 | + | ||
185 | +## 换货商品返回方式 | ||
186 | +app.change.getDelivery | ||
187 | + - order.queryDeliveryList | ||
188 | + - users.getAreaByCode | ||
189 | + | ||
190 | +## 获取换货订单商品列表 | ||
191 | +order.queryChangeGoodsList | ||
192 | + - order.queryChangeGoodsList | ||
193 | + - product.batchQueryIsSupportRefundExchange | ||
194 | + - product.queryChangeProductByIds | ||
195 | + | ||
196 | +## 提交换货申请 | ||
197 | +app.change.submit | ||
198 | + - order.submitChangeGoods | ||
199 | + - product.batchQueryGoodsById | ||
200 | + - users.getAddress | ||
201 | + - users.getAreaByCode | ||
202 | + - product.batchDecreaseStorageBySkuId | ||
203 | + | ||
204 | +## 换货详情 | ||
205 | +app.change.detail | ||
206 | + - order.queryChangeGoodsDetail | ||
207 | + - product.batchQueryProductBasicInfo | ||
208 | + - product.queryChangeProductByIds | ||
209 | + | ||
210 | +## 保存快递信息 | ||
211 | +app.change.setexpress | ||
212 | + - order.setChangeExpress | ||
213 | + | ||
214 | +## 取消换货 | ||
215 | +app.change.cancel | ||
216 | + - order.changeCancel | ||
217 | + | ||
218 | + .## 添加购物车 | ||
219 | +app.Shopping.add | ||
220 | + - order.addShopping | ||
221 | + - product.queryStorageBySkuId | ||
222 | + - product.queryProductBasicInfo | ||
223 | + | ||
224 | +## 查询购物车 | ||
225 | +app.Shopping.cart | ||
226 | + - order.cartShopping | ||
227 | + - product.queryProductShopCartBySkuIds | ||
228 | + - promotion.queryProdBuyLimitList | ||
229 | + - users.getYohoCoinFilterLogId | ||
230 | + - users.selectRedenvelopesCount | ||
231 | + - order.auditCodPay | ||
232 | + - promotion.checkLimitCode | ||
233 | + - promotion.queryUserNoUsedCoupons | ||
234 | + - promotion.queryCheckedCoupon | ||
235 | + - product.queryAddCostProducts | ||
236 | + - product.queryProductGiftBySkns | ||
237 | + | ||
238 | +## 查询购物车 前端发送购物车信息 | ||
239 | +app.Shopping.cartByLocal | ||
240 | + - order.cartShopping | ||
241 | + - product.queryProductShopCartBySkuIds | ||
242 | + - promotion.queryProdBuyLimitList | ||
243 | + - users.getYohoCoinFilterLogId | ||
244 | + - users.selectRedenvelopesCount | ||
245 | + - order.auditCodPay | ||
246 | + - promotion.checkLimitCode | ||
247 | + - promotion.queryUserNoUsedCoupons | ||
248 | + - promotion.queryCheckedCoupon | ||
249 | + - product.queryAddCostProducts | ||
250 | + - product.queryProductGiftBySkns | ||
251 | + | ||
252 | +## 增加数量 | ||
253 | +app.Shopping.increase | ||
254 | + - order.increaseShopping | ||
255 | + | ||
256 | +## 减少数量 | ||
257 | +app.Shopping.decrease | ||
258 | + - order.decreaseShopping | ||
259 | + | ||
260 | +## 更换商品 | ||
261 | +app.Shopping.swap | ||
262 | + - order.swapShopping | ||
263 | + | ||
264 | +## 移除商品到收藏夹 | ||
265 | +app.Shopping.addfavorite | ||
266 | + - order.addfavorite | ||
267 | + - product.batchAddFavorite | ||
268 | + | ||
269 | +## 删除购物车商品 | ||
270 | +app.Shopping.addfavorite | ||
271 | + - order.removeShopping | ||
272 | + | ||
273 | +## 限购商品立即购买接口 | ||
274 | +app.Shopping.easyPayment | ||
275 | + - order.paymentShopping | ||
276 | + - users.getAddress | ||
277 | + - users.getDefaultAddress | ||
278 | + - product.queryProductShopCartBySkuIds | ||
279 | + - promotion.queryProdBuyLimitList | ||
280 | + - users.getYohoCoinFilterLogId | ||
281 | + - users.selectRedenvelopesCount | ||
282 | + - order.auditCodPay | ||
283 | + - promotion.checkLimitCode | ||
284 | + - promotion.queryUserNoUsedCoupons | ||
285 | + - promotion.queryCheckedCoupon | ||
286 | + - product.queryAddCostProducts | ||
287 | + - product.queryProductGiftBySkns | ||
288 | + | ||
289 | + | ||
290 | +## 获取购物车总数 | ||
291 | +app.Shopping.count | ||
292 | + - oorder.countShopping | ||
293 | + | ||
294 | +## 选中购物商品 | ||
295 | +app.Shopping.selected | ||
296 | + - order.selectedShopping | ||
297 | + | ||
298 | +## 算费 | ||
299 | +app.Shopping.compute | ||
300 | + - order.computeShopping | ||
301 | + - product.queryProductShopCartBySkuIds | ||
302 | + - promotion.queryProdBuyLimitList | ||
303 | + - users.getYohoCoinFilterLogId | ||
304 | + - users.selectRedenvelopesCount | ||
305 | + - order.auditCodPay | ||
306 | + - promotion.checkLimitCode | ||
307 | + - promotion.queryUserNoUsedCoupons | ||
308 | + - promotion.queryCheckedCoupon | ||
309 | + - product.queryAddCostProducts | ||
310 | + - product.queryProductGiftBySkns | ||
311 | + - users.getAddress | ||
312 | + - users.getDefaultAddress | ||
313 | + | ||
314 | +## 使用优惠券 | ||
315 | +app.Shopping.useCoupon | ||
316 | + - order.useCouponShopping | ||
317 | + - product.queryProductShopCartBySkuIds | ||
318 | + - promotion.queryProdBuyLimitList | ||
319 | + - users.getYohoCoinFilterLogId | ||
320 | + - users.selectRedenvelopesCount | ||
321 | + - order.auditCodPay | ||
322 | + - promotion.checkLimitCode | ||
323 | + - promotion.queryUserNoUsedCoupons | ||
324 | + - promotion.queryCheckedCoupon | ||
325 | + - product.queryAddCostProducts | ||
326 | + - product.queryProductGiftBySkns | ||
327 | + | ||
328 | +## 下单 | ||
329 | +app.Shopping.submit | ||
330 | + - order.submitShopping | ||
331 | + - product.queryProductShopCartBySkuIds | ||
332 | + - promotion.queryProdBuyLimitList | ||
333 | + - users.getYohoCoinFilterLogId | ||
334 | + - users.selectRedenvelopesCount | ||
335 | + - order.auditCodPay | ||
336 | + - promotion.checkLimitCode | ||
337 | + - promotion.queryUserNoUsedCoupons | ||
338 | + - promotion.queryCheckedCoupon | ||
339 | + - product.queryAddCostProducts | ||
340 | + - product.queryProductGiftBySkns | ||
341 | + - users.getAddress | ||
342 | + - product.queryStorageBySkuIds | ||
343 | + - product.queryStorageNumBySkuId | ||
344 | + - product.batchDecreaseStorageBySkuId | ||
345 | + - users.useRedenvelopes | ||
346 | + - users.changeYohoCoin | ||
347 | + - promotion.useCoupon | ||
348 | + - promotion.addPromotionCodeHistory | ||
349 | + - promotion.addLimitCodeUseRecord | ||
350 | + | ||
351 | +## 获取erp失败订单数量 | ||
352 | +app.Shopping.erpSubmitStat | ||
353 | + - order.erpSubmitStat | ||
354 | + | ||
355 | +## 优惠码 | ||
356 | +app.Shopping.usePromotionCode | ||
357 | + - order.usePromotionCode | ||
358 | + - product.queryProductShopCartBySkuIds | ||
359 | + - promotion.queryProdBuyLimitList | ||
360 | + - users.getYohoCoinFilterLogId | ||
361 | + - users.selectRedenvelopesCount | ||
362 | + - order.auditCodPay | ||
363 | + - promotion.checkLimitCode | ||
364 | + - promotion.queryUserNoUsedCoupons | ||
365 | + - promotion.queryCheckedCoupon | ||
366 | + - product.queryAddCostProducts | ||
367 | + - product.queryProductGiftBySkns | ||
368 | + - promotion.queryProdBuyLimitList | ||
369 | + | ||
370 | +## 再次购买 | ||
371 | +app.Shopping.readd | ||
372 | + - order.readd | ||
373 | + | ||
374 | +## 先执行selectd操作,然后查询购物车 | ||
375 | +app.Shopping.selectedAndCart | ||
376 | + - order.selectedAndCart | ||
377 | + - product.queryProductShopCartBySkuIds | ||
378 | + - promotion.queryProdBuyLimitList | ||
379 | + - users.getYohoCoinFilterLogId | ||
380 | + - users.selectRedenvelopesCount | ||
381 | + - order.auditCodPay | ||
382 | + - promotion.checkLimitCode | ||
383 | + - promotion.queryUserNoUsedCoupons | ||
384 | + - promotion.queryCheckedCoupon | ||
385 | + - product.queryAddCostProducts | ||
386 | + - product.queryProductGiftBySkns | ||
387 | + | ||
388 | +## 先删除购物车商品,然后查询购物 | ||
389 | +app.Shopping.removeAndCart | ||
390 | + - order.removeAndCart | ||
391 | + - product.queryProductShopCartBySkuIds | ||
392 | + - promotion.queryProdBuyLimitList | ||
393 | + - users.getYohoCoinFilterLogId | ||
394 | + - users.selectRedenvelopesCount | ||
395 | + - order.auditCodPay | ||
396 | + - promotion.checkLimitCode | ||
397 | + - promotion.queryUserNoUsedCoupons | ||
398 | + - promotion.queryCheckedCoupon | ||
399 | + - product.queryAddCostProducts | ||
400 | + - product.queryProductGiftBySkns | ||
401 | + | ||
402 | +## 先移入收藏夹商品,然后查询购物 | ||
403 | +app.Shopping.addfavoriteAndCart | ||
404 | + - order.addfavoriteAndCart | ||
405 | + - product.batchAddFavorite | ||
406 | + - product.queryProductShopCartBySkuIds | ||
407 | + - promotion.queryProdBuyLimitList | ||
408 | + - users.getYohoCoinFilterLogId | ||
409 | + - users.selectRedenvelopesCount | ||
410 | + - order.auditCodPay | ||
411 | + - promotion.checkLimitCode | ||
412 | + - promotion.queryUserNoUsedCoupons | ||
413 | + - promotion.queryCheckedCoupon | ||
414 | + - product.queryAddCostProducts | ||
415 | + - product.queryProductGiftBySkns | ||
416 | + | ||
417 | +## 统计可用的优惠券张数 | ||
418 | +app.Shopping.countUsableCoupon | ||
419 | + - order.countUsableCoupon | ||
420 | + - product.queryProductShopCartBySkuIds | ||
421 | + - promotion.queryProdBuyLimitList | ||
422 | + - users.getYohoCoinFilterLogId | ||
423 | + - users.selectRedenvelopesCount | ||
424 | + - order.auditCodPay | ||
425 | + - promotion.checkLimitCode | ||
426 | + - promotion.queryUserNoUsedCoupons | ||
427 | + - promotion.queryCheckedCoupon | ||
428 | + - product.queryAddCostProducts | ||
429 | + - product.queryProductGiftBySkns | ||
430 | + | ||
431 | +## 统计可用和不可用的优惠券列表 | ||
432 | +app.Shopping.listCoupon | ||
433 | + - order.listCoupon | ||
434 | + - product.queryProductShopCartBySkuIds | ||
435 | + - promotion.queryProdBuyLimitList | ||
436 | + - users.getYohoCoinFilterLogId | ||
437 | + - users.selectRedenvelopesCount | ||
438 | + - order.auditCodPay | ||
439 | + - promotion.checkLimitCode | ||
440 | + - promotion.queryUserNoUsedCoupons | ||
441 | + - promotion.queryCheckedCoupon | ||
442 | + - product.queryAddCostProducts | ||
443 | + - product.queryProductGiftBySkns | ||
444 | + | ||
445 | +## 电子票添加 | ||
446 | +app.shopping.ticket | ||
447 | + - order.addAndQueryTicket | ||
448 | + - product.queryProductShopCartBySkuIds | ||
449 | + - promotion.queryProdBuyLimitList | ||
450 | + - users.getYohoCoinFilterLogId | ||
451 | + - users.selectRedenvelopesCount | ||
452 | + | ||
453 | +## 电子票下单 | ||
454 | +app.shopping.submitTicket | ||
455 | + - order.submitTicket | ||
456 | + - product.queryProductShopCartBySkuIds | ||
457 | + - promotion.queryProdBuyLimitList | ||
458 | + - users.getYohoCoinFilterLogId | ||
459 | + - users.selectRedenvelopesCount | ||
460 | + - order.issueTicket | ||
461 | + - message.smsSend | ||
462 | + - promotion.sendUserManyCoupons | ||
463 | + | ||
464 | + | ||
465 | + | ||
466 | + | ||
467 | + | ||
468 | + | ||
469 | + | ||
470 | + | ||
471 | + | ||
472 | + | ||
473 | + |
-
Please register or login to post a comment