net_sale.md 16.9 KB

查询热销搜索词

接口名: /searchWords/queryHotSearchTerms

入参


属性名称 类型 例子 说明 是否必填
page number 1 当前页 默认1
size number 20 条数 默认10

返回 (只关注content字段)

{
  "code": 200,
  "data": {
    "list": [
      {
        "channelIds": "1,2",
        "content": "hhhgg",
        "creatorUid": 0,
        "creatorUsrname": "wxtest1",
        "id": 123,
        "modifyUid": 0,
        "modifyUsrname": "wxtest1",
        "status": 2,
        "type": 1,
        "url": "hhh"
      },
      {
        "channelIds": "1,2,3,4",
        "content": "aaaa",
        "creatorUid": 0,
        "creatorUsrname": "wxtest1",
        "id": 122,
        "status": 2,
        "type": 1,
        "url": "aaaaa"
      }
    ],
    "page": 1,
    "size": 2,
    "total": 18,
    "totalPage": 9
  },
  "md5": "3ead7bfd94211a4352e0edfb9d5afbf8",
  "message": "查询搜索词列表"
}

新增商品搭配

接口名: /collocation/insertCollocation

入参


属性名称 类型 例子 说明 是否必填
productSkn number 50018101 skn 必填
imageUrl string 图片的相对路径 必填
content string 搭配介绍
infoStr string 搭配方位和搭配的商品信息 必填

{"productSkn": 50018101, "imageUrl" : "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1.jpg", "content":"content", "infoStr":[{"id":50017085,"width":"558","height":"569","top":"232","left":"116","label":"50017085"},{"id":50016303,"width":"403","height":"228","top":"770","left":"94","label":"50016303"}]}


返回 (code为200代表成功,否则看message的失败原因)

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "insert collocation success."
}

获取单个商品搭配信息

接口名: /collocation/selectCollocationById

入参 {"param":28947}


属性名称 类型 例子 说明 是否必填
param number 搭配的主键 必填

返回

{
  "code": 200,
  "data": {
    "content": "content111",
    "createTime": 1456453661,
    "id": 28947,
    "imageUrl": "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1111.jpg",
    "info": [
      {
        "height": 569,
        "id": 5001708,
        "label": "50017085",
        "left": 116,
        "top": 232,
        "width": 558
      },
      {
        "height": 228,
        "id": 50016303,
        "label": "50016303",
        "left": 94,
        "top": 770,
        "width": 403
      }
    ],
    "orderBy": 1,
    "productSkn": 50018101
  },
  "md5": "857dfaf106092aeb17ca6b3b7ab38766",
  "message": "query collocation success."
}

更新单个搭配

接口名: /collocation/updateCollocation

入参

{"id":28947, "imageUrl" : "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1111.jpg", "content":"content111", "infoStr":[{"id":5001708511,"width":"558","height":"569","top":"232","left":"116","label":"50017085"},{"id":50016303,"width":"403","height":"228","top":"770","left":"94","label":"50016303"}]}


属性名称 类型 例子 说明 是否必填
id number 搭配的主键 必填
imageUrl string 图片url
content string 搭配介绍
infoStr string 搭配的方位信息

返回 (code为200代表成功,否则看message的失败原因)

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "update collocation success."
}

删除单个搭配

接口名: /collocation/delCollocationById

入参 {"param":28947}


属性名称 类型 例子 说明 是否必填
param number 搭配的主键 必填

返回 (code为200代表成功,否则看message的失败原因)

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "delete collocation success."
}

查询搭配列表

接口名: /collocation/selectCollocationListBySkn

入参 {"productSkn":50018101 }


属性名称 类型 例子 说明 是否必填
productSkn number skn 必填

返回

{
  "code": 200,
  "data": [
    {
      "content": "content222",
      "createTime": 1456453904,
      "id": 28948,
      "imageUrl": "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1.jpg",
      "orderBy": 2,
      "productSkn": 50018101
    },
    {
      "content": "content23333",
      "createTime": 1456454512,
      "id": 28949,
      "imageUrl": "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b139e1.jpg",
      "orderBy": 3,
      "productSkn": 50018101
    },
    {
      "content": "content",
      "createTime": 1456454884,
      "id": 28950,
      "imageUrl": "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1.jpg",
      "orderBy": 4,
      "productSkn": 50018101
    },
    {
      "content": "content",
      "createTime": 1456454887,
      "id": 28951,
      "imageUrl": "/2012/03/06/18/020f2f4abf0258814bb938ed9f563b19e1.jpg",
      "orderBy": 5,
      "productSkn": 50018101
    }
  ],
  "md5": "b41dbcde2f182d34abaa197b3c80c14f",
  "message": "Product Collocation List."
}

保存网销的视频信息

接口名: /product/saveNetSaleVideo

入参 {"productSkn": 50018101, "videoUrl":"url"}


属性名称 类型 例子 说明 是否必填
productSkn number productSkn 必填
videoUrl string 视频的链接地址 必填

返回 (code为200代表成功,否则看message的失败原因)

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "save netSale video success."
}

保存网销的小编推荐

接口名: /product/saveNetSaleRecommend

入参 {"productSkn":50018101, "recommend":"recommend"}


属性名称 类型 例子 说明 是否必填
productSkn number productSkn 必填
recommend string 小编推荐信息 必填

返回 (code为200代表成功,否则看message的失败原因)

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "save netSale Recommend success."
}

展示店铺的数据源

接口名: /ShopsRest/getShopList

入参 {"brandId":928}


属性名称 类型 例子 说明 是否必填
brandId number 商品所属品牌Id 必填

返回 (关注list里面的id 和 text)

{
  "code": 200,
  "data": {
    "list": [
      {
        "checkStatus": 100,
        "createTime": "2015-09-15",
        "id": 18,
        "shopName": "得宝纸巾单品专卖店【测试】",
        "shopNature": 0,
        "shopsId": 18,
        "shopsType": 0,
        "status": 1,
        "text": "得宝纸巾单品专卖店【测试】",
        "updateTime": "2016-02-18"
      },
      {
        "checkStatus": 100,
        "createTime": "2015-09-11",
        "id": 16,
        "shopName": ":CHOCOOLATEQ",
        "shopNature": 0,
        "shopsId": 16,
        "shopsType": 0,
        "status": 1,
        "text": ":CHOCOOLATEQ",
        "updateTime": "2016-02-18"
      },
      {
        "checkStatus": 100,
        "createTime": "2015-09-11",
        "id": 15,
        "shopName": "得宝旗舰店",
        "shopNature": 0,
        "shopsId": 15,
        "shopsType": 0,
        "status": 1,
        "text": "得宝旗舰店",
        "updateTime": "2016-02-17"
      }
    ],
    "page": 1,
    "size": 10,
    "total": 3,
    "totalPage": 1
  },
  "message": "操作成功"
}

上下架productskc

接口名: /product/updateGoodsStatus

入参 {"productSkc":928, "targetStatus" : 0}


属性名称 类型 例子 说明 是否必填
productSkc number 商品skc 必填
targetStatus number 目标状态 0 代表下架, 1 代表上架 必填

返回

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "update status success."
}

上下架productsku

接口名: /product/updateProductSkuStatus

入参 {"productSku":928, "targetStatus" : 0}


属性名称 类型 例子 说明 是否必填
productSku number 商品sku 必填
targetStatus number 目标状态 0 代表下架, 1 代表上架 必填

返回

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "update status success."
}

批量商品skn预处理

接口名: /product/updateProductSknTimingInfo

入参 {"productSknList":"[51001873, 51001874, 51001872]", "type":6, "outSaleTime":1, "advanceEndTime":"2016-12-13 12:12:12"}


属性名称 类型 例子 说明 是否必填
productSknList json字符串 商品skn列表 必填
type number 预处理类型1 : 上架2 : 上架上新 3 : 修改预上架时间4 : 修改预上架上新时间5 : 修改预售时间6 : 预下架7 : 立即下架 必填
outSaleTime 数字 几天后下架 当type为6预下架必填
shelveTime 日期字符串格式见上述例子 预上架时间 当type为3预上架必填
onNewTime 日期字符串格式见上述例子 预上架上新时间 当type为4预上架上新必填
advanceBeginTime 日期字符串格式见上述例子 预售开始时间 当type为5预售必填
advanceEndTime 日期字符串格式见上述例子 预售结束时间 当type为5预售必填

返回

{
  "code": 200,
  "data": [],
  "md5": "d751713988987e9331980363e24189ce",
  "message": "操作成功"
}

查询网销信息

接口名: /product/queryNetSaleInforList

入参 {"productSknList":"[51001873, 51001874, 51001872]", "type":6, "outSaleTime":1, "advanceEndTime":"2016-12-13 12:12:12"}


属性名称 类型 例子 说明 是否必填
productSkn number 商品skn
productSkc number 商品skc
productSku number 商品sku
productName 字符串 名称
shopId number 店铺Id
brandId number 品牌Id
isJit 枚举型(字符串) 是否jit商品 "Y" 或者 "N"
stock 枚举型(数字型) 是否有库存 0 或者 1
isScreen 枚举型 是否拍摄状态 "Y" 或者 "N"
isMeasure 枚举型 是否测量状态 "Y" 或者 "N"
gender 枚举型 性别 1男2女 3通用
maxSortId 数字型 一级分类Id
middleSortId 数字型 二级分类Id
smallSortId 数字型 三级分类Id
isOutLets 枚举型 是否奥莱 "Y" 或者 "N"
productStatus 数字型 状态 1上架 0 下架 -1 待修改 2待审核 3 审核驳回
page 数字型 当前页数
size 数字型 每页显示条数 默认10

返回

{
  "code": 200,
  "data": {
    "list": [
      {
        "attribute": 1,
        "brandId": 1523,
        "brandName": "冬冬腔",
        "gender": "2",
        "maxSortId": 4,
        "maxSortName": "裙装",
        "middleSortId": 31,
        "middleSortName": "连衣裙",
        "picImgUrl": "",
        "productName": "DFASDLKF;LASDKAAAAA",
        "productSkn": 51198302,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 134,
        "smallSortName": "连衣裙"
      },
      {
        "attribute": 1,
        "brandId": 1527,
        "brandName": "SIP",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "导入新货TX",
        "productSkn": 51198298,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1527,
        "brandName": "SIP",
        "editTime": "2016-03-03 16:27:00",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "导入新货XX",
        "productSkn": 51198299,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1527,
        "brandName": "SIP",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "导入新货XY",
        "productSkn": 51198300,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1527,
        "brandName": "SIP",
        "gender": "2",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "裤装AAA",
        "productSkn": 51198301,
        "retailPrice": 789,
        "returnCoin": 0,
        "salesPrice": 607,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1422,
        "brandName": "心飞扬",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "大衣",
        "productSkn": 51198296,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1422,
        "brandName": "心飞扬",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "大衣",
        "productSkn": 51198297,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1422,
        "brandName": "心飞扬",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "长裤",
        "productSkn": 51198287,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1422,
        "brandName": "心飞扬",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "长裤",
        "productSkn": 51198288,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      },
      {
        "attribute": 1,
        "brandId": 1422,
        "brandName": "心飞扬",
        "gender": "1",
        "maxSortId": 3,
        "maxSortName": "裤装",
        "middleSortId": 27,
        "middleSortName": "牛仔裤",
        "picImgUrl": "",
        "productName": "长裤",
        "productSkn": 51198289,
        "retailPrice": 495,
        "returnCoin": 0,
        "salesPrice": 495,
        "smallSortId": 130,
        "smallSortName": "牛仔裤"
      }
    ],
    "page": 1,
    "size": 10,
    "total": 223703,
    "totalPage": 22371
  },
  "md5": "68e7e09515aec025162017290acf73d8",
  "message": "NetSale Information List."
}