...
|
...
|
@@ -401,3 +401,262 @@ code为200即为成功,否则是失败。 |
|
|
}
|
|
|
```
|
|
|
|
|
|
## 5、获取店铺的品牌排名,当前等级、排名、上升名词##
|
|
|
|
|
|
获取店铺的品牌排名,当前等级、排名、上升名词(method=app.shops.shopbrandrank)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|
|
|
|app_version|float|10|否|1||APP版本|
|
|
|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|
|
|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|
|
|
|screen_size|string|20|否|800x900||(手机尺寸)|
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|brandId|int|否||品牌id|
|
|
|
|dateId |int|否||日期|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524
|
|
|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"brandId": 1200,
|
|
|
"brandMainCategory": 2,
|
|
|
"dateId": 20160524,
|
|
|
"rankChange": 5,
|
|
|
"rankLevel": 1,
|
|
|
"rankNow": 15
|
|
|
},
|
|
|
"md5": "64cdf0d30ba9174ddce76ecf71a91ad8",
|
|
|
"message": "shop business overview."
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 6、查询网销信息##
|
|
|
|
|
|
查询网销信息(method=app.shops.storagestatistics)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|
|
|
|app_version|float|10|否|1||APP版本|
|
|
|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|
|
|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|
|
|
|screen_size|string|20|否|800x900||(手机尺寸)|
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|productSkn|int|是||商品skn|
|
|
|
|factory_code|string|是||商品厂家编码|
|
|
|
|productSku|int|是||商品sku|
|
|
|
|shopId|int|是||店铺Id|
|
|
|
|brandId|int|是||品牌Id|
|
|
|
|maxSortId|int|是||一级分类Id|
|
|
|
|middleSortId|int|是||二级分类Id|
|
|
|
|smallSortId|int|是||三级分类Id|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.shops.storagestatistics&brandId=11
|
|
|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"additionInfo": {
|
|
|
"onSaleTotalNum": 1, // 已上架商品数
|
|
|
"outSaleTotalNum": 1, // 已下架商品数
|
|
|
"preSaleTotalNum": 2, // 待上架商品数
|
|
|
"storageTotalMoney": 67.3, // 库存总金额(元)
|
|
|
"storageTotalNum": 47 // 库存总数量
|
|
|
},
|
|
|
"list": [
|
|
|
{
|
|
|
"brandId": 11,
|
|
|
"brandName": "",
|
|
|
"colorId": 0,
|
|
|
"colorName": "",
|
|
|
"dateId": 0,
|
|
|
"goodsName": "",
|
|
|
"imageUrl": "0",
|
|
|
"maxSortId": 0,
|
|
|
"maxSortName": "0",
|
|
|
"middleSortId": 0,
|
|
|
"middleSortName": "",
|
|
|
"productSkc": 0,
|
|
|
"productSkn": 0,
|
|
|
"productSku": 0,
|
|
|
"purchasePrice": 0,
|
|
|
"salesPrice": 0,
|
|
|
"shopId": 0,
|
|
|
"shopName": "",
|
|
|
"sizeId": 0,
|
|
|
"sizeName": "",
|
|
|
"smallSortId": 0,
|
|
|
"smallSortName": "",
|
|
|
"status": "1",
|
|
|
"storageAmount": 33.3,
|
|
|
"storeNums": 11
|
|
|
},
|
|
|
{
|
|
|
"brandId": 11,
|
|
|
"brandName": "",
|
|
|
"colorId": 0,
|
|
|
"colorName": "",
|
|
|
"dateId": 0,
|
|
|
"goodsName": "",
|
|
|
"imageUrl": "0",
|
|
|
"maxSortId": 0,
|
|
|
"maxSortName": "0",
|
|
|
"middleSortId": 0,
|
|
|
"middleSortName": "",
|
|
|
"productSkc": 0,
|
|
|
"productSkn": 0,
|
|
|
"productSku": 0,
|
|
|
"purchasePrice": 0,
|
|
|
"salesPrice": 0,
|
|
|
"shopId": 0,
|
|
|
"shopName": "",
|
|
|
"sizeId": 0,
|
|
|
"sizeName": "",
|
|
|
"smallSortId": 0,
|
|
|
"smallSortName": "",
|
|
|
"status": "2",
|
|
|
"storageAmount": 22,
|
|
|
"storeNums": 22
|
|
|
},
|
|
|
{
|
|
|
"brandId": 11,
|
|
|
"brandName": "",
|
|
|
"colorId": 0,
|
|
|
"colorName": "",
|
|
|
"dateId": 0,
|
|
|
"goodsName": "",
|
|
|
"imageUrl": "0",
|
|
|
"maxSortId": 0,
|
|
|
"maxSortName": "0",
|
|
|
"middleSortId": 0,
|
|
|
"middleSortName": "",
|
|
|
"productSkc": 0,
|
|
|
"productSkn": 0,
|
|
|
"productSku": 0,
|
|
|
"purchasePrice": 0,
|
|
|
"salesPrice": 0,
|
|
|
"shopId": 0,
|
|
|
"shopName": "",
|
|
|
"sizeId": 0,
|
|
|
"sizeName": "",
|
|
|
"smallSortId": 0,
|
|
|
"smallSortName": "",
|
|
|
"status": "3",
|
|
|
"storageAmount": 11,
|
|
|
"storeNums": 13
|
|
|
},
|
|
|
{
|
|
|
"brandId": 11,
|
|
|
"brandName": "",
|
|
|
"colorId": 0,
|
|
|
"colorName": "",
|
|
|
"dateId": 0,
|
|
|
"goodsName": "",
|
|
|
"imageUrl": "0",
|
|
|
"maxSortId": 0,
|
|
|
"maxSortName": "0",
|
|
|
"middleSortId": 0,
|
|
|
"middleSortName": "",
|
|
|
"productSkc": 0,
|
|
|
"productSkn": 0,
|
|
|
"productSku": 0,
|
|
|
"purchasePrice": 0,
|
|
|
"salesPrice": 0,
|
|
|
"shopId": 0,
|
|
|
"shopName": "",
|
|
|
"sizeId": 0,
|
|
|
"sizeName": "",
|
|
|
"smallSortId": 0,
|
|
|
"smallSortName": "",
|
|
|
"status": "2",
|
|
|
"storageAmount": 1,
|
|
|
"storeNums": 1
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 4,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"md5": "83ccbb2eb14e08c90558b7c00d6c0b8e",
|
|
|
"message": "storage statistics list"
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 7、获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额##
|
|
|
|
|
|
获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额(method=app.shops.shopbusinessoverview)
|
|
|
#### 公共请求参数
|
|
|
| 参数名称 | 参数类型 | 长度 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|-----:|----:|
|
|
|
|client_secret|string|50|否|5ac68f20cb18efe154be||进入接口提供的参数加密信息|
|
|
|
|app_version|float|10|否|1||APP版本|
|
|
|
|os_version|string|20|否|Android4.4||系统版本+机器型号|
|
|
|
|client_type|string|20|否|iphone/android/ipad||手机型号(不区分大小写)|
|
|
|
|screen_size|string|20|否|800x900||(手机尺寸)|
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|brandId|int|否||品牌id|
|
|
|
|dateId |int|否||日期|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.217:8080/gateway?method=app.shops.shopbrandrank&brandId=1200&dateId=20160524
|
|
|
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
``` json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"brandId": 1200,
|
|
|
"brandName": "wss",
|
|
|
"buyNumbers": 100,
|
|
|
"dateId": 20160523,
|
|
|
"orderAmount": 100,
|
|
|
"shopId": 431,
|
|
|
"shopName": "wss"
|
|
|
},
|
|
|
"md5": "1d143fd1d71504f9d7a82121202c4bfc",
|
|
|
"message": "shop business overview."
|
|
|
}
|
|
|
|
|
|
```
|
|
|
|
...
|
...
|
|