|
|
## 1、模特卡##
|
|
|
## 1、添加到货通知##
|
|
|
|
|
|
(method=web.productModelcard.list)
|
|
|
(method=app.arrivalNotice.add)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_id|int| 是| 10961107|null|产品ID|
|
|
|
|product_skn|int|否|51257805|null|商品skn|
|
|
|
|erp_sku_id|int|否|1107172|null|商品skuId|
|
|
|
|uid|int|否|10961101|null|用户ID|
|
|
|
|mobile|string|是|是是13911111111|null|用户手机号|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.202:8078/?method=web.productModelcard.list&product_id=18354&debug=XYZ&v=7
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
alg: "SALT_MD5",
|
|
|
code: 200,
|
|
|
data: [
|
|
|
{
|
|
|
modelImg: "http://img13.static.yhbimg.com/modelCard/2012/05/18/17/027605385823e08e32f3475deb105fd2f9.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
modelName: "MATEUS",
|
|
|
modelcardId: 16,
|
|
|
productId: 18354,
|
|
|
size: "L",
|
|
|
sortId: 1
|
|
|
},
|
|
|
{
|
|
|
modelImg: "http://img12.static.yhbimg.com/modelCard/2012/03/12/11/02597b14bb6c8abcd650dcaee67dd1de4e.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
modelName: "杨亚运",
|
|
|
modelcardId: 7,
|
|
|
productId: 18354,
|
|
|
size: "M",
|
|
|
sortId: 1
|
|
|
}
|
|
|
],
|
|
|
md5: "d5e73c37741892fc8ae344886ad57841",
|
|
|
message: "product modelcard list"
|
|
|
}
|
|
|
```
|
|
|
## 2、产品banner详情##
|
|
|
|
|
|
(method=web.productBanner.data)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_id|int| 是| 10575|null|产品ID|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.202:8080/gateway?method=web.productBanner.data&product_id=10575&debug=XYZ&v=7
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
alg: "SALT_MD5",
|
|
|
code: 200,
|
|
|
data: {
|
|
|
bannerImg: "http://img12.static.yhbimg.com/productbanner/2015/05/11/18/02a5711def866e383fc60c178f7fee519d.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
promotionUrl: "http://sale.yohobuy.com/?specialsale_id=4"
|
|
|
},
|
|
|
md5: "d33f3337f56c9243e4246f0c2ad947b6",
|
|
|
message: "product banner info"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3、搭配##
|
|
|
|
|
|
(method=web.productCollocation.list)
|
|
|
请求方式:POST
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_id|int| 是| 10575|null|产品ID|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.202:8080/gateway/?method=web.productCollocation.list&product_id=22255&client_secret=aa&app_version=3&v=9&os_version=22&client_type=ad&screen_size=tes&debug=XYZ
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
alg: "SALT_MD5",
|
|
|
code: 200,
|
|
|
data: [
|
|
|
{
|
|
|
content: "",
|
|
|
createTime: 1348559778,
|
|
|
id: 697,
|
|
|
imageUrl: "http://img12.static.yhbimg.com/goodsimg/2012/09/25/15/0202738ce1fb546a4cd80ae91fba1fb2b5.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
info: "",
|
|
|
infos: [
|
|
|
{
|
|
|
height: 451,
|
|
|
id: 50027774,
|
|
|
label: "50027774",
|
|
|
left: 246,
|
|
|
product: {
|
|
|
arrivalTime: 0,
|
|
|
attribute: 1,
|
|
|
auditingTime: 0,
|
|
|
brandId: 181,
|
|
|
categoryBoList: [ ],
|
|
|
cnAlphabet: "HUMORXieWenBuHaLunKu1",
|
|
|
createTime: 1346983032,
|
|
|
editTime: 0,
|
|
|
elements: "",
|
|
|
erpProductId: 50027774,
|
|
|
firstShelveTime: 1458616274,
|
|
|
folderId: 0,
|
|
|
gender: "1",
|
|
|
goodsList: [
|
|
|
{
|
|
|
colorId: 4,
|
|
|
colorImage: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
colorName: "卡其",
|
|
|
factorySn: "",
|
|
|
firstShelveTime: 1347850498,
|
|
|
goodsImagesList: [
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160277,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "Y",
|
|
|
orderBy: 1,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
},
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160278,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/014849797b74fce2c27c0856427b4ae964.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "N",
|
|
|
orderBy: 0,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
}
|
|
|
],
|
|
|
goodsName: "HUMOR斜纹布哈伦裤-1",
|
|
|
goodsSizeBoList: [ ],
|
|
|
id: 34662,
|
|
|
isDefault: "Y",
|
|
|
isDown: "N",
|
|
|
matchExplain: "",
|
|
|
productId: 23747,
|
|
|
productSkc: 34662,
|
|
|
status: 1,
|
|
|
viewNum: 0
|
|
|
}
|
|
|
],
|
|
|
id: 23747,
|
|
|
isAdvance: "N",
|
|
|
isAuditing: "Y",
|
|
|
isCollect: "",
|
|
|
isDown: "N",
|
|
|
isEdit: 1,
|
|
|
isHot: "N",
|
|
|
isJit: "N",
|
|
|
isLimitBuy: "N",
|
|
|
isLimited: "N",
|
|
|
isNew: "Y",
|
|
|
isOutlets: "N",
|
|
|
isPayDelivery: "",
|
|
|
isPromotion: 0,
|
|
|
isRecommend: "N",
|
|
|
isReplenishment: 0,
|
|
|
isRetrieval: "N",
|
|
|
isSales: "Y",
|
|
|
isSpecial: "N",
|
|
|
limitProductCode: "",
|
|
|
material: "",
|
|
|
maxSortId: 3,
|
|
|
middleSortId: 26,
|
|
|
pattern: "",
|
|
|
phrase: "丹麦品牌HUMOR出品的斜纹布哈伦裤,用上质感非常不俗的斜纹布(chino)制作,特别之处在于裤型设计为了小哈伦裤的样式,略微吊裆,上身并不是非常明显,但又和普通直筒裤有着显著区别,效果非常不俗!而前面的扣子则是设计为了明扣的样式,造型感超强。",
|
|
|
productName: "HUMOR 斜纹布哈伦裤",
|
|
|
productPriceBo: {
|
|
|
formatMarketPrice: "¥699.00",
|
|
|
formatSalesPrice: "¥200.00",
|
|
|
formatSpecialPrice: "¥200.00",
|
|
|
marketPrice: 699,
|
|
|
productId: 23747,
|
|
|
productSkn: 50027774,
|
|
|
salesPrice: 200,
|
|
|
specialPrice: 200,
|
|
|
vipDiscount: 1,
|
|
|
vipDiscountType: 3,
|
|
|
vipPrice: "¥0.00",
|
|
|
vipPrices: [ ],
|
|
|
yohoCoinNum: 0
|
|
|
},
|
|
|
productTagBoList: [ ],
|
|
|
productUrl: "",
|
|
|
promotionBoList: [ ],
|
|
|
salableTime: "0",
|
|
|
saleStatus: 0,
|
|
|
salesPhrase: "",
|
|
|
seasons: "",
|
|
|
sellChannels: "0",
|
|
|
seriesId: 0,
|
|
|
shelveTime: 1354844345,
|
|
|
shopId: 0,
|
|
|
showStatus: 0,
|
|
|
showWeightAndHeight: false,
|
|
|
smallSortId: 129,
|
|
|
sortId: 0,
|
|
|
status: 1,
|
|
|
storage: 0,
|
|
|
style: "",
|
|
|
supplierId: 0,
|
|
|
vipDiscountType: 1
|
|
|
},
|
|
|
top: 476,
|
|
|
width: 241
|
|
|
}
|
|
|
],
|
|
|
orderBy: 0,
|
|
|
productId: 22255
|
|
|
},
|
|
|
{
|
|
|
content: "",
|
|
|
createTime: 1348559955,
|
|
|
id: 698,
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/25/15/017a3f2941658c78e465055ec902e69d91.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
info: "",
|
|
|
infos: [
|
|
|
{
|
|
|
height: 453,
|
|
|
id: 50027774,
|
|
|
label: "50027774",
|
|
|
left: 265,
|
|
|
product: {
|
|
|
arrivalTime: 0,
|
|
|
attribute: 1,
|
|
|
auditingTime: 0,
|
|
|
brandId: 181,
|
|
|
categoryBoList: [ ],
|
|
|
cnAlphabet: "HUMORXieWenBuHaLunKu1",
|
|
|
createTime: 1346983032,
|
|
|
editTime: 0,
|
|
|
elements: "",
|
|
|
erpProductId: 50027774,
|
|
|
firstShelveTime: 1458616274,
|
|
|
folderId: 0,
|
|
|
gender: "1",
|
|
|
goodsList: [
|
|
|
{
|
|
|
colorId: 4,
|
|
|
colorImage: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
colorName: "卡其",
|
|
|
factorySn: "",
|
|
|
firstShelveTime: 1347850498,
|
|
|
goodsImagesList: [
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160277,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "Y",
|
|
|
orderBy: 1,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
},
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160278,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/014849797b74fce2c27c0856427b4ae964.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "N",
|
|
|
orderBy: 0,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
}
|
|
|
],
|
|
|
goodsName: "HUMOR斜纹布哈伦裤-1",
|
|
|
goodsSizeBoList: [ ],
|
|
|
id: 34662,
|
|
|
isDefault: "Y",
|
|
|
isDown: "N",
|
|
|
matchExplain: "",
|
|
|
productId: 23747,
|
|
|
productSkc: 34662,
|
|
|
status: 1,
|
|
|
viewNum: 0
|
|
|
}
|
|
|
],
|
|
|
id: 23747,
|
|
|
isAdvance: "N",
|
|
|
isAuditing: "Y",
|
|
|
isCollect: "",
|
|
|
isDown: "N",
|
|
|
isEdit: 1,
|
|
|
isHot: "N",
|
|
|
isJit: "N",
|
|
|
isLimitBuy: "N",
|
|
|
isLimited: "N",
|
|
|
isNew: "Y",
|
|
|
isOutlets: "N",
|
|
|
isPayDelivery: "",
|
|
|
isPromotion: 0,
|
|
|
isRecommend: "N",
|
|
|
isReplenishment: 0,
|
|
|
isRetrieval: "N",
|
|
|
isSales: "Y",
|
|
|
isSpecial: "N",
|
|
|
limitProductCode: "",
|
|
|
material: "",
|
|
|
maxSortId: 3,
|
|
|
middleSortId: 26,
|
|
|
pattern: "",
|
|
|
phrase: "丹麦品牌HUMOR出品的斜纹布哈伦裤,用上质感非常不俗的斜纹布(chino)制作,特别之处在于裤型设计为了小哈伦裤的样式,略微吊裆,上身并不是非常明显,但又和普通直筒裤有着显著区别,效果非常不俗!而前面的扣子则是设计为了明扣的样式,造型感超强。",
|
|
|
productName: "HUMOR 斜纹布哈伦裤",
|
|
|
productPriceBo: {
|
|
|
formatMarketPrice: "¥699.00",
|
|
|
formatSalesPrice: "¥200.00",
|
|
|
formatSpecialPrice: "¥200.00",
|
|
|
marketPrice: 699,
|
|
|
productId: 23747,
|
|
|
productSkn: 50027774,
|
|
|
salesPrice: 200,
|
|
|
specialPrice: 200,
|
|
|
vipDiscount: 1,
|
|
|
vipDiscountType: 3,
|
|
|
vipPrice: "¥0.00",
|
|
|
vipPrices: [ ],
|
|
|
yohoCoinNum: 0
|
|
|
},
|
|
|
productTagBoList: [ ],
|
|
|
productUrl: "",
|
|
|
promotionBoList: [ ],
|
|
|
salableTime: "0",
|
|
|
saleStatus: 0,
|
|
|
salesPhrase: "",
|
|
|
seasons: "",
|
|
|
sellChannels: "0",
|
|
|
seriesId: 0,
|
|
|
shelveTime: 1354844345,
|
|
|
shopId: 0,
|
|
|
showStatus: 0,
|
|
|
showWeightAndHeight: false,
|
|
|
smallSortId: 129,
|
|
|
sortId: 0,
|
|
|
status: 1,
|
|
|
storage: 0,
|
|
|
style: "",
|
|
|
supplierId: 0,
|
|
|
vipDiscountType: 1
|
|
|
},
|
|
|
top: 464,
|
|
|
width: 213
|
|
|
}
|
|
|
],
|
|
|
orderBy: 0,
|
|
|
productId: 22255
|
|
|
},
|
|
|
{
|
|
|
content: "",
|
|
|
createTime: 1348559980,
|
|
|
id: 699,
|
|
|
imageUrl: "http://img12.static.yhbimg.com/goodsimg/2012/09/25/15/0276c5856a110830478e3367e3d9e665f8.jpg?imageView/{mode}/w/{width}/h/{height}",
|
|
|
info: "",
|
|
|
infos: [
|
|
|
{
|
|
|
height: 435,
|
|
|
id: 50027774,
|
|
|
label: "50027774",
|
|
|
left: 256,
|
|
|
product: {
|
|
|
arrivalTime: 0,
|
|
|
attribute: 1,
|
|
|
auditingTime: 0,
|
|
|
brandId: 181,
|
|
|
categoryBoList: [ ],
|
|
|
cnAlphabet: "HUMORXieWenBuHaLunKu1",
|
|
|
createTime: 1346983032,
|
|
|
editTime: 0,
|
|
|
elements: "",
|
|
|
erpProductId: 50027774,
|
|
|
firstShelveTime: 1458616274,
|
|
|
folderId: 0,
|
|
|
gender: "1",
|
|
|
goodsList: [
|
|
|
{
|
|
|
colorId: 4,
|
|
|
colorImage: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
colorName: "卡其",
|
|
|
factorySn: "",
|
|
|
firstShelveTime: 1347850498,
|
|
|
goodsImagesList: [
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160277,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/01461352cb02bbfa60c8d208d8836c72fe.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "Y",
|
|
|
orderBy: 1,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
},
|
|
|
{
|
|
|
angle: 0,
|
|
|
genderCover: 0,
|
|
|
goodsId: 34662,
|
|
|
id: 160278,
|
|
|
imageName: "",
|
|
|
imageUrl: "http://img10.static.yhbimg.com/goodsimg/2012/09/17/10/014849797b74fce2c27c0856427b4ae964.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
intro: 0,
|
|
|
isDefault: "N",
|
|
|
orderBy: 0,
|
|
|
productId: 23747,
|
|
|
status: 1
|
|
|
}
|
|
|
],
|
|
|
goodsName: "HUMOR斜纹布哈伦裤-1",
|
|
|
goodsSizeBoList: [ ],
|
|
|
id: 34662,
|
|
|
isDefault: "Y",
|
|
|
isDown: "N",
|
|
|
matchExplain: "",
|
|
|
productId: 23747,
|
|
|
productSkc: 34662,
|
|
|
status: 1,
|
|
|
viewNum: 0
|
|
|
}
|
|
|
],
|
|
|
id: 23747,
|
|
|
isAdvance: "N",
|
|
|
isAuditing: "Y",
|
|
|
isCollect: "",
|
|
|
isDown: "N",
|
|
|
isEdit: 1,
|
|
|
isHot: "N",
|
|
|
isJit: "N",
|
|
|
isLimitBuy: "N",
|
|
|
isLimited: "N",
|
|
|
isNew: "Y",
|
|
|
isOutlets: "N",
|
|
|
isPayDelivery: "",
|
|
|
isPromotion: 0,
|
|
|
isRecommend: "N",
|
|
|
isReplenishment: 0,
|
|
|
isRetrieval: "N",
|
|
|
isSales: "Y",
|
|
|
isSpecial: "N",
|
|
|
limitProductCode: "",
|
|
|
material: "",
|
|
|
maxSortId: 3,
|
|
|
middleSortId: 26,
|
|
|
pattern: "",
|
|
|
phrase: "丹麦品牌HUMOR出品的斜纹布哈伦裤,用上质感非常不俗的斜纹布(chino)制作,特别之处在于裤型设计为了小哈伦裤的样式,略微吊裆,上身并不是非常明显,但又和普通直筒裤有着显著区别,效果非常不俗!而前面的扣子则是设计为了明扣的样式,造型感超强。",
|
|
|
productName: "HUMOR 斜纹布哈伦裤",
|
|
|
productPriceBo: {
|
|
|
formatMarketPrice: "¥699.00",
|
|
|
formatSalesPrice: "¥200.00",
|
|
|
formatSpecialPrice: "¥200.00",
|
|
|
marketPrice: 699,
|
|
|
productId: 23747,
|
|
|
productSkn: 50027774,
|
|
|
salesPrice: 200,
|
|
|
specialPrice: 200,
|
|
|
vipDiscount: 1,
|
|
|
vipDiscountType: 3,
|
|
|
vipPrice: "¥0.00",
|
|
|
vipPrices: [ ],
|
|
|
yohoCoinNum: 0
|
|
|
},
|
|
|
productTagBoList: [ ],
|
|
|
productUrl: "",
|
|
|
promotionBoList: [ ],
|
|
|
salableTime: "0",
|
|
|
saleStatus: 0,
|
|
|
salesPhrase: "",
|
|
|
seasons: "",
|
|
|
sellChannels: "0",
|
|
|
seriesId: 0,
|
|
|
shelveTime: 1354844345,
|
|
|
shopId: 0,
|
|
|
showStatus: 0,
|
|
|
showWeightAndHeight: false,
|
|
|
smallSortId: 129,
|
|
|
sortId: 0,
|
|
|
status: 1,
|
|
|
storage: 0,
|
|
|
style: "",
|
|
|
supplierId: 0,
|
|
|
vipDiscountType: 1
|
|
|
},
|
|
|
top: 497,
|
|
|
width: 263
|
|
|
}
|
|
|
],
|
|
|
orderBy: 0,
|
|
|
productId: 22255
|
|
|
}
|
|
|
],
|
|
|
md5: "7755bf7e87f3bdea3709f3c154e91cb5",
|
|
|
message: "product collocation list"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 4、舒适度##
|
|
|
|
|
|
(method=web.productComfort.data)
|
|
|
请求方式:POST
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_id|int| 是| 10575|null|产品ID|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.202:8080/gateway/?method=web.productComfort.data&product_id=22255
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
alg: "SALT_MD5",
|
|
|
code: 200,
|
|
|
data: [
|
|
|
{
|
|
|
caption: {
|
|
|
caption: "弹性",
|
|
|
high: "大",
|
|
|
low: "小"
|
|
|
},
|
|
|
wearSense: {
|
|
|
id: 1,
|
|
|
value: 4
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
caption: {
|
|
|
caption: "厚度",
|
|
|
high: "厚",
|
|
|
low: "薄"
|
|
|
},
|
|
|
wearSense: {
|
|
|
id: 2,
|
|
|
value: 1
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
caption: {
|
|
|
caption: "柔软度",
|
|
|
high: "硬",
|
|
|
low: "软"
|
|
|
},
|
|
|
wearSense: {
|
|
|
id: 3,
|
|
|
value: 1
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
caption: {
|
|
|
caption: "透气性",
|
|
|
high: "强",
|
|
|
low: "弱"
|
|
|
},
|
|
|
wearSense: {
|
|
|
id: 4,
|
|
|
value: 4
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
md5: "76591219c2aa4c630515dd50d465cba6",
|
|
|
message: "product comfort"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 5、商品详情接口##
|
|
|
|
|
|
(method=app.product.data)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 是否必填 | 范围 | 示例 | 默认值 | 备注 |
|
|
|
|-------| -----|-----|-----|-----|----|----|
|
|
|
|app_version|String|否|0-11|4.9.2|null|版本号|
|
|
|
|product_skn|String|否|0-11|51178553|null|商品skn,为空时product_id必填|
|
|
|
|product_id|String|否|0-11|321819|null|商品id,为空时product_skn必填|
|
|
|
|uid|String|否|0-11|11084019|null|用户ID|
|
|
|
|tags_filter|Integer|否|0-2|0|0|过滤标签|
|
|
|
|current_vip_level|Integer|否|0-3|0|0|当前用户等级|
|
|
|
|is_student|Integer|否|0-1|0|0|是否是学生身份|
|
|
|
|app_type|Integer|否|0-1|0|0|客户端类型 0:有货 1:BLK|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?uid=11084019&product_id=321819&yh_channel=1&screen_size=1080x1776&app_version=4.0.3&os_version=android4.4.2%3APE-TL20&showcomment=Y&v=7&client_secret=e5863045f62d5eab604469a6b4b7895d&client_type=android&gender=1%2C3&method=app.product.data&product_skn=51178553&session_key=cba963d9265806acc486f77e5258dec8
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"attribute": 1,
|
|
|
"brand_info": {
|
|
|
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2016/04/14/14/02c768cf6f801720ea28451cc5fe0aaedd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"brand_id": 763,
|
|
|
"brand_name": "Genanx"
|
|
|
},
|
|
|
"cn_alphabet": "GENANXJ3341MianYi",
|
|
|
"format_market_price": "¥1988.00",
|
|
|
"format_sales_price": "¥598.00",
|
|
|
"brand_id": 763,
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": 2,
|
|
|
"color_image": "http://img13.static.yhbimg.com/goodsimg/2015/12/13/11/02e4d1ca9e4fb0a05fbc47c896dec55546.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"color_name": "黑色",
|
|
|
"goods_id": 413961,
|
|
|
"images_list": [
|
|
|
{
|
|
|
"image_url": "http://img13.static.yhbimg.com/goodsimg/2015/12/13/11/02e4d1ca9e4fb0a05fbc47c896dec55546.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
|
|
|
},
|
|
|
{
|
|
|
"image_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/06/06/022131fb5d4ae4508ef43cf0cb4e7e08b3.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
|
|
|
},
|
|
|
{
|
|
|
"image_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/06/06/028200fbc5e15d74b5d3a0022ad0314797.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
|
|
|
}
|
|
|
],
|
|
|
"is_default": "N",
|
|
|
"product_skc": 311271,
|
|
|
"size_list": [
|
|
|
{
|
|
|
"order_by": 1175,
|
|
|
"product_sku": 980760,
|
|
|
"size_id": 203,
|
|
|
"size_name": "M",
|
|
|
"storage_number": 0
|
|
|
},
|
|
|
{
|
|
|
"order_by": 1169,
|
|
|
"product_sku": 980761,
|
|
|
"size_id": 201,
|
|
|
"size_name": "L",
|
|
|
"storage_number": 0
|
|
|
},
|
|
|
{
|
|
|
"order_by": 1163,
|
|
|
"product_sku": 980762,
|
|
|
"size_id": 211,
|
|
|
"size_name": "XL",
|
|
|
"storage_number": 0
|
|
|
},
|
|
|
{
|
|
|
"order_by": 1157,
|
|
|
"product_sku": 980763,
|
|
|
"size_id": 216,
|
|
|
"size_name": "XXL",
|
|
|
"storage_number": 0
|
|
|
}
|
|
|
],
|
|
|
"status": 1
|
|
|
}
|
|
|
],
|
|
|
"info": {
|
|
|
"comment_total": 0,
|
|
|
"consult_total": 0
|
|
|
},
|
|
|
"isLimitBuy": false,
|
|
|
"is_advance": "N",
|
|
|
"is_collect": "N",
|
|
|
"is_outlets": "N",
|
|
|
"is_secKill": "N",
|
|
|
"limitProductCode": "",
|
|
|
"limitProductSku":"", //限购商品sku
|
|
|
"market_price": 1988,
|
|
|
"phrase": "GENANX的品牌标志是由一道至上而下的闪电贯穿其中,闪电象征着品牌崇尚“力量、速度、激情、狂热”的精神内涵。从另一方面,正是这种无所畏惧的精神与力量,引导着GENANX整个品牌的发展,从始至终都贯彻在GENANX的时装设计与风格塑造之中。",
|
|
|
"product_id": 321819,
|
|
|
"product_name": "Genanx 压纹字母刺绣防风棉衣",
|
|
|
"product_skn": 51178553,
|
|
|
"product_url": "http://m.yohobuy.com/product/pro_321819_413961/GENANXJ3341MianYi.html",
|
|
|
"promotion": [
|
|
|
{
|
|
|
"promotion_title": "【Genanx】加¥99购休闲裤",
|
|
|
"promotion_type": "加价购"
|
|
|
},
|
|
|
{
|
|
|
"promotion_title": "【全场99元加价购】",
|
|
|
"promotion_type": "加价购"
|
|
|
},
|
|
|
{
|
|
|
"promotion_title": "【全场59元加价购】",
|
|
|
"promotion_type": "加价购"
|
|
|
},
|
|
|
{
|
|
|
"promotion_title": "【全场159元加价购】",
|
|
|
"promotion_type": "加价购"
|
|
|
}
|
|
|
],
|
|
|
"saleStatus": 0,
|
|
|
"sales_phrase": "",
|
|
|
"sales_price": 598,
|
|
|
"showStatus": 0,
|
|
|
"storage_sum": 0,
|
|
|
"tags": [
|
|
|
"is_discount",
|
|
|
"is_soon_sold_out"
|
|
|
],
|
|
|
"vip_price": "¥0.00"
|
|
|
},
|
|
|
"md5": "fdbd95851d6a171af283bb72f7396ba7",
|
|
|
"message": "product info"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 6、获取所有频道##
|
|
|
|
|
|
(method=app.blk.getAllChannels)
|
|
|
请求方式:POST
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|client_type|String|否|h5|null|客户端类型|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=h5&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=app.blk.getAllChannels
|
|
|
|
|
|
http://192.168.102.205:8080/gateway/?method=app.arrivalNotice.add&uid=10961101&erp_sku_id=1107172&debug=XYZ&product_skn=51257805&mobile=13911111111
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
...
|
...
|
@@ -758,373 +21,53 @@ code为200即为成功且只会返回200,每次都会有响应结果。 |
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"channel_id":301,
|
|
|
"channel_name": "MEN男士",
|
|
|
"content_code": "aa8d34c85934c2ccc16e2babd3eb5e47"
|
|
|
},
|
|
|
{
|
|
|
"channel_id":302,
|
|
|
"channel_name": "WOMEN女士",
|
|
|
"content_code": "3ad8826fc89fb0d023a4cd06a6991219"
|
|
|
},
|
|
|
{
|
|
|
"channel_id":303,
|
|
|
"channel_name": "LIFESTYLE生活",
|
|
|
"content_code": "9ee58aadd9559d07207fe4a98843eaac"
|
|
|
}
|
|
|
],
|
|
|
"md5": "b25ebf5fbed49142fb00da3a69a9ec0e",
|
|
|
"message": "blk channel List"
|
|
|
"data": "success",
|
|
|
"md5": "49fc8867d8def8db166ab8961fce24f3",
|
|
|
"message": "addArrivalNotice success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2、取消到货通知##
|
|
|
|
|
|
## 7、查询是否支持退换货##
|
|
|
|
|
|
(method=app.product.refundExchange)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_skn|String|否|50001796,50001794|null|skn列表,多个用英文逗号分隔|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://devapi.yoho.cn:58078/?debug=XYZ&method=app.product.refundExchange&product_skn=50001796,50001794
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"50001794": "N", //N表示没有限制,Y表示是特殊商品有限制
|
|
|
"50001796": "Y" //N表示没有限制,Y表示是特殊商品有限制
|
|
|
},
|
|
|
"md5": "a849be68446129c27c16baaf53ada78e",
|
|
|
"message": "RefundExchange List."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 8、商品详情页中的促销活动展示##
|
|
|
|
|
|
(method=app.product.promotion)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_skn|int|否|51208311|null|商品skn|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.97.150/?app_version=4.9.2.1609120001&client_secret=30141d64b04902b1f878a7149808aebd&client_type=iphone&method=app.product.promotion&os_version=10.0.2&product_skn=51208311&screen_size=375x667&v=7
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
[
|
|
|
{
|
|
|
"promotionTitle": "【精选型品夯售】3件5折",
|
|
|
"promotionType": "打折"
|
|
|
},
|
|
|
{
|
|
|
"promotionTitle": "【精选型品夯售】2件6折",
|
|
|
"promotionType": "打折"
|
|
|
},
|
|
|
{
|
|
|
"promotionTitle": "【YOHOPE】满¥199赠原创百搭T恤 赠完即止",
|
|
|
"promotionType": "赠品"
|
|
|
}
|
|
|
],
|
|
|
"md5": "502120b2c130a5fb469cbcba29c28203",
|
|
|
"message": "product promotionInfo"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 9、最近两条咨询信息##
|
|
|
|
|
|
(method=app.consult.lastTwo)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|page|int|是|null|1|第几页|
|
|
|
|limit|int|是|3|2|每页显示条数|
|
|
|
|productId|int|否|376597|0|产品ID不能为空,或者为0|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.45.120/?app_version=4.9.2.1609120001&client_secret=53b65f752d06c0bf1b895731a8fa2c96&client_type=iphone&limit=3&method=app.consult.lastTwo&os_version=10.0.2&productId=376597&screen_size=375x667&uid=&v=7
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"total": 17,
|
|
|
"page_total": 0,
|
|
|
"page": 1,
|
|
|
"list":
|
|
|
[
|
|
|
{
|
|
|
"answer_time": "2016-09-03 14:21:38",
|
|
|
"total": 0,
|
|
|
"answer": "向您推荐XL号供参考,由于版型和个人穿衣风格不同,建议您参照此款商品“尺码信息”。",
|
|
|
"ask_time": "2016-09-03 14:04:53",
|
|
|
"ask": "男生177 80kg建议什么码啊",
|
|
|
"id": 3633872
|
|
|
},
|
|
|
{
|
|
|
"answer_time": "2016-09-03 14:04:35",
|
|
|
"total": 0,
|
|
|
"answer": "向您推荐XL号供参考,由于版型和个人穿衣风格不同,建议您参照此款商品“尺码信息”。",
|
|
|
"ask_time": "2016-09-03 14:03:41",
|
|
|
"ask": "男生177 80kg 买那个码呢",
|
|
|
"id": 3633870
|
|
|
},
|
|
|
{
|
|
|
"answer_time": "2016-08-26 21:29:24",
|
|
|
"total": 0,
|
|
|
"answer": "向您推荐M号供参考,由于版型和个人穿衣风格不同,建议您参照此款商品“尺码信息”。",
|
|
|
"ask_time": "2016-08-26 21:16:51",
|
|
|
"ask": "男生 168身高 47公斤 不要收腰 这款穿什么尺码合适?",
|
|
|
"id": 3605856
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"md5": "3e699e9b8a30d763e2d477f039d40c7b",
|
|
|
"message": "获取咨询信息成功."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 10、咨询信息##
|
|
|
|
|
|
(method=app.consult.common)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.97.150/?app_version=4.9.2.1609120001&client_secret=cf0e1fa7d8923346a7920cf118772061&client_type=iphone&method=app.consult.common&os_version=10.0.2&screen_size=375x667&v=7
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
[
|
|
|
{
|
|
|
"answer": "有货www.yohobuy.com所售的商品均经品牌授权,正品保障,支持专柜验货,与您亲临商场选购的商品一样享受相同的质量保证,请您放心购买。",
|
|
|
"id": 1,
|
|
|
"question": "商品都是正品吗?"
|
|
|
},
|
|
|
{
|
|
|
"answer": "有货所售商品尺寸均为人工实物测量,可能会存在1-2cm的正常误差范围。",
|
|
|
"id": 2,
|
|
|
"question": "尺码表上的尺码标准吗?"
|
|
|
},
|
|
|
{
|
|
|
"answer": "有货所有商品均采用实物专业拍摄,但由于个人显示器不同,可能导致实物与图片存在色差,最终颜色以实物为准。",
|
|
|
"id": 3,
|
|
|
"question": "图片颜色和实物颜色相同吗?"
|
|
|
},
|
|
|
{
|
|
|
"answer": "当天下午 4点前订单当天发,之后的订单隔天发,合作快递有:韵达、 EMS、顺丰、申通、圆通、宅急送,普通快递 3-5天左右送达,顺丰速运 1-2天送达。",
|
|
|
"id": 4,
|
|
|
"question": "发货及配送"
|
|
|
},
|
|
|
{
|
|
|
"answer": "签收商品未经穿着不影响二次销售的情况下,7日内退货、15日内换货;退回商品保证吊牌、标签、包装完整(内衣、内裤、袜子、泳衣泳裤、贴身塑身衣类商品、香水、香薰、化妆品、电子产品等特殊商品,无质量问题不支持七天无理由退换货,敬请谅解)。",
|
|
|
"id": 5,
|
|
|
"question": "退货 or 换货"
|
|
|
}
|
|
|
],
|
|
|
"md5": "2f64a40d7218d4dd5f4050d3390918f3",
|
|
|
"message": "查询常用问题成功."
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
## 11、最近一条晒单信息##
|
|
|
|
|
|
(method=show.recentShareOrderByProductId)
|
|
|
请求方式:GET
|
|
|
(method=app.arrivalNotice.cancel)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|productId|String|否|376597|null|产品ID|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.45.120/?app_version=4.9.2.1609120001&client_secret=8f9362f22ce9957f3b142d935e5d719e&client_type=iphone&method=show.recentShareOrderByProductId&os_version=10.0.2&productId=376597&screen_size=375x667&uid=&v=7
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
{
|
|
|
"pageNo": 1,
|
|
|
"totalPage": 10,
|
|
|
"pageSize": 1,
|
|
|
"list":
|
|
|
[
|
|
|
{
|
|
|
"shareReward": true,
|
|
|
"userInfo":
|
|
|
{
|
|
|
"uid": 3696058,
|
|
|
"vipLevel": 2,
|
|
|
"headIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"nickName": "ん °"
|
|
|
},
|
|
|
"shareOrderTagList":
|
|
|
[
|
|
|
{
|
|
|
"posX": 5013,
|
|
|
"posY": 5013,
|
|
|
"imageId": 864781,
|
|
|
"createTime": 1473088822,
|
|
|
"isFlip": 1,
|
|
|
"tagId": 261,
|
|
|
"moodType": "",
|
|
|
"tagName": "TEEBACCO",
|
|
|
"type": 1
|
|
|
}
|
|
|
],
|
|
|
"productId": "376597",
|
|
|
"orderId": "16897994",
|
|
|
"goodsId": "480539",
|
|
|
"satisfied": 4,
|
|
|
"goods":
|
|
|
{
|
|
|
"size_name": "S",
|
|
|
"goods_image": "http://img11.static.yhbimg.com/goodsimg/2016/04/25/08/01e7cc43840f3ba486cafbe70f274ef238.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"product_url": "",
|
|
|
"productId": 376597,
|
|
|
"goodsId": 480539,
|
|
|
"color_name": "白色",
|
|
|
"pruduct_name": "TEEBACCO 卡通小象印花短袖T恤"
|
|
|
},
|
|
|
"isHideHeight": 0,
|
|
|
"weight": 51,
|
|
|
"erpSkuId": "1090272",
|
|
|
"content": "面料挺好的",
|
|
|
"url": "http://img11.static.yhbimg.com/sns/2016/09/05/23/01f0fd4ee22d7a1c934ad59c4b6fb0d282.jpg?imageView2/{mode}/w/{width}/h/{height}",
|
|
|
"uid": "3696058",
|
|
|
"size": "MIDDLE",
|
|
|
"createTime": 1473088822,
|
|
|
"anonymous": false,
|
|
|
"id": 2996147,
|
|
|
"recomReward": false,
|
|
|
"height": 163
|
|
|
}
|
|
|
],
|
|
|
"totalCount": 10
|
|
|
},
|
|
|
"message": "成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|erp_sku_id|int|否|1107172|null|商品skuId|
|
|
|
|uid|int|否|10961101|null|用户ID|
|
|
|
|
|
|
## 12、品牌信息##
|
|
|
|
|
|
(method=app.shop.queryShopsByBrandId)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|brand_id|int|否|261|null|品牌ID|
|
|
|
|app_type|String|是|null|0|客户端类型 0:有货 1:BLK|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.97.150/?app_version=4.9.2.1609120001&brand_id=261&client_secret=b31c9617601d52f9a878cb033ddfba5a&client_type=iphone&method=app.shop.queryShopsByBrandId&os_version=10.0.2&screen_size=375x667&v=7
|
|
|
|
|
|
http://192.168.102.205:8080/gateway/?method=app.arrivalNotice.cancel&uid=10961101&erp_sku_id=1107172&debug=XYZ
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data":
|
|
|
[
|
|
|
{
|
|
|
"brand_domain": "teebacco",
|
|
|
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2015/12/03/14/013695ef0a10589ce0a789d9cd3c729b5c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"brand_name": "TEEBACCO",
|
|
|
"brand_id":261
|
|
|
}
|
|
|
],
|
|
|
"md5": "2d92e181dd526e2c1e19f7ecf0512962",
|
|
|
"message": "product brandshop Intro"
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": "success",
|
|
|
"md5": "49fc8867d8def8db166ab8961fce24f3",
|
|
|
"message": "cancelArrivalNotice success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3、查询到货通知##
|
|
|
|
|
|
## 13、商品详情描述信息##
|
|
|
|
|
|
(method=app.product.intro)
|
|
|
请求方式:GET
|
|
|
(method=app.arrivalNotice.query)
|
|
|
请求方式:get
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_skn|int|否|51208311|null|商品skn|
|
|
|
|yh_channel|int|是|null|1|频道(1或2)|
|
|
|
|gender|String|是|null|null|性别(1或2)|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://54.223.97.150/?app_version=4.9.2.1609120001&client_secret=283f2c3ace766a68fc570fe5520f141a&client_type=iphone&method=app.product.intro&os_version=10.0.2&product_skn=51208311&return_type=html&screen_size=375x667&udid=ec378a9426b76b53f43912bb804e7146c4975a08&uid=&v=7&yh_channel=3
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应为html视图
|
|
|
|erp_sku_id|int|否|1107172|null|商品skuId|
|
|
|
|uid|int|否|10961101|null|用户ID|
|
|
|
|
|
|
|
|
|
## 14、买了又买##
|
|
|
|
|
|
(method=app.recommend.purchased)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|productSkn|int|否|51121942|null|商品SKN|
|
|
|
|udid|String|是|123456SDEFDDFD|null|设备号|
|
|
|
|rec_pos|String|是|100007|100005|推荐位|
|
|
|
|limit|int|是|4|0|返回记录数|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.202:8080/gateway/?method=app.recommend.purchased&productSkn=51121942&udid=123456abdede&rec_pos=100005&limit=4&debug=XYZ
|
|
|
|
|
|
http://192.168.102.205:8080/gateway/?method=app.arrivalNotice.query&uid=10961101&erp_sku_id=1107172&debug=XYZ
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
...
|
...
|
@@ -1133,408 +76,15 @@ code为200即为成功且只会返回200,每次都会有响应结果。 |
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"product_list": [
|
|
|
{
|
|
|
"small_sort_id": 115,
|
|
|
"vip1_price": 11,
|
|
|
"gender": "1",
|
|
|
"vip3_price": 11,
|
|
|
"is_global": "N",
|
|
|
"is_outlets": 2,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "dickies",
|
|
|
"is_special": "N",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": "7",
|
|
|
"product_skc": "125708",
|
|
|
"cover_1": "/2015/09/01/04/01066615c989cdc0343a4b6a5341c1d095.jpg",
|
|
|
"goods_id": "88609",
|
|
|
"images_url": "/2014/04/21/03/014810ffd6bd5dc367c417a6b5520437d5.jpg",
|
|
|
"color_name": "蓝",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "0000fe",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_id": "6",
|
|
|
"product_skc": "125709",
|
|
|
"cover_1": "",
|
|
|
"goods_id": "88610",
|
|
|
"images_url": "/2014/04/21/06/01940e093b20994ad605eaa2f94dfbd005.jpg",
|
|
|
"color_name": "绿",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "47ba17",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_id": "12",
|
|
|
"product_skc": "125710",
|
|
|
"cover_1": "",
|
|
|
"goods_id": "88611",
|
|
|
"images_url": "/2014/06/03/02/0181907e182dd8c5129787811a4544938c.jpg",
|
|
|
"color_name": "橙",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "ff5c01",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_id": "11",
|
|
|
"product_skc": "125711",
|
|
|
"cover_1": "",
|
|
|
"goods_id": "88612",
|
|
|
"images_url": "/2014/06/03/02/0296981b0b2c8df5a9278eef3e63f7dd32.jpg",
|
|
|
"color_name": "粉",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "ee0000",
|
|
|
"status": "1"
|
|
|
},
|
|
|
{
|
|
|
"color_id": "1",
|
|
|
"product_skc": "125712",
|
|
|
"cover_1": "",
|
|
|
"goods_id": "88613",
|
|
|
"images_url": "/2014/04/22/05/01c666120f11275e112a9910bfb340db3a.jpg",
|
|
|
"color_name": "白",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "Y",
|
|
|
"color_code": "68EE68",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"vip_discount_type": 1,
|
|
|
"product_id": 58579,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": null,
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "DICKIES141M20WD13MianNiuJinFangChangXiuChenShan",
|
|
|
"product_skn": 51029909,
|
|
|
"shelve_time": 1468466322,
|
|
|
"vip2_price": 11,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 1468466327,
|
|
|
"is_new": "N",
|
|
|
"student_price": null,
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "Dickies",
|
|
|
"max_sort_id": 1,
|
|
|
"product_name": "Dickies 多彩青春色衬衫",
|
|
|
"brand_id": 230,
|
|
|
"default_images": "/2014/04/21/03/014810ffd6bd5dc367c417a6b5520437d5.jpg",
|
|
|
"yohood_id": null,
|
|
|
"stock_number": 81,
|
|
|
"storage_num": 81,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"middle_sort_id": 12,
|
|
|
"sales_price": 11,
|
|
|
"market_price": 399,
|
|
|
"is_promotion": 108,
|
|
|
"vip_price": 11,
|
|
|
"country_id": 2,
|
|
|
"status": 1
|
|
|
}
|
|
|
],
|
|
|
"rec_id": "72363205-1253-4720-882f-03fcb4c959ad"
|
|
|
"createTime": 1480988542,
|
|
|
"erpSkuId": 1107172,
|
|
|
"id": 8,
|
|
|
"mobile": "13911111111",
|
|
|
"productSkn": 51257805,
|
|
|
"uid": 10961101
|
|
|
},
|
|
|
"md5": "3fd8be3d5c3fd055ec1c3666f75559bf",
|
|
|
"message": "Product_list"
|
|
|
"md5": "98684a689fe643517368e52b58fa2aac",
|
|
|
"message": "queryRemindList info"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 15、商品详情页底部店铺推荐(提供给web使用)##
|
|
|
|
|
|
(method=web.product.shopRecommend)
|
|
|
请求方式:GET
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|product_skn|int|否|51011387|null|商品SKN|
|
|
|
|limit|int|是|5|0|返回记录数|
|
|
|
|page|int|是|1|1|返回页数|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.205:8080/gateway/?method=web.product.shopRecommend&product_skn=51011387&debug=XYZ
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功且只会返回200,每次都会有响应结果。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"total": 20,
|
|
|
"page_total": 4,
|
|
|
"page": 1,
|
|
|
"product_list": [
|
|
|
{
|
|
|
"small_sort_id": 271,
|
|
|
"vip1_price": 10.45,
|
|
|
"is_seckill": "N",
|
|
|
"gender": "3",
|
|
|
"vip3_price": 9.68,
|
|
|
"is_global": "N",
|
|
|
"is_outlets": 2,
|
|
|
"first_shelve_time": 1447037990,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "marmiulous",
|
|
|
"is_special": "N",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": "15",
|
|
|
"product_skc": 292795,
|
|
|
"cover_1": "",
|
|
|
"goods_id": "376687",
|
|
|
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/03/03/029aec7aaecdfcafdb4f1bc7e12daeaff7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"color_name": "彩色",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "FFD83D",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"vip_discount_type": 1,
|
|
|
"product_id": 293835,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "新品夯售",
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "MARMIULOUSMeiMiaoLeShiCCURVECQuXian",
|
|
|
"product_skn": 51164696,
|
|
|
"shelve_time": 1447037990,
|
|
|
"is_deposit_advance": "N",
|
|
|
"vip2_price": 9.9,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 1447037990,
|
|
|
"is_new": "N",
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "Marmiulous",
|
|
|
"max_sort_id": 10,
|
|
|
"product_name": "marmiulous 美妙乐事 彩色抱枕",
|
|
|
"brand_id": 857,
|
|
|
"tags": [
|
|
|
"is_discount"
|
|
|
],
|
|
|
"default_images": "http://img12.static.yhbimg.com/goodsimg/2015/12/03/03/029aec7aaecdfcafdb4f1bc7e12daeaff7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"stock_number": 20,
|
|
|
"storage_num": 20,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"middle_sort_id": 266,
|
|
|
"sales_price": 11,
|
|
|
"market_price": 169,
|
|
|
"is_promotion": 109,
|
|
|
"vip_price": 11,
|
|
|
"is_limitbuy": "N",
|
|
|
"country_id": 2,
|
|
|
"status": 1
|
|
|
},
|
|
|
{
|
|
|
"small_sort_id": 76,
|
|
|
"vip1_price": 435.09999999999997,
|
|
|
"is_seckill": "N",
|
|
|
"gender": "3",
|
|
|
"vip3_price": 403.04,
|
|
|
"is_global": "N",
|
|
|
"is_outlets": 2,
|
|
|
"first_shelve_time": 1446807711,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "adorad",
|
|
|
"is_special": "N",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": "2",
|
|
|
"product_skc": 296495,
|
|
|
"cover_1": "",
|
|
|
"goods_id": "384341",
|
|
|
"images_url": "http://img13.static.yhbimg.com/goodsimg/2015/11/09/02/02635c36b5ec72f94fd264411cd1981ca0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"color_name": "黑色",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "Y",
|
|
|
"color_code": "68EE68",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"vip_discount_type": 1,
|
|
|
"product_id": 300089,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "新品夯售",
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "ADORADSheJiKuanShuiJingHeiYaoShiPiXiuDiaoZhuiDaHao0056",
|
|
|
"product_skn": 51167721,
|
|
|
"shelve_time": 1446869192,
|
|
|
"is_deposit_advance": "N",
|
|
|
"vip2_price": 412.2,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 1446869192,
|
|
|
"is_new": "N",
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "A.Dorad",
|
|
|
"max_sort_id": 8,
|
|
|
"product_name": "A.dorad设计款水晶 黑曜石貔貅吊坠(大号)",
|
|
|
"brand_id": 717,
|
|
|
"tags": [
|
|
|
"is_discount",
|
|
|
"is_soon_sold_out"
|
|
|
],
|
|
|
"default_images": "http://img13.static.yhbimg.com/goodsimg/2015/11/09/02/02635c36b5ec72f94fd264411cd1981ca0.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"stock_number": 0,
|
|
|
"storage_num": 0,
|
|
|
"is_soon_sold_out": "Y",
|
|
|
"middle_sort_id": 65,
|
|
|
"sales_price": 458,
|
|
|
"market_price": 916,
|
|
|
"is_promotion": 107,
|
|
|
"vip_price": 0,
|
|
|
"is_limitbuy": "N",
|
|
|
"country_id": 2,
|
|
|
"status": 1
|
|
|
},
|
|
|
{
|
|
|
"small_sort_id": 260,
|
|
|
"vip1_price": 10.45,
|
|
|
"is_seckill": "N",
|
|
|
"gender": "1",
|
|
|
"vip3_price": 9.68,
|
|
|
"is_global": "N",
|
|
|
"is_outlets": 2,
|
|
|
"first_shelve_time": 1406008800,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "chettirouge",
|
|
|
"is_special": "N",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": "15",
|
|
|
"product_skc": 168673,
|
|
|
"cover_1": "",
|
|
|
"goods_id": "136245",
|
|
|
"images_url": "http://img13.static.yhbimg.com/goodsimg/2014/07/18/06/02e82611ec4a7f6bd1aa26f5e9e11607f4.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"color_name": "彩色",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "FFD83D",
|
|
|
"status": "1"
|
|
|
}
|
|
|
],
|
|
|
"vip_discount_type": 1,
|
|
|
"product_id": 93055,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "潮流新品节",
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "CHETTIROUGE754630MiJiSuoShuiBaoShiLu",
|
|
|
"product_skn": 51060535,
|
|
|
"shelve_time": 1450489080,
|
|
|
"is_deposit_advance": "N",
|
|
|
"vip2_price": 9.9,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 0,
|
|
|
"is_new": "N",
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "Chetti Rouge轩谛",
|
|
|
"max_sort_id": 10,
|
|
|
"product_name": "Chetti Rouge轩谛 密集锁水保湿露(保湿喷雾)120ml",
|
|
|
"brand_id": 30,
|
|
|
"tags": [
|
|
|
"is_discount"
|
|
|
],
|
|
|
"default_images": "http://img13.static.yhbimg.com/goodsimg/2014/07/18/06/02e82611ec4a7f6bd1aa26f5e9e11607f4.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70",
|
|
|
"stock_number": 5,
|
|
|
"storage_num": 5,
|
|
|
"is_soon_sold_out": "N",
|
|
|
"middle_sort_id": 259,
|
|
|
"sales_price": 11,
|
|
|
"market_price": 110,
|
|
|
"is_promotion": 109,
|
|
|
"vip_price": 11,
|
|
|
"is_limitbuy": "N",
|
|
|
"country_id": 2,
|
|
|
"status": 1
|
|
|
},
|
|
|
{
|
|
|
"small_sort_id": 130,
|
|
|
"vip1_price": 113.05,
|
|
|
"is_seckill": "N",
|
|
|
"gender": "1",
|
|
|
"vip3_price": 104.72,
|
|
|
"is_global": "N",
|
|
|
"is_outlets": 2,
|
|
|
"first_shelve_time": 0,
|
|
|
"is_discount": "Y",
|
|
|
"brand_domain": "",
|
|
|
"is_special": "N",
|
|
|
"goods_list": [
|
|
|
{
|
|
|
"color_id": "7",
|
|
|
"product_skc": 335919,
|
|
|
"cover_1": "",
|
|
|
"goods_id": "454449",
|
|
|
"images_url": "",
|
|
|
"color_name": "蓝色",
|
|
|
"cover_2": "",
|
|
|
"color_value": "",
|
|
|
"is_default": "N",
|
|
|
"color_code": "0000fe",
|
|
|
"status": "0"
|
|
|
}
|
|
|
],
|
|
|
"vip_discount_type": 3,
|
|
|
"product_id": 355852,
|
|
|
"is_advance": "N",
|
|
|
"sales_num": 0,
|
|
|
"sales_phrase": "潮流新品节",
|
|
|
"is_student_rebate": "N",
|
|
|
"cn_alphabet": "ChangKu",
|
|
|
"product_skn": 51198118,
|
|
|
"shelve_time": 0,
|
|
|
"is_deposit_advance": "N",
|
|
|
"vip2_price": 107.10000000000001,
|
|
|
"age_level": "1",
|
|
|
"is_student_price": "N",
|
|
|
"edit_time": 0,
|
|
|
"is_new": "N",
|
|
|
"is_limited": "N",
|
|
|
"brand_name": "心飞扬",
|
|
|
"max_sort_id": 3,
|
|
|
"product_name": "长裤",
|
|
|
"brand_id": 1422,
|
|
|
"tags": [
|
|
|
"is_discount"
|
|
|
],
|
|
|
"default_images": "",
|
|
|
"is_soon_sold_out": "N",
|
|
|
"middle_sort_id": 27,
|
|
|
"sales_price": 119,
|
|
|
"market_price": 495,
|
|
|
"is_promotion": 0,
|
|
|
"vip_price": 0,
|
|
|
"is_limitbuy": "N",
|
|
|
"country_id": 2,
|
|
|
"status": 0
|
|
|
}
|
|
|
],
|
|
|
"rec_id": "3ae22621-b5dc-4e20-a95e-c1772e084f17",
|
|
|
"page_size": 5
|
|
|
},
|
|
|
"md5": "b56b65c27ca5c6288dac5024f6dc95ea",
|
|
|
"message": "shop recommend product."
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|