API
WI04.查询可选商品
更新时间: 2017-11-22 16:43:01 访问次数:710
接口说明

可选商品查询,根据WINIT产品、头程类型及目的仓筛选允许下单的商品列表。

使用场景

可选商品查询,仅支持入库单。根据WINIT产品、头程类型及目的仓筛选允许下单的商品列表。

备注

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
customerCode String(50) Y 客户编码,(客户在WINIT的唯一编码)
firstLegType String(20) Y 头程类型:WC-Winit承运,NS-直发,说明:标准海外仓入库的头程类型为WC,国内直发验入库与海外直发验入库的头程类型为NS
winitProductCode String(50) Y WINIT产品编码
destinationWarehouseCode String(50) Y 目的仓编码
请求示例
{
      "action": "winit.wh.mms.getAvailableMerchandise",
      "app_key": "rebecca",
      "data": {
          "customerCode": "1000019",
          "firstLegType": "WC",
          "productCode": "OW01010382",
          "warehouseCode": "US0001"
      },
      "format": "json",
      "language": "zh_CN",
      "platform": "sw",
      "sign": "00000000000000000000000000000000",
      "sign_method": "md5",
      "timestamp": "2016-09-09 11:28:54",
      "version": "1.0"
}

                            
返回出参
名称 类型 必填 说明 示例
winitMerchandiseCode String(50) Y M码 M010000000000080947
merchandiseCode String(50) Y 商品编码
merchandiseName String(100) Y 名称
merchandiseNameCn String(100) Y 中文名称
specification String(50) Y 规格
返回示例
{
      "code": "0",
      "data": [
        {
              "categoryId": 3065,
              "cnName": "LC28076-4 Red M",
              "code": "M010000000000080947",
              "created": 1412796814000,
              "createdby": "yitao.wang",
              "customerCode": "1000019",
              "customerName": "Winit (UK)",
              "height": 10,
              "id": 79515,
              "internetSite":   "http://www.dear-lover.com/Red-V-neck-Foil-Detail-Crisscross-Bandage-Dress-p6572.html",
              "isActive": "Y",
              "isDelete": "N",
              "isExempted": "N",
              "isFinance": "N",
              "isNew": "N",
              "isPatentCertificate": "N",
              "isRestricted": "N",
              "isSelfDeclaresth": "N",
              "isSuitSale": "N",
              "length": 12,
              "name": "Red V-neck Foil Detail Crisscross Bandage   Dress",
              "orgId": 1000000,
              "originCountryCode": "CN",
              "registerHeight": 5,
              "registerLength": 5,
              "registerVolume": 125,
              "registerWeight": 0.6,
              "registerWidth": 5,
              "sellerCategoryId": 1017957,
              "skuCode": "1502434",
              "specification": "",
              "supervisorMode": "SI",
              "updated": 1473437705000,
              "updatedby": "Process-US",
              "volume": 0.0012,
              "weight": 2,
              "width": 10
          }
      ],
      "msg": "操作成功"
}
{
     "code": "0",
     "msg": "操作成功",
     "data":    [
              {
           "merchandiseNameCn": "性能测试商品10",
           "merchandiseCode": "10_xn_api_sku",
           "merchandiseName": "10_xn_api_sku",
           "specification": "",
           "winitMerchandiseCode": "M010000000000661945"
        }
   ]
}