API
查询分销商品列表(不含描述and图片,提升拉取效率)
更新时间: 2019-07-26 11:07:38 访问次数:275
接口说明

分销商或第三方平台通过该接口可查询可分销商品信息列表,此接口不含商品描述和图片,提升拉取效率,拉取后可使用wanyilian.supplier.spu.querySPUList接口,传入SPU,精确拉取描述和图片

使用场景

分销商在售卖前刊登时,查询可分销商品信息;第三方平台在展示可分销商品时,查询可分销商品列表

备注
请求说明
URLhttp://openapi.winit.com.cn/cedpopenapi/service
接口测试http://openapi.uat1.winit.com.cn/cedpopenapi/service
验证方法Token,md5
格式json
字符编码UTF-8
http请求方式http
请求数限制默认每分钟1000,有需要可申请加大。
请求入参
名称类型必填说明示例
SPUString()NSPU,分销系统生成分销商品维一标识码
SKU
String()
N商品编码,一般为客户商品唯一编码

userDefinedCode
String()
N客户自定义编码,添加分销商品时可自定义填写

cid
int
N商品分类ID(新增)
1
saleTypeIds
String()
N商品销售类型(新增,支持多类型搜索1,2,3
keywords
String()
N标签/关键字

warehouseName
String()
N仓库名称

warehouseCode
String()
Y仓库代码

isHavingInventory
String()
Y是否有库存,默认”Y”
“Y/N”
updateStartDate
String()
YSPU更新时间,起始时间”2018-08-19 10:10:10“
updateEndDate
String()
YSPU更新时间,截止时间
pageParams
Array

分布参数
-|pageSize
integer
Y每页显示数量,默认和最大200

-|pageNo
integer
Y页码,第几页,默认1

请求示例
    {
    "action":"wanyilian.supplier.spu.getProductBaseList",
    "app_key":"rebecca",
    "data":{
        "SPU":" S10016230",
        "SKU":"",
        "userDefinedCode":"",
        "categoryID":null,
        "uDefinedCategoryID":null,
        "keywords":"LED Ligths",
        "warehouseName":"USWC Warehouse",
        "warehouseCode":"US0001",
        "isHavingInventory":"Y",
        "updateStartDate":"2010-01-10 10:10:10",
        "updateEndDate":"2018-09-22 11:11:11",
        "pageParams":{
            "pageNo":"1",
            "pageSize":"100"
        }
    },
    "format":"json",
    "language":"zh_CN",
    "platform":"SELLERERP",
    "sign":"00000000000000000000000000000000",
    "sign_method":"md5",
    "timestamp":"2015-06-16 001926",
    "version":"1.0"
}
返回出参
名称类型必填说明示例
SPU
String()
YSPU分销系统生成分销商品维一标识码
S10016230
supplierAccount
String()
Y供应商账号
supplierCompany
String()
Y供应商名称
userDefinedCode
String()Y客户自定义编码

title
String()
Y商品标题
chineseName
String()Y中文名称
englishName
String()Y英文名称
totalInventory
Number
Y可用总库存
cidintY商品分类id(新增
saleTypeIdsString()
Y
商品销售类型(新增
keywords
String()
Y关键词,多个关键词依逗号分隔

warehouseName
String()Y仓库名称
warehouseCode
String()Y仓库代码
SKUList
Array
Y商品列表
-|SKUString()Y商品编码
-|randomSKUString()Y系统编码
-|supplyInventoryNumberY供货库存
-|sepcificationString()
Y商品规格
-|rebateNumber
Y折扣(%
0-100
-|supplyPriceNumber
Y供货价格(RMB)
-|settlePriceNumber
Y结算价格(RMB), 结算价格=供货价格*折扣
-|minRetailPrice
NumberY最低零售价(本地币种)
-|retailPriceCodeString()Y最低零售价币种
CNY,USD,AUD
-|weightNumber
Y重量(kg

-|lengthNumber
Y长度(cm

-|widthNumber
Y宽度(cm

-|heightNumber
Y高度(cm

返回参数说明 正确的返回结果:查询成功。 错误的返回结果:错误码,错误信息

返回示例
{
  "code": "0",
  "msg": "操作成功",
  "data": {
    "pageParams": {
      "pageNo": 1,
      "pageSize": 200,
      "totalCount": 7003
    },
    "SPUList": [
      {
        "englishName": null,
        "updateDate": "2019-07-30 10:55:30",
        "keywords": "",
        "supplierAccount": "xxxxx",
        "supplierCompany": "广州市xxx公司",
        "SKUList": [
          {
            "supplyInventory": 12,
            "supplyPrice": 13.87,
            "rebate": 1,
            "length": 20,
            "settlePrice": 13.87,
            "weight": 0.07,
            "retailPriceCode": null,
            "minRetailPrice": 0,
            "randomSKU": "w10456532",
            "privateInventory": 115,
            "width": 11,
            "SKU": "ZA04003-01",
            "wholesalePrice": 13.43,
            "height": 3.5
          },
          {
            "supplyInventory": 13,
            "supplyPrice": 12.46,
            "rebate": 1,
            "length": 8.55,
            "settlePrice": 12.46,
            "weight": 0.06,
            "retailPriceCode": null,
            "minRetailPrice": 0,
            "randomSKU": "w10456847",
            "privateInventory": 117,
            "width": 8.5,
            "SKU": "ZA04003-09",
            "wholesalePrice": 0,
            "height": 3.5
          }
        ],
        "totalInventory": 25,
        "title": "1x 12V LED Downlight Interior Spot Light Caravan Motorhome Lamp 3000K Warm White",
        "saleTypeIds": null,
        "chineseName": "12v 圆形单灯(正白6000K/暖白3000K ,端子线接头)",
        "SPU": "S10046994",
        "userDefinedCode": "DS-ZA04003-XX",
        "categoryID": 33713,
        "cid": null
      }
    ]
  }
}
关键词