API接口目录

零售云业务

采购API
订单API
库存API
价格API
商品API
报表API
消息服务API
基础数据API
物流API
零售商认证API
发票API
快修回收API
云仓API
异常码自查工具
suning.retailer.cmmdtybasicinfo.query 搜索商品基本信息
¥免费

搜索商品基本信息

公共参数
请求参数
名称 类型 是否必须 示例值 描述
appIdStringY11appId
storeCodeStringN111
cityCodeStringN111
cmmdtyListStringN
cmmdtyCodeStringN1cmmdtyCode
distributorCodeStringN1distributorCode
响应参数
名称 类型 示例值 描述
respListString
platformCodeStringP6platformCode
cmmdtyCodeString1cmmdtyCode
cmmdtyNameString1cmmdtyName
searchShowNameString1searchShowName
cmmdtyTypeString1cmmdtyType
distributorCodeString1distributorCode
distributorNameString1distributorName
prototypeFlagString1prototypeFlag
failCodeString1failCode
failMsgString1failMsg
imageUrlListString
imageUrlString11
tagCodesString
tagCodeString11
combinationFlagString1combinationFlag
subCmmdtyListString
subCmmdtyCodeString1subCmmdtyCode
subCmmdtyNameString11subCmmdtyName
imageUrlListString
imageUrlString11
subCmmdtyNumString11subCmmdtyNum
isMainString1isMain
goodSizeString11
buCodeString11buCode
brandCodeString1brandCode
externalEanCodeString11
categoryCodeString1categoryCode
onlineSaleFlagString11onlineSaleFlag
brightPointsString
brightPointString1brightPoint
buCodeString1buCode
brandCodeString11brandCode
externalEanCodeString11externalEanCode
categoryCodeString11categoryCode
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <queryCmmdtybasicinfo>
      <cityCode>11</cityCode>
      <appId>11</appId>
      <cmmdtyList>
        <cmmdtyCode>1</cmmdtyCode>
        <distributorCode>1</distributorCode>
      </cmmdtyList>
      <storeCode>11</storeCode>
    </queryCmmdtybasicinfo>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "queryCmmdtybasicinfo": {
        "cityCode": "11",
        "appId": "11",
        "cmmdtyList": [
          {
            "cmmdtyCode": "1",
            "distributorCode": "1"
          }
        ],
        "storeCode": "11"
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <queryCmmdtybasicinfo>
      <respList>
        <tagCodes>
          <tagCode>1</tagCode>
        </tagCodes>
        <brightPoints>
          <brightPoint>1</brightPoint>
        </brightPoints>
        <searchShowName>1</searchShowName>
        <externalEanCode>11</externalEanCode>
        <cmmdtyCode>1</cmmdtyCode>
        <subCmmdtyList>
          <subCmmdtyNum>11</subCmmdtyNum>
          <goodSize>1</goodSize>
          <imageUrlList>
            <imageUrl>1</imageUrl>
          </imageUrlList>
          <subCmmdtyName>11</subCmmdtyName>
          <isMain>1</isMain>
          <externalEanCode>1</externalEanCode>
          <buCode>11</buCode>
          <categoryCode>1</categoryCode>
          <subCmmdtyCode>1</subCmmdtyCode>
          <brandCode>1</brandCode>
        </subCmmdtyList>
        <cmmdtyName>1</cmmdtyName>
        <distributorCode>1</distributorCode>
        <buCode>1</buCode>
        <categoryCode>11</categoryCode>
        <distributorName>1</distributorName>
        <combinationFlag>1</combinationFlag>
        <imageUrlList>
          <imageUrl>1</imageUrl>
        </imageUrlList>
        <failCode>1</failCode>
        <failMsg>1</failMsg>
        <onlineSaleFlag>11</onlineSaleFlag>
        <prototypeFlag>1</prototypeFlag>
        <cmmdtyType>1</cmmdtyType>
        <platformCode>P6</platformCode>
        <brandCode>11</brandCode>
      </respList>
    </queryCmmdtybasicinfo>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "queryCmmdtybasicinfo": {
        "respList": [
          {
            "tagCodes": [
              {
                "tagCode": "1"
              }
            ],
            "brightPoints": [
              {
                "brightPoint": "1"
              }
            ],
            "searchShowName": "1",
            "externalEanCode": "11",
            "cmmdtyCode": "1",
            "subCmmdtyList": [
              {
                "subCmmdtyNum": "11",
                "goodSize": "1",
                "imageUrlList": [
                  {
                    "imageUrl": "1"
                  }
                ],
                "subCmmdtyName": "11",
                "isMain": "1",
                "externalEanCode": "1",
                "buCode": "11",
                "categoryCode": "1",
                "subCmmdtyCode": "1",
                "brandCode": "1"
              }
            ],
            "cmmdtyName": "1",
            "distributorCode": "1",
            "buCode": "1",
            "categoryCode": "11",
            "distributorName": "1",
            "combinationFlag": "1",
            "imageUrlList": [
              {
                "imageUrl": "1"
              }
            ],
            "failCode": "1",
            "failMsg": "1",
            "onlineSaleFlag": "11",
            "prototypeFlag": "1",
            "cmmdtyType": "1",
            "platformCode": "P6",
            "brandCode": "11"
          }
        ]
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.retailer.querycmmdtybasicinfo.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.srcdss 服务不可用 请联系苏宁技术人员
公共异常码
API工具
FAQ