Authored by liyalin
## 1、查询用户是否首次登陆##
(method=app.passport.checkFirstLogin)
请求方式:get
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|Integer| 否| 123456|null|用户id|
注意,通用的头部没有列出。
请求示例
http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&gender=&method=app.passport.checkFirstLogin&os_version=android4.4.4%3AChe1-CL20&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=13517&v=7&yh_channel=1
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": "1", 0:不是首次登陆,1:是首次登陆
"md5": "c13a1ace2c5883be18643551bd17ebcd",
"message": "请求成功"
}
```
## 2、推荐的商品列表##
(method=app.newuser.recommend)
请求方式:get
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|select_gender|Integer| 否| 1|null|用户选择的性别,1:男生,2:女生|
|limit|Integer| 是| 12|12|每页显示商品数量|
|page|Integer| 是| 1|1|页数|
注意,通用的头部没有列出。
请求示例
http://dev-api.yohops.com:9999/?app_version=4.9.2&debug=XYZ&client_secret=7b9ec13d4fdaeac331a9a0ddfbeac257&client_type=android&gender=&method=app.newuser.recommend&os_version=android4.4.4%3AChe1-CL20&limit=10&page=1&gender=1&screen_size=720x1280&session_key=c7e4525e9e7608a24c5b0dce094ab091&uid=9963947&v=7&yh_channel=1
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"total": 13,
"page_total": 2,
"page": 1,
"product_list": [
{
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/09/15/03/01f7c8352b5fce15df4b347403b714fa95.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51145431,
"brand_name": "Aape"
},
{
"default_images": "http://img12.static.yhbimg.com/goodsimg/2014/11/14/01/0295ab80932bec9e2ebf4fc4a9ac402a39.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51079944,
"brand_name": "Casterwear"
},
{
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/12/25/05/0146220898d04140206f4da9ffc48a3792.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51183961,
"brand_name": "Bouquet Fever"
},
{
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/12/02/08/013858eb23e1cba1c9b2cff97c1f09d440.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51178108,
"brand_name": "Bravospark"
},
{
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/02/09/015d52cc53236159f543a363543b36da77.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51163207,
"brand_name": "BACK BONE"
},
{
"default_images": "http://img10.static.yhbimg.com/goodsimg/2015/11/30/10/0147006e5c997984001cf1ee89d9abd96e.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51150773,
"brand_name": "Artanky"
},
{
"default_images": "http://img12.static.yhbimg.com/goodsimg/2015/08/28/08/02d58f43cac7d60478f1a92a6d6f021aca.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51122824,
"brand_name": "BURTON"
},
{
"default_images": "http://img13.static.yhbimg.com/goodsimg/2016/01/07/06/0256a62c882afcd1d2b9322f00b40b2d04.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51175023,
"brand_name": "adidas Originals"
},
{
"default_images": "http://img13.static.yhbimg.com/goodsimg/2015/12/01/08/023f13af17536b39cae923134687065db8.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51177466,
"brand_name": "BURANDO ENO"
},
{
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/23/02/01496beadcb1cdae27f667253640819335.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"product_skn": 51170405,
"brand_name": "BEASTS"
}
],
"page_size": 10
},
"md5": "74f6a2a686abd5cb0b89d90049b83024",
"message": "newUser recommend product list"
}
```
... ...
## 接口描述
### 1、获取top10下拉
#### 请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/recommendedSelect
#### 响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"text": "男首-猜你喜欢",
"code": "100001"
},
{
"text": "女首-猜你喜欢",
"code": "100002"
},
{
"text": "购物车-为您优选",
"code": "100003"
},
{
"text": "我的-为您优选",
"code": "100004"
},
{
"text": "查看物流-买了又买",
"code": "100005"
},
{
"text": "查看物流-猜你喜欢",
"code": "100006"
},
{
"text": "支付成功-猜你喜欢",
"code": "100007"
},
{
"text": "yoho币-猜你喜欢",
"code": "100008"
},
{
"text": "yoho币-猜你喜欢",
"code": "100009"
},
{
"text": "商品详情页-为你优选",
"code": "100013"
}
],
"md5": "48ee1287db61a4c822d67dcff3b0cf1c",
"message": "SUCCESS"
}
### 2、获取top20下拉
#### 请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/top20Select
#### 响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"third": [
{
"code": "0",
"text": "默认"
},
{
"code": "1",
"text": "销量"
},
{
"code": "2",
"text": "最新"
},
{
"code": "3",
"text": "价格"
},
{
"code": "4",
"text": "折扣"
},
{
"code": "5",
"text": "本日上新"
},
{
"code": "6",
"text": "本周上新"
},
{
"code": "7",
"text": "个性化排序"
}
],
"first": [
{
"code": "1",
"text": "男生"
},
{
"code": "2",
"text": "女生"
},
{
"code": "3",
"text": "潮童"
},
{
"code": "4",
"text": "创意生活"
}
],
"second": [
{
"code": "3",
"text": "搜索"
},
{
"code": "1",
"text": "品牌"
},
{
"code": "2",
"text": "品类"
},
{
"code": "4",
"text": "新品到着"
},
{
"code": "5",
"text": "店铺页"
}
]
},
"md5": "8c3dabc02dc9a45368afbb2a09b784e2",
"message": "SUCCESS"
}
### 2、获取推荐top10
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| appType | String | true |android/ios/wap/web/all| 客户端类类型|
| appEdition | String | true ||客户端版本:AB|
| date | date | false |2016-12-26|时间类型(默认当天)|
| cid | int | true | | 下拉的值|
#### 请求方法
get http://ip:port/data-analysis-web/resources_analysis/recommendedTop10?appType=ios&date=2015-12-26&cid=1&appEdition=A
#### 响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 1,
"orderNum": 0,
"pvNum": 161,
"sortNum": 0,
"typeNum": 0,
"uvNum": 142
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 1,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 2,
"orderNum": 1,
"pvNum": 155,
"sortNum": 0,
"typeNum": 0,
"uvNum": 144
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 3,
"orderNum": 0,
"pvNum": 154,
"sortNum": 0,
"typeNum": 0,
"uvNum": 141
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 4,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 4,
"orderNum": 0,
"pvNum": 165,
"sortNum": 0,
"typeNum": 0,
"uvNum": 149
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 5,
"orderNum": 0,
"pvNum": 113,
"sortNum": 0,
"typeNum": 0,
"uvNum": 107
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 6,
"orderNum": 5,
"pvNum": 102,
"sortNum": 0,
"typeNum": 0,
"uvNum": 91
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 7,
"orderNum": 0,
"pvNum": 111,
"sortNum": 0,
"typeNum": 0,
"uvNum": 100
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 1,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 8,
"orderNum": 0,
"pvNum": 108,
"sortNum": 0,
"typeNum": 0,
"uvNum": 101
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 9,
"orderNum": 0,
"pvNum": 86,
"sortNum": 0,
"typeNum": 0,
"uvNum": 80
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 10,
"orderNum": 0,
"pvNum": 109,
"sortNum": 0,
"typeNum": 0,
"uvNum": 97
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 11,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 12,
"orderNum": 0,
"pvNum": 16,
"sortNum": 0,
"typeNum": 0,
"uvNum": 15
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 2,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 13,
"orderNum": 0,
"pvNum": 10,
"sortNum": 0,
"typeNum": 0,
"uvNum": 8
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 14,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 11
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 15,
"orderNum": 0,
"pvNum": 13,
"sortNum": 0,
"typeNum": 0,
"uvNum": 12
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 16,
"orderNum": 0,
"pvNum": 9,
"sortNum": 0,
"typeNum": 0,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 17,
"orderNum": 0,
"pvNum": 11,
"sortNum": 0,
"typeNum": 0,
"uvNum": 11
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 18,
"orderNum": 0,
"pvNum": 8,
"sortNum": 0,
"typeNum": 0,
"uvNum": 8
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 19,
"orderNum": 0,
"pvNum": 7,
"sortNum": 0,
"typeNum": 0,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 0,
"cid": 100001,
"date": "2017-02-27",
"indexNum": 20,
"orderNum": 0,
"pvNum": 6,
"sortNum": 0,
"typeNum": 0,
"uvNum": 5
}
],
"md5": "ecf1e9c581018a18abd8fcbf7fb56991",
"message": "SUCCESS"
}
### 3、2级入口分析
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| appType | String | true |yohobuy_android/yohobuy_ios/wap/web/all| 客户端类类型|
| appEdition | String | true ||客户端版本:AB|
| date | date | false |2016-12-26|时间类型(默认当天)|
| channel | int | true | 1-男生 2-女生 3-潮童 4-创意生活 |频道 |
#### 请求方法
get http://ap2.yohobuy.com/data-analysis-web/resources_analysis/secondLevelEntryAnalysis?appType=yohobuy_ios&channel=1&typeNum=2&sortNum=4&appEdition=A&date=2017-02-25
#### 响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 69,
"eventCode": "1_5_1",
"iconName": "新品到着",
"outCount": 543,
"outRate": "10.01%",
"totalCount": 5423
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 137,
"eventCode": "1_5_10",
"iconName": "折扣专区",
"outCount": 1411,
"outRate": "42.25%",
"totalCount": 3340
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 66,
"eventCode": "1_5_2",
"iconName": "潮流优选",
"outCount": 2197,
"outRate": "59.28%",
"totalCount": 3706
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 87,
"eventCode": "1_5_3",
"iconName": "早春新著",
"outCount": 591,
"outRate": "10.08%",
"totalCount": 5864
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 60,
"eventCode": "1_5_4",
"iconName": "明星原创",
"outCount": 1206,
"outRate": "56.01%",
"totalCount": 2153
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 122,
"eventCode": "1_5_5",
"iconName": "全部分类",
"outCount": 2494,
"outRate": "40.87%",
"totalCount": 6102
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 99,
"eventCode": "1_5_6",
"iconName": "人气搭配",
"outCount": 1263,
"outRate": "24.75%",
"totalCount": 5104
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 78,
"eventCode": "1_5_7",
"iconName": "潮流话题",
"outCount": 157,
"outRate": "23.36%",
"totalCount": 672
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 133,
"eventCode": "1_5_8",
"iconName": "全球购",
"outCount": 1524,
"outRate": "39.64%",
"totalCount": 3845
},
{
"appEdition": "A",
"appType": "yohobuy_ios",
"avgTime": 42,
"eventCode": "1_5_9",
"iconName": "限定发售",
"outCount": 2211,
"outRate": "12.78%",
"totalCount": 17305
}
],
"md5": "c3aa9ca20837f614fd184e849e59c86f",
"message": "SUCCESS"
}
### 4、top20分析
#### 请求参数
| Param Name | Param Type | Required | Param Value | Desc |
| :-- | --: | --: | --: | --: |
| appType | String | true |yohobuy_android/yohobuy_ios/wap/web/all| 客户端类类型|
| appEdition | String | true ||客户端版本:AB|
| date | date | false |2016-12-26|时间类型(默认当天)|
| cid | int | true | ||
| typeNum | int | true | ||
| sortNum | int | true | |d|
#### 请求方法
get http://127.0.0.1:8080/resources_analysis/dlist_analysis?appType=yohobuy_ios&cid=1&typeNum=2&sortNum=4&appEdition=A&date=2017-02-25
#### 响应内容
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 1,
"orderNum": 0,
"pvNum": 18,
"sortNum": 4,
"typeNum": 2,
"uvNum": 9
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 2,
"orderNum": 0,
"pvNum": 11,
"sortNum": 4,
"typeNum": 2,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "android",
"carNum": 2,
"cid": 1,
"date": "2017-02-25",
"indexNum": 3,
"orderNum": 0,
"pvNum": 10,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 4,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 5,
"orderNum": 0,
"pvNum": 14,
"sortNum": 4,
"typeNum": 2,
"uvNum": 7
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 6,
"orderNum": 0,
"pvNum": 10,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 7,
"orderNum": 0,
"pvNum": 8,
"sortNum": 4,
"typeNum": 2,
"uvNum": 5
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 8,
"orderNum": 0,
"pvNum": 7,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 9,
"orderNum": 0,
"pvNum": 2,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 10,
"orderNum": 0,
"pvNum": 7,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 11,
"orderNum": 0,
"pvNum": 2,
"sortNum": 4,
"typeNum": 2,
"uvNum": 1
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 12,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 13,
"orderNum": 0,
"pvNum": 6,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 15,
"orderNum": 0,
"pvNum": 3,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 16,
"orderNum": 0,
"pvNum": 8,
"sortNum": 4,
"typeNum": 2,
"uvNum": 4
},
{
"appEdition": "A",
"appType": "android",
"carNum": 1,
"cid": 1,
"date": "2017-02-25",
"indexNum": 17,
"orderNum": 0,
"pvNum": 4,
"sortNum": 4,
"typeNum": 2,
"uvNum": 2
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 18,
"orderNum": 0,
"pvNum": 5,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 2,
"cid": 1,
"date": "2017-02-25",
"indexNum": 19,
"orderNum": 0,
"pvNum": 6,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "android",
"carNum": 0,
"cid": 1,
"date": "2017-02-25",
"indexNum": 20,
"orderNum": 0,
"pvNum": 5,
"sortNum": 4,
"typeNum": 2,
"uvNum": 3
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 18,
"cid": 1,
"date": "2017-02-25",
"indexNum": 1,
"orderNum": 2,
"pvNum": 741,
"sortNum": 4,
"typeNum": 2,
"uvNum": 587
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 26,
"cid": 1,
"date": "2017-02-25",
"indexNum": 2,
"orderNum": 5,
"pvNum": 624,
"sortNum": 4,
"typeNum": 2,
"uvNum": 518
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 3,
"orderNum": 1,
"pvNum": 481,
"sortNum": 4,
"typeNum": 2,
"uvNum": 402
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 14,
"cid": 1,
"date": "2017-02-25",
"indexNum": 4,
"orderNum": 1,
"pvNum": 440,
"sortNum": 4,
"typeNum": 2,
"uvNum": 376
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 3,
"cid": 1,
"date": "2017-02-25",
"indexNum": 5,
"orderNum": 0,
"pvNum": 352,
"sortNum": 4,
"typeNum": 2,
"uvNum": 298
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 12,
"cid": 1,
"date": "2017-02-25",
"indexNum": 6,
"orderNum": 0,
"pvNum": 314,
"sortNum": 4,
"typeNum": 2,
"uvNum": 275
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 13,
"cid": 1,
"date": "2017-02-25",
"indexNum": 7,
"orderNum": 2,
"pvNum": 356,
"sortNum": 4,
"typeNum": 2,
"uvNum": 307
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 17,
"cid": 1,
"date": "2017-02-25",
"indexNum": 8,
"orderNum": 2,
"pvNum": 297,
"sortNum": 4,
"typeNum": 2,
"uvNum": 261
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 11,
"cid": 1,
"date": "2017-02-25",
"indexNum": 9,
"orderNum": 0,
"pvNum": 280,
"sortNum": 4,
"typeNum": 2,
"uvNum": 246
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 14,
"cid": 1,
"date": "2017-02-25",
"indexNum": 10,
"orderNum": 2,
"pvNum": 269,
"sortNum": 4,
"typeNum": 2,
"uvNum": 242
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 1,
"date": "2017-02-25",
"indexNum": 11,
"orderNum": 2,
"pvNum": 291,
"sortNum": 4,
"typeNum": 2,
"uvNum": 247
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 6,
"cid": 1,
"date": "2017-02-25",
"indexNum": 12,
"orderNum": 0,
"pvNum": 245,
"sortNum": 4,
"typeNum": 2,
"uvNum": 216
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 5,
"cid": 1,
"date": "2017-02-25",
"indexNum": 13,
"orderNum": 0,
"pvNum": 217,
"sortNum": 4,
"typeNum": 2,
"uvNum": 185
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 14,
"orderNum": 1,
"pvNum": 216,
"sortNum": 4,
"typeNum": 2,
"uvNum": 197
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 7,
"cid": 1,
"date": "2017-02-25",
"indexNum": 15,
"orderNum": 2,
"pvNum": 182,
"sortNum": 4,
"typeNum": 2,
"uvNum": 165
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 15,
"cid": 1,
"date": "2017-02-25",
"indexNum": 16,
"orderNum": 3,
"pvNum": 190,
"sortNum": 4,
"typeNum": 2,
"uvNum": 174
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 7,
"cid": 1,
"date": "2017-02-25",
"indexNum": 17,
"orderNum": 1,
"pvNum": 202,
"sortNum": 4,
"typeNum": 2,
"uvNum": 179
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 8,
"cid": 1,
"date": "2017-02-25",
"indexNum": 18,
"orderNum": 1,
"pvNum": 182,
"sortNum": 4,
"typeNum": 2,
"uvNum": 163
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 19,
"orderNum": 1,
"pvNum": 180,
"sortNum": 4,
"typeNum": 2,
"uvNum": 164
},
{
"appEdition": "A",
"appType": "ios",
"carNum": 9,
"cid": 1,
"date": "2017-02-25",
"indexNum": 20,
"orderNum": 1,
"pvNum": 171,
"sortNum": 4,
"typeNum": 2,
"uvNum": 150
}
],
"md5": "83ee8d377fa07fcc59efece6a90a8706",
"message": "SUCCESS"
}
... ...
... ... @@ -133,7 +133,8 @@ sign=159D8FA7E868CA35D8A45E773E88527D
| total_amount | Price | 必填 | 11 | 交易的订单金额,单位为元,两位小数。 | 88.88 |
| buyer_pay_amount | Price | 必填 | 11 | 买家实付金额,单位为元,两位小数。 | 15.25 |
| yoho_coin_amount | Price | 选填 | 11 | 有货币支付金额,单位为元,两位小数。 | 10 |
| buyer_payment | String | 必填 | | 支付方式 | |
| buyer_payment_str | String | 必填 | | 支付方式中文 | |
响应成功JSON格式如下所示:
```json
... ... @@ -146,7 +147,9 @@ sign=159D8FA7E868CA35D8A45E773E88527D
"total_amount": 100.01,
"trade_no": "123456789",
"trade_status": "TRADE_CANCEL",
"yoho_coin_amount": 0
"yoho_coin_amount": 0,
"buyer_payment":"offlineCash",
"buyer_payment_str":"现金"
},
"md5": "4eef7b693d86f525124f6ebfcc05c02a",
"message": "third order query"
... ...
... ... @@ -114,6 +114,7 @@
],
//按钮呈现控制
"links":["buyNow","closeOrder"]
// 新增按钮refundApply,表示申请退款
//"links":{
// "buyNow":"Y",//立即付款 Y-呈现,N-不呈现
// "closeOrder":"N",//取消订单
... ... @@ -178,6 +179,10 @@
"pay_lefttime":"6446",
//能否修改订单收货人地址 "Y":能修改 "N":不能修改
"can_update_delivery_address": "Y",
//当允许修改收货地址时该字段有意义:Y、允许修改省份;N、不允许修改省份
"is_support_change_province": "Y",
//表示原地址的省份的areaCode。如果不允许修改省份,前端可用该省份的areaCode查询下一级地址
"province_area_code": "320000000",
"coupons_amount": "-¥0.00",
"create_time": "1458138942",
"delivery_time": "只工作日送货(双休日、节假日不用送)",
... ... @@ -330,6 +335,7 @@
"return_yoho_coin_num":"6",//退还有货币
//按钮呈现控制
"links":["buyNow","closeOrder"]
// 新增按钮refundApply,表示申请退款
//"links":{
// "buyNow":"Y",//立即付款 Y-呈现,N-不呈现
// "closeOrder":"N",//取消订单
... ... @@ -1191,8 +1197,89 @@ http://dev-api.yohops.com:9999/?method=app.SpaceOrders.getOrderExNotice&order_co
2.部分商品需要品牌商调货至有货仓库,预计3-5天安排发货
3.商品需要品牌商调货至有货仓库,预计3-5天安排发货
### 申请退款
#### 说明
支付后交寄前可以调用此接口申请退款,实际上等同于取消订单
#### 请求参数
| Param Name | Param Value | Desc|
| :-------- | --------------:|----:|
| method | app.SpaceOrders.refundApply| 请求方法 |
| uid | 5772257 | uid |
| order_code | 1061003682 | 订单号 |
| client_type | iphone |
| reason_id | 1 | 原因id |
| reason | 支付不成功 | 原因描述 |
| app_type | 1 | 0:yohobuy 1:blk(blk必传) |
#### 正常返回结果
```json
{
"code":200,
"message":"订单取消成功"
}
```
### 11、申请退款(取消订单)原因列表
#### 说明
申请退款(取消订单)原因列表
#### 请求参数
| Param Name | Param Value | Desc|
| :-------- | --------------:|----:|
| method | app.SpaceOrders.refundApplyReasons| 请求方法 |
#### 正常返回结果
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"id": "1",
"reason": "支付不成功"
},
{
"id": "2",
"reason": "现在不想购买"
},
{
"id": "3",
"reason": "订单价格有问题"
},
{
"id": "4",
"reason": "修改订单信息"
},
{
"id": "5",
"reason": "错误或重复下单"
},
{
"id": "6",
"reason": "忘记使用优惠劵或YOHO币"
},
{
"id": "7",
"reason": "等待发货时间过长"
},
{
"id": "8",
"reason": "商品价格较贵"
},
{
"id": "9",
"reason": "运费过高"
},
{
"id": "10",
"reason": "其他"
}
],
"md5": "c5ebf5f9145238ea6bc861b4b3fd895a",
"message": "订单取消原因列表"
}
```
... ...
... ... @@ -184,7 +184,10 @@
"special_notice":{
"title":"该商品暂不支持7天无理由退换",
"remark":"1.考虑到个人卫生,例如内衣、内裤、袜子等贴身塑身类商品,不支持无理由退换货 2.香水、香薰、化妆品等特殊商品,无质量问题,不支持无理由退换货"
}
},
"refundShipFeeDescription":"1.如订单中只退部分商品,运费需由您个人承担。(如订单中包含赠品,保留赠品视为部分退货。)
2.如确认保留赠品,运费需由您承担。请于还款日前,通过有货分期还款以支付,避免给您造成不良信用记录。"
},
"md5": "72879cfb65bcd2705e4283d2f5dc1a30",
"message": "Refund goods list"
... ...
### app.vipgrade.fastexpress
> 接口名:`app.vipgrade.fastexpress`
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|int|否|1||uid|无|
#### 响应
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"vip_grade": 3,
"vip_name": "VIPIII白金会员",
"is_fast_express": 1 //1表示提供快速送达服务,0表示不提供
},
{
"vip_grade": 2,
"vip_name": "VIPII金卡会员",
"is_fast_express": 0
}
{
"vip_grade": 1,
"vip_name": "VIPI银卡会员",
"is_fast_express": 0
}],
"md5": "0808ebec8cba6148054cceed1c1395ef",
"message": "操作成功"
}
```
\ No newline at end of file
... ...